From 652d8a1f3ac020b62c96caaeb72b95353c5ea7bd Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 4 Dec 2012 03:44:02 +0100 Subject: added the title level to world editor.. how did I forget to commit this --- src/mapdata.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/mapdata.py') 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') -- cgit v1.2.3