Mercurial > fife-parpg
diff clients/editor/run.py @ 182:bcc93e17f978
- added new plugin to FIFedit (Layertool)
FEATURES:
- layers now can be toogled visible / invisible
- tool also allows layer selection (better workflow IMO) - just click on the layer name
- demo screencapture can be found here: http://zero-projekt.net/files/screencaptures/1280x_zero_fifedit_layertool.ogg
Please let me know if this plugin causes any trouble for you.
author | chewie@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 11 Feb 2009 19:27:18 +0000 |
parents | 28532ae6f9f6 |
children | 51cc05d862f2 |
line wrap: on
line diff
--- a/clients/editor/run.py Sat Jan 31 04:15:43 2009 +0000 +++ b/clients/editor/run.py Wed Feb 11 19:27:18 2009 +0000 @@ -28,9 +28,11 @@ from plugins.mapeditor import MapEditor from plugins.mapwizard import MapWizard from fifedit import Fifedit -# by c 09/11/08 + +# zero-projekt plugins from plugins.objectedit import ObjectEdit -# end edit c +from plugins.layertool import LayerTool + # Help display class Help(Plugin): @@ -60,9 +62,11 @@ self.mapsaver = MapSaver(self.engine) self.mapwizard = MapWizard(self.engine) self.importer = Importer(self.engine) -# by c 09/11/08 + + # zero-projekt plugins self.objectedit = ObjectEdit(self.engine, self.mapedit) -# end edit c + self.layertool = LayerTool(self.engine, self.mapedit) + # Register plugins with Fifedit. self.fifedit.registerPlugin(Help()) self.fifedit.registerPlugin(self.maploader) @@ -70,9 +74,11 @@ self.fifedit.registerPlugin(self.mapedit) self.fifedit.registerPlugin(self.mapwizard) self.fifedit.registerPlugin(self.importer) -# by c 09/11/08 + + # zero-projekt plugins self.fifedit.registerPlugin(self.objectedit) -# end edit c + self.fifedit.registerPlugin(self.layertool) + self.params = params def createListener(self): @@ -101,10 +107,11 @@ parts = self.params.split(s) self.maploader.loadFile(s.join(parts[0:-1]), parts[-1]) self.params = None -# edit by c 11/09 + + # zero-projekt plugins if self.mapedit._instances is not None: self.objectedit.input() -# end edit c + if __name__ == '__main__': print sys.argv