Mercurial > fife-parpg
comparison tools/editor/scripts/gui/layerdialog.py @ 570:0e0a30f0eb20
Finally found the bug when you create a new map and are unable to place instances on the map until you save and re-load the map.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 28 Jun 2010 21:28:44 +0000 |
parents | e34b44afd428 |
children |
comparison
equal
deleted
inserted
replaced
569:466d76db9701 | 570:0e0a30f0eb20 |
---|---|
24 from fife import fife | 24 from fife import fife |
25 from fife.extensions import pychan | 25 from fife.extensions import pychan |
26 from fife.extensions.pychan import dialogs | 26 from fife.extensions.pychan import dialogs |
27 | 27 |
28 class LayerDialog(object): | 28 class LayerDialog(object): |
29 """ The B{LayerDialog} provides a gui dialog for creating and editing layers. | 29 """ |
30 The B{LayerDialog} provides a gui dialog for creating and editing layers. | |
30 | 31 |
31 FIXME: | 32 FIXME: |
32 - gridtypes can only be square for now | 33 - gridtypes can only be square for now |
33 - pathing strategy | 34 - pathing strategy |
34 """ | 35 """ |
35 def __init__(self, engine, map, callback=None, onCancel=None, layer=None): | 36 def __init__(self, engine, map, callback=None, onCancel=None, layer=None): |
36 self.engine = engine | 37 self.engine = engine |
37 self.model = engine.getModel() | 38 self.model = engine.getModel() |
38 self.map = map | 39 self.map = map |
39 self.layer = layer | 40 self.layer = layer |