IDTypeModules = [[Scene, 0, "Scenes"], [Image, 0, "Images"]]
hiker {l Wrote}:What do you think of the idea of modifying this code a bit more and turn it into a stk-track-property browser or so ...
asciimonster {l Wrote}:hiker {l Wrote}:What do you think of the idea of modifying this code a bit more and turn it into a stk-track-property browser or so ...
I think that is a good idea. That way we can tune it even more to our liking and decrease the threshold for new STK designers.
I added a small proof-of-concept.
water2.png reset=Y transparency=Y
track_guiderail.png transparency=Y
Walltexture4a.png transparency=Y
Walltexture4b.png transparency=Y
Walltexture4c.png transparency=Y
Walltexture4d.png transparency=Y
Walltexture5a.png transparency=Y
Walltexture5b.png transparency=Y
Walltexture5c.png transparency=Y
Walltexture5d.png transparency=Y
Track wide:
String: name, version, groups, designer, music, screenshot, arena, sky-type, sky-texture, fog-color, fog-density, fog-start, fog-end
Float/Decimal: sky-horizontal, sky-vertical, sky-texture-percent, sky-sphere-percent, ambient-color
Integer: fog (?)
Textures:
String: clamp, transparency, alpha, light, sphere, anisotropic, ignore, zipper, reset, graphical-effect,
Float/Decimal: max-speed
Integer: slowdown
Auria {l Wrote}:@Joerg: I just realized we're ridiculous, "arena" can be "yes" or "no"; fog can be "0" or "non-0"; and we use "Y"/"N" everywhere else
s=="" || s[0]=='T' || s[0]=='t' || s[0]=='Y' || s[0]=='y' ||
s=="#t" || s =="#T";
Auria {l Wrote}:transparency, alpha, light, anisotropic, ignore, reset can only be "Y" or "N", so they could even appear as checkboxes
You can find more types here : http://supertuxkart.sourceforge.net/Tra ... properties
"How much of the sphere is drawn. Value should be between 0 and 2, where 1 is an exact half-sphere and 2 is a full sphere (sky-dome only)."
"How much of the sphere is drawn. Value should be between 0 and 2, where 1 is an exact half-sphere and 2 is a full sphere (sky-dome only)."
Auria {l Wrote}:transparency, alpha, light, anisotropic, ignore, reset can only be "Y" or "N", so they could even appear as checkboxes
asciimonster {l Wrote}:I just wanted to note that the Blender API doesn't have radiobuttons, so I'll have to be inventive...
asciimonster {l Wrote}:Yes, but unfortunately togglebuttons aren't situationally aware, i.e. they don't "declick" themselves when another one of the group is clicked...
asciimonster {l Wrote}:Update... Added all the recent changes in the wiki. Added a nice radiobutton feature (I rule!)
To-do: Change track exporter to allow for changes in the materials.xml format. (The nested sfx tag is not trivial!)
Two things:
- Would you add the STK property browser to the svn?
- How can I make sure I use the right svn version of the track exporter?
Users browsing this forum: No registered users and 1 guest