Mercurial > fife-parpg
comparison tools/editor/scripts/editor.py @ 582:5e04f6349894
* Improved the floatingtextrenderer. You can now set a background speech quad.
* Added a speech quad example to rio de hola.
* Little fix to the editor stuff.
author | helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 03 Aug 2010 13:57:12 +0000 |
parents | b2feacaed53c |
children | e8a799239384 |
comparison
equal
deleted
inserted
replaced
581:1e69fd582c94 | 582:5e04f6349894 |
---|---|
282 toolbox.y = ty | 282 toolbox.y = ty |
283 self._action_show_toolbox.setChecked(True) | 283 self._action_show_toolbox.setChecked(True) |
284 toolbox.adaptLayout() | 284 toolbox.adaptLayout() |
285 | 285 |
286 def toggleBlocking(self, sender): | 286 def toggleBlocking(self, sender): |
287 if self._mapview != None: | 287 if self._mapview is not None: |
288 for cam in self._mapview.getMap().getCameras(): | 288 for cam in self._mapview.getMap().getCameras(): |
289 r = fife.BlockingInfoRenderer.getInstance(cam) | 289 r = fife.BlockingInfoRenderer.getInstance(cam) |
290 r.setEnabled(not r.isEnabled()) | 290 r.setEnabled(not r.isEnabled()) |
291 | 291 |
292 def toggleGrid(self, sender): | 292 def toggleGrid(self, sender): |
293 if self._mapview != None: | 293 if self._mapview is not None: |
294 for cam in self._mapview.getMap().getCameras(): | 294 for cam in self._mapview.getMap().getCameras(): |
295 r = fife.GridRenderer.getInstance(cam) | 295 r = fife.GridRenderer.getInstance(cam) |
296 r.setEnabled(not r.isEnabled()) | 296 r.setEnabled(not r.isEnabled()) |
297 | 297 |
298 def toggleCoordinates(self, sender): | 298 def toggleCoordinates(self, sender): |
299 if self._mapview != None: | 299 if self._mapview is not None: |
300 for cam in self._mapview.getMap().getCameras(): | 300 for cam in self._mapview.getMap().getCameras(): |
301 r = fife.CoordinateRenderer.getInstance(cam) | 301 r = fife.CoordinateRenderer.getInstance(cam) |
302 if not r.isEnabled(): | 302 if not r.isEnabled(): |
303 r.clearActiveLayers() | 303 r.clearActiveLayers() |
304 color = str(self._settings.get("Colors", "Coordinate", "255,255,255")) | 304 color = str(self._settings.get("Colors", "Coordinate", "255,255,255")) |