diff options
Diffstat (limited to '')
-rw-r--r-- | src/ui.py | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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): |