Fixed #1486. Made most menus more consistent (e.g. same position

and height for heading).
This commit is contained in:
hiker 2014-09-05 08:46:06 +10:00
parent 6671182efd
commit 8fd6877e92
3 changed files with 85 additions and 87 deletions

View File

@ -2,9 +2,9 @@
<stkgui>
<icon-button id="back" x="0" y="0" height="8%" icon="gui/back.png"/>
<div x="1%" y="1%" width="96%" height="98%" layout="vertical-row">
<div x="2%" y="2%" width="96%" height="96%" layout="vertical-row">
<header id="name" width="80%" align="center" text_align="center"/>
<header id="name" height="5%" width="80%" align="center" text_align="center"/>
<spacer width="1" height="5%"/>
@ -24,23 +24,23 @@
</div>
</box>
<spacer width="1" height="3%"/>
<box width="95%" height="30%" padding="10" layout="horizontal-row">
<spacer width="1" height="5%"/>
<box width="95%" height="25%" padding="10" layout="horizontal-row">
<spacer width="1" height="5%"/>
<div width="50%" height="100%" layout="vertical-row">
<div width="100%" height="fit" layout="horizontal-row" >
<div width="100%" height="20%" layout="horizontal-row" >
<label id="ai-text" height="100%" width="50%" I18N="Number of AI karts" text="AI karts"/>
<spinner id="ai-spinner" width="50%" min_value="1" max_value="20" align="center"
wrap_around="true" />
</div>
<spacer height="5%" />
<div width="100%" height="fit" layout="horizontal-row" >
<div width="100%" height="20%" layout="horizontal-row" >
<label id="reverse-text" width="50%" height="100%" I18N="Drive the track reverse" text="Reverse"/>
<spinner id="reverse-spinner" width="50%" align="center" wrap_around="true" />
</div>
<spacer height="5%" />
<div width="100%" height="fit" layout="horizontal-row">
<div width="100%" height="20%" layout="horizontal-row">
<label id="track-text" width="50%" height="100%" text="Tracks"
I18N="Number of tracks to pick in a random Grand Prix."/>
<spinner id="track-spinner" width="50%" min_value="1" max_value="20" align="center"
@ -48,14 +48,14 @@
<spacer height="1%" />
</div>
<spacer height="5%" />
<div width="100%" height="fit" layout="horizontal-row" >
<div width="100%" height="20%" layout="horizontal-row" >
<label id="group-text" width="50%" height="100%" I18N="Number of AI karts" text="Track group"/>
<spinner id="group-spinner" width="50%" align="center" wrap_around="true" />
<spacer proportion="1" height="2" />
</div>
</div>
</box>
<spacer width="1" height="2%"/>
<spacer width="1" height="5%"/>
<buttonbar id="buttons" height="15%" width="100%" align="center">
<icon-button id="start" width="64" height="64" icon="gui/green_check.png"

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<stkgui>
<div x="5%" y="5%" width="90%" height="90%" layout="vertical-row" >
<div x="2%" y="2%" width="96%" height="96%" layout="vertical-row" >
<header width="80%" text="Race Setup" align="center" text_align="center" />
<header height="5%" width="80%" text="Race Setup" align="center" text_align="center" />
<spacer height="5%" width="25"/>
<box width="95%" height="40%" padding="10" layout="vertical-row">

View File

@ -2,14 +2,13 @@
<stkgui>
<icon-button id="back" x="0" y="0" height="8%" icon="gui/back.png"/>
<div x="1%" y="1%" width="98%" height="98%">
<div x="2%" y="2%" width="96%" height="96%" layout="vertical-row">
<header id="name" width="100%" text_align="center"/>
<header id="name" height="5%" width="80%" align="center" text_align="center"/>
<spacer width="1" height="5%"/>
<box width="95%" height="45%" padding="10" layout="horizontal-row">
<box width="95%" height="40%" padding="10" layout="horizontal-row">
<!-- Left pane -->
<div proportion="1" height="100%" layout="vertical-row">
<placeholder proportion="1" width="100%" height="100%" id="screenshot_div">
@ -79,14 +78,13 @@
</div>
<spacer width="1" height="2%"/>
</box>
<spacer width="1" height="2%"/>
<spacer width="1" height="5%"/>
<buttonbar id="buttons" height="15%" width="100%" align="center">
<icon-button id="start" width="64" height="64" icon="gui/green_check.png"
I18N="Start race" text="Start Race"/>
</buttonbar>>
</div>
</div>
</stkgui>