From: <asc...@us...> - 2011-03-14 22:20:16
|
Revision: 7900 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=7900&view=rev Author: asciimonster Date: 2011-03-14 22:20:10 +0000 (Mon, 14 Mar 2011) Log Message: ----------- [stk_browser] Added indentation for conditional properties. Also fixed some 'inaccuracies' as noticed by Auria. Modified Paths: -------------- main/trunk/data/tracks/stk_browser.py Modified: main/trunk/data/tracks/stk_browser.py =================================================================== --- main/trunk/data/tracks/stk_browser.py 2011-03-14 22:03:06 UTC (rev 7899) +++ main/trunk/data/tracks/stk_browser.py 2011-03-14 22:20:10 UTC (rev 7900) @@ -121,8 +121,8 @@ "Sun":["ambient","diffuse","specular"],\ "Texture":["anisotropic","backface-culling","clampU","clampV","compositing","disable-z-write",\ "friction","ignore","light","max-speed","reset","slowdown-time","sphere",\ - "graphical-effect","sound-effect","surface", "below-surface",\ - "falling-effect", \ + "graphical-effect","surface","below-surface",\ + "falling-effect","sound-effect", \ "sfx:filename|sound-effect=yes",\ "sfx:name|sound-effect=yes",\ "sfx:rolloff|sound-effect=yes",\ @@ -282,7 +282,7 @@ # For picklist, add <name>:<valuelist> to lSTK_Picklist. The valuelist items are |-separated... lSTK_Picklist = {"sky-type": "dome|box|simple",\ - "graphical-effect": "none|water|smoke",\ + "graphical-effect": "none|water",\ "compositing": "none|blend|test|additive",\ "particle:condition": "skid|drive",\ "interaction": "none|ghost|static|move",\ @@ -758,9 +758,14 @@ if cur_prop_nr < self.property_cursor: continue + #Apply background striation if (cur_prop_nr % 2) > 0: self.DrawBox(x,y-1,width,textheight+1) + #Apply indentation to conditional properties + if prop_name not in lSTKTypes2Properties[data.GetCurrentType()]: + x += pad + #Delete button if prop_type not in [type_STATIC,type_TYPELIST]: # Delete button no longer necessary This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |