From: <hik...@us...> - 2010-06-13 11:40:55
|
Revision: 5511 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=5511&view=rev Author: hikerstk Date: 2010-06-13 11:40:49 +0000 (Sun, 13 Jun 2010) Log Message: ----------- Added support for specifying the sky-dome texture speed in x and y direction. Modified Paths: -------------- main/trunk/data/tracks/stk_track.py Modified: main/trunk/data/tracks/stk_track.py =================================================================== --- main/trunk/data/tracks/stk_track.py 2010-06-12 23:48:38 UTC (rev 5510) +++ main/trunk/data/tracks/stk_track.py 2010-06-13 11:40:49 UTC (rev 5511) @@ -438,7 +438,9 @@ # Add default settings for sky-dome so that the user is aware of # can be set. getIdProperty(scene, "sky-type", "dome") - getIdProperty(scene, "sky-texture", "" ) + getIdProperty(scene, "sky-texture", "" ) + getIdProperty(scene, "sky-speed-x", "0") + getIdProperty(scene, "sky-speed-y", "0") # Not sure if these should be added - if the user wants a sky # box they are quiet annoying. #getIdProperty(scene, "sky-horizontal","") @@ -1095,15 +1097,18 @@ if s: texture = "%s %s"%(texture, s) if sky and texture: if sky=="dome": - hori = getIdProperty(scene, "sky-horizontal", 16 ) - verti = getIdProperty(scene, "sky-vertical", 16 ) - tex_percent = getIdProperty(scene, "sky-texture-percent",0.5) - sphere_percent = getIdProperty(scene, "sky-sphere-percent", 1.3) + hori = getIdProperty(scene, "sky-horizontal", 16 ) + verti = getIdProperty(scene, "sky-vertical", 16 ) + tex_percent = getIdProperty(scene, "sky-texture-percent", 0.5) + sphere_percent = getIdProperty(scene, "sky-sphere-percent", 1.3) + speed_x = getIdProperty(scene, "sky-speed-x", 0.0) + speed_y = getIdProperty(scene, "sky-speed-y", 0.0) f.write(""" <sky-dome texture=\"%s\" horizontal=\"%s\" vertical=\"%s\" - texture-percent=\"%s\" sphere-percent=\"%s\"/> -""" %(texture, hori, verti, tex_percent, sphere_percent)) + texture-percent=\"%s\" sphere-percent=\"%s\" + speed-x=\"%s\" speed-y=\"%s\" /> +""" %(texture, hori, verti, tex_percent, sphere_percent, speed_x, speed_y)) elif sky=="box": lTextures = string.split(texture) if len(lTextures)==5: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |