improved look of kart and track selection screens

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3457 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-05-03 16:53:37 +00:00
parent 720bbbaee0
commit 392a6f1c50
3 changed files with 13 additions and 6 deletions

View File

@ -1,4 +1,4 @@
<div x="5%" y="1%" width="90%" height="99%" layout="vertical-row" >
<div x="2%" y="1%" width="96%" height="99%" layout="vertical-row" >
<label width="100%" height="25" text="Choose a Kart (more players can join by pressing 'fire' now)" align="center" text_align="center" />
@ -9,8 +9,11 @@
<model id="modelview" width="40%" proportion="3" align="center"/>
<label width="100%" height="25" text="Wilber" align="center" text_align="center" />
<ribbon_grid id="karts" proportion="2" square_items="true" width="100%" align="center" child_width="80" child_height="80"/>
<spacer height="15" width="25"/>
<box proportion="2" width="100%" layout="vertical-row"/>
<ribbon_grid id="karts" proportion="1" square_items="true" width="90%" align="center" child_width="80" child_height="80"/>
</box>
<tabs width="100%" height="25" id="kartgroups">
<button text="Standard"/>
<button text="Add-Ons"/>

View File

@ -1,4 +1,4 @@
<div x="5%" y="1%" width="90%" height="99%" layout="vertical-row" >
<div x="2%" y="1%" width="96%" height="99%" layout="vertical-row" >
<label width="100%" height="25" text="Grand Prix" align="center" text_align="center" />
@ -11,7 +11,9 @@
<label width="100%" height="25" text="All Tracks" align="center" text_align="center" />
<ribbon_grid id="tracks" proportion="1" width="100%" square_items="true" text="bottom" align="center" child_width="160" child_height="120" />
<box proportion="1" width="100%" layout="vertical-row"/>
<ribbon_grid id="tracks" proportion="1" width="95%" square_items="true" text="bottom" align="center" child_width="160" child_height="120" />
</box>
<tabs width="100%" height="25" id="trackgroups">
<button text="Standard"/>
@ -19,6 +21,7 @@
<button text="All"/>
</tabs>
<spacer width="20" height="20" />
</div>

View File

@ -45,9 +45,10 @@ A plain label. Supports properties PROP_WORD_WRAP and PROP_TEXT_ALIGN.
WTYPE_SPACER "spacer"
Some blank space; not visible on screen.
WTYPE_DIV "div"
WTYPE_DIV "div", "box"
A container. Does not do much on itself, but is useful to lay out children automatically. Divs can be nested.
Supports property PROP_LAYOUT. Of spawn type (<div>...</div>, place children within)
"box" is a variant that acts exactly the same but is visible on-screen
WTYPE_RIBBON_GRID "ribbon_grid", "scrollable_ribbon"
Shows a scrollable grid of icons. NOT of spawn type (<ribbon_grid .../>), contents must be programmatically set at runtime.