# HG changeset patch # User cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1258675419 0 # Node ID 3827b510546fe20e3e9736a81b18bd0e895ad146 # Parent 5ab78cd39534d0edeb76ae4dafd58796cc0b2afc Editor: * Plugins will be loaded by default, so users do not have to edit their configuration files each time they install a plugin * Changed the object selector so it does not autoscroll when the user manually picks an object from the list diff -r 5ab78cd39534 -r 3827b510546f clients/editor/plugins/ObjectSelector.py --- a/clients/editor/plugins/ObjectSelector.py Mon Nov 16 12:29:29 2009 +0000 +++ b/clients/editor/plugins/ObjectSelector.py Fri Nov 20 00:03:39 2009 +0000 @@ -344,25 +344,28 @@ been selected. @param obj: fife.Object instance""" - self.setPreview(obj) - events.onObjectSelected.send(sender=self, object=obj) - - self.gui.adaptLayout(False) # Set preview image - def setPreview(self, object): + def setPreview(self, object, sender=None): if not object: return if self.object and object == self.object: return - + self.object = object - self.scrollToObject(object) + + # We do not want to autoscroll the list when the user manually + # selects an object from the object selector + if sender is not self: + self.scrollToObject(object) + self.preview.image = self._getImage(object) height = self.preview.image.getHeight(); if height > 200: height = 200 self.preview.parent.max_height = height + self.gui.adaptLayout(False) + def scrollToObject(self, object): # Select namespace names = self.namespaces diff -r 5ab78cd39534 -r 3827b510546f clients/editor/scripts/plugin.py --- a/clients/editor/scripts/plugin.py Mon Nov 16 12:29:29 2009 +0000 +++ b/clients/editor/scripts/plugin.py Fri Nov 20 00:03:39 2009 +0000 @@ -45,7 +45,7 @@ files.append(os.path.splitext(f)[0]) for f in files: - importPlugin = self._settings.get("Plugins", f, False) + importPlugin = self._settings.get("Plugins", f, True) if importPlugin: try: print "Importing plugin:", f