Mercurial > fife-parpg
comparison clients/editor/plugins/mapeditor.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 | fcef34d67ad9 |
comparison
equal
deleted
inserted
replaced
181:56ac89189bc4 | 182:bcc93e17f978 |
---|---|
241 self._layer = self._map.getLayers()[0] | 241 self._layer = self._map.getLayers()[0] |
242 self._selectDefaultCamera(self._map) | 242 self._selectDefaultCamera(self._map) |
243 self._setMode(VIEWING) | 243 self._setMode(VIEWING) |
244 | 244 |
245 self._mapselector.show(self._map) | 245 self._mapselector.show(self._map) |
246 | |
247 # zero-projekt plugin | |
248 if self.layertool is not None: | |
249 self.layertool.update() | |
246 | 250 |
247 def _selectLayer(self): | 251 def _selectLayer(self): |
248 Selection([layer.getId() for layer in self._map.getLayers()], self._editLayer) | 252 Selection([layer.getId() for layer in self._map.getLayers()], self._editLayer) |
249 | 253 |
250 def _editLayer(self, layerid): | 254 def _editLayer(self, layerid): |