Notice: As race_manager->setKartSoccerTeam(i, info.team) already pre-set karts team, there is no need to test for (getNumKartsInTeam(SOCCER_TEAM_RED) == 0 || getNumKartsInTeam(SOCCER_TEAM_BLUE) == 0), so the the menu code is simplified.
47 lines
2.2 KiB
XML
47 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<stkgui>
|
|
<icon-button id="back" x="0" y="0" height="8%" icon="gui/back.png"/>
|
|
|
|
<div x="5%" y="5%" width="90%" height="90%" layout="vertical-row" >
|
|
|
|
<header width="80%" text="Race Setup" align="center" text_align="center" />
|
|
|
|
<spacer height="10" width="25"/>
|
|
|
|
<div layout="horizontal-row" width="fit" height="35" align="left">
|
|
<bright proportion="1" height="100%"
|
|
I18N="In soccer setup screen" text="Number of goals to win" text_align="left" />
|
|
<spacer width="10" height="25"/>
|
|
<spinner id="goalamount" width="200" height="90%" min_value="1" max_value="10"/>
|
|
</div>
|
|
|
|
<div layout="horizontal-row" width="fit" height="35" align="left">
|
|
<bright proportion="1" height="100%"
|
|
I18N="In soccer setup screen" text="Maximum time (min.)" text_align="left" />
|
|
<spacer width="10" height ="25"/>
|
|
<spinner id="timeamount" width="200" height="90%" min_value="1" max_value="15"/>
|
|
</div>
|
|
|
|
<div layout="horizontal-row" width="fit" height="35" align="left">
|
|
<bright proportion="1" height="100%"
|
|
I18N="In soccer setup screen" text="Game type (Goals limit / Time limit)" text_align="left" />
|
|
<spacer width="10" height="25"/>
|
|
<checkbox id="time_enabled"/>
|
|
</div>
|
|
|
|
<spacer height="10" width="25"/>
|
|
|
|
<bright height="10" width="25" I18N="In soccer setup screen" text="Use left/right to choose your team and press fire" text_align="center" align="center" />
|
|
|
|
<div id="central_div" layout="horizontal-row" width="100%" proportion="1" align="center">
|
|
<roundedbox y="5%" width="100%" layout="horizontal-row" height="95%">
|
|
<!-- Content is added programmatically -->
|
|
</roundedbox>
|
|
<bright I18N="In soccer setup screen" id="red_team" text="Red Team"/> <!-- Layout is done programmatically -->
|
|
<bright I18N="In soccer setup screen" id="blue_team" text="Blue Team"/>
|
|
</div>
|
|
|
|
<button id="continue" I18N="In soccer setup screen" text="Continue" align="center" width="60%"/>
|
|
</div>
|
|
</stkgui>
|