summaryrefslogtreecommitdiff
path: root/src/mapdata.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-12-04 03:44:02 +0100
committerTreeki <treeki@gmail.com>2012-12-04 03:44:02 +0100
commit652d8a1f3ac020b62c96caaeb72b95353c5ea7bd (patch)
tree4bbaeaad2f5b94fbe15b4fd70fef5de90a8b6449 /src/mapdata.py
parent8d8c0287ee0f6dac9caebfcdedde410a532cb35f (diff)
downloadkoopatlas-652d8a1f3ac020b62c96caaeb72b95353c5ea7bd.tar.gz
koopatlas-652d8a1f3ac020b62c96caaeb72b95353c5ea7bd.zip
added the title level to world editor.. how did I forget to commit this
Diffstat (limited to '')
-rw-r--r--src/mapdata.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mapdata.py b/src/mapdata.py
index 7a61a64..88e1dcb 100644
--- a/src/mapdata.py
+++ b/src/mapdata.py
@@ -175,15 +175,15 @@ class KPPathTileLayer(KPLayer):
self.cache = ['DUMMY_FLAG']
- if pathnode is None:
- return
-
self.tileset = ''
self.objects = []
self.doodads = []
self.associate = pathnode
self.folder = ''
+ if pathnode is None:
+ return
+
self.updateCache()
def _visibilityChanged(self, value):
@@ -549,7 +549,7 @@ class KPPathLayer(KPLayer):
@mapfile.dumpable('world_definition')
class KPWorldDef(object):
- __dump_attribs__ = ('uniqueKey', 'name', 'worldID', 'fsHintColours', 'fsTextColours', 'hudHintTransform', 'hudTextColours', 'musicTrackID')
+ __dump_attribs__ = ('uniqueKey', 'name', 'worldID', 'fsHintColours', 'fsTextColours', 'hudHintTransform', 'hudTextColours', 'musicTrackID', 'titleScreenID')
def __init__(self):
self.uniqueKey = -1
@@ -563,6 +563,7 @@ class KPWorldDef(object):
self.hudTextColours = ((255,255,255,255),(255,255,255,255))
self.musicTrackID = 0
+ self.titleScreenID = '01-40'
@mapfile.dumpable('map_root')