summaryrefslogtreecommitdiff
path: root/src/ui.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ui.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ui.py b/src/ui.py
index 648cfa9..247938e 100644
--- a/src/ui.py
+++ b/src/ui.py
@@ -58,11 +58,17 @@ class KPLayerList(QtGui.QWidget):
def addLayer(self):
from dialogs import KPTilesetChooserDialog
- tilesetName = KPTilesetChooserDialog.run('Choose a tileset for the new layer')
+ special = ['Doodads (Special)']
+ tilesetName = KPTilesetChooserDialog.run('Choose a tileset for the new layer', special)
if tilesetName is None:
return
- KP.map.appendLayer(KP.map.createNewLayer(tilesetName))
+ if tilesetName == 0:
+ layer = KP.map.createNewDoodadLayer()
+ else:
+ layer = KP.map.createNewTileLayer(tilesetName)
+
+ KP.map.appendLayer(layer)
self.setButtonStates()
def removeLayer(self):