Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/pregame/mainmenu.xml
Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | > | ||||
<action on="Press"> | <action on="Press"> | ||||
closeMenu(); | closeMenu(); | ||||
<![CDATA[ | <![CDATA[ | ||||
Engine.PushGuiPage("page_manual.xml", {"page":"manual/intro", "title":getManual(), "url":"http://trac.wildfiregames.com/wiki/0adManual"}); | Engine.PushGuiPage("page_manual.xml", {"page":"manual/intro", "title":getManual(), "url":"http://trac.wildfiregames.com/wiki/0adManual"}); | ||||
]]> | ]]> | ||||
</action> | </action> | ||||
</object> | </object> | ||||
<!-- START TUTORIAL BUTTON --> | |||||
<object name="startTutorialButton" | |||||
type="button" | |||||
style="StoneButtonFancy" | |||||
size="0 32 100% 60" | |||||
tooltip_style="pgToolTip" | |||||
> | |||||
<translatableAttribute id="caption">Tutorial</translatableAttribute> | |||||
<translatableAttribute id="tooltip">Start the economic tutorial.</translatableAttribute> | |||||
<action on="Press"> | |||||
Engine.SwitchGuiPage("page_gamesetup.xml", { type: "offline", "tutorial": true }); | |||||
</action> | |||||
</object> | |||||
<!-- STRUCTREE BUTTON --> | <!-- STRUCTREE BUTTON --> | ||||
<object name="menuStrucTreeButton" | <object name="menuStrucTreeButton" | ||||
style="StoneButtonFancy" | style="StoneButtonFancy" | ||||
type="button" | type="button" | ||||
size="0 32 100% 60" | size="0 64 100% 92" | ||||
tooltip_style="pgToolTip" | tooltip_style="pgToolTip" | ||||
> | > | ||||
<translatableAttribute id="caption">Structure Tree</translatableAttribute> | <translatableAttribute id="caption">Structure Tree</translatableAttribute> | ||||
<translatableAttribute id="tooltip">View the structure tree of civilizations featured in 0 A.D.</translatableAttribute> | <translatableAttribute id="tooltip">View the structure tree of civilizations featured in 0 A.D.</translatableAttribute> | ||||
<action on="Press"> | <action on="Press"> | ||||
closeMenu(); | closeMenu(); | ||||
<![CDATA[ | <![CDATA[ | ||||
Engine.PushGuiPage("page_structree.xml", {}); | Engine.PushGuiPage("page_structree.xml", {}); | ||||
]]> | ]]> | ||||
</action> | </action> | ||||
</object> | </object> | ||||
<!-- HISTORY BUTTON --> | <!-- HISTORY BUTTON --> | ||||
<object name="menuHistoryButton" | <object name="menuHistoryButton" | ||||
style="StoneButtonFancy" | style="StoneButtonFancy" | ||||
type="button" | type="button" | ||||
size="0 64 100% 92" | size="0 96 100% 124" | ||||
tooltip_style="pgToolTip" | tooltip_style="pgToolTip" | ||||
> | > | ||||
<translatableAttribute id="caption">History</translatableAttribute> | <translatableAttribute id="caption">History</translatableAttribute> | ||||
<translatableAttribute id="tooltip">Learn about the many civilizations featured in 0 A.D.</translatableAttribute> | <translatableAttribute id="tooltip">Learn about the many civilizations featured in 0 A.D.</translatableAttribute> | ||||
<action on="Press"> | <action on="Press"> | ||||
closeMenu(); | closeMenu(); | ||||
<![CDATA[ | <![CDATA[ | ||||
Engine.PushGuiPage("page_civinfo.xml"); | Engine.PushGuiPage("page_civinfo.xml"); | ||||
▲ Show 20 Lines • Show All 256 Lines • ▼ Show 20 Lines | > | ||||
<!-- LEARN BUTTON --> | <!-- LEARN BUTTON --> | ||||
<object name="menuLearnToPlayButton" | <object name="menuLearnToPlayButton" | ||||
style="StoneButtonFancy" | style="StoneButtonFancy" | ||||
type="button" | type="button" | ||||
size="4 4 100%-4 32" | size="4 4 100%-4 32" | ||||
tooltip_style="pgToolTip" | tooltip_style="pgToolTip" | ||||
> | > | ||||
<translatableAttribute id="caption">Learn To Play</translatableAttribute> | <translatableAttribute id="caption">Learn To Play</translatableAttribute> | ||||
<translatableAttribute id="tooltip">Learn how to play, discover the technology trees, and the history behind the civilizations</translatableAttribute> | <translatableAttribute id="tooltip">Learn how to play, start the tutorial, discover the technology trees, and the history behind the civilizations</translatableAttribute> | ||||
<action on="Press"> | <action on="Press"> | ||||
closeMenu(); | closeMenu(); | ||||
openMenu("submenuLearn", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 3); | openMenu("submenuLearn", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 4); | ||||
</action> | </action> | ||||
</object> | </object> | ||||
<!-- SINGLEPLAYER BUTTON --> | <!-- SINGLEPLAYER BUTTON --> | ||||
<object name="menuSinglePlayerButton" | <object name="menuSinglePlayerButton" | ||||
style="StoneButtonFancy" | style="StoneButtonFancy" | ||||
type="button" | type="button" | ||||
size="4 36 100%-4 64" | size="4 36 100%-4 64" | ||||
▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator