Mercurial > fife-parpg
diff clients/editor/run.py @ 134:ade070598fd1
- added object editor plugin
NOTES:
- plugin is not ready for productive enviroments, yet
- lacks saving functionality
- some issues left, but it works better as previous versions ;-)
author | chewie@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 13 Sep 2008 23:28:52 +0000 |
parents | d5658e6c34f5 |
children | 28532ae6f9f6 |
line wrap: on
line diff
--- a/clients/editor/run.py Sat Aug 30 12:58:20 2008 +0000 +++ b/clients/editor/run.py Sat Sep 13 23:28:52 2008 +0000 @@ -28,6 +28,9 @@ from plugins.mapeditor import MapEditor from plugins.mapwizard import MapWizard from fifedit import Fifedit +# by c 09/11/08 +from plugins.objectedit import ObjectEdit +# end edit c # Help display class Help(Plugin): @@ -57,7 +60,9 @@ self.mapsaver = MapSaver(self.engine) self.mapwizard = MapWizard(self.engine) self.importer = Importer(self.engine) - +# by c 09/11/08 + self.objectedit = ObjectEdit(self.engine, self.mapedit) +# end edit c # Register plugins with Fifedit. self.fifedit.registerPlugin(Help()) self.fifedit.registerPlugin(self.maploader) @@ -65,7 +70,9 @@ self.fifedit.registerPlugin(self.mapedit) self.fifedit.registerPlugin(self.mapwizard) self.fifedit.registerPlugin(self.importer) - +# by c 09/11/08 + self.fifedit.registerPlugin(self.objectedit) +# end edit c self.params = params def createListener(self): @@ -94,6 +101,10 @@ parts = self.params.split(s) self.maploader.loadFile(s.join(parts[0:-1]), parts[-1]) self.params = None +# edit by c 11/09 + if self.mapedit._instances is not None: + self.objectedit.input() +# end edit c if __name__ == '__main__': print sys.argv