forked from 0ad/0ad
584 lines
17 KiB
XML
584 lines
17 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<objects>
|
|
<script file="gui/common/music.js"/>
|
|
<script file="gui/common/functions_global_object.js"/>
|
|
<script file="gui/common/functions_utility_error.js"/>
|
|
<script file="gui/pregame/mainmenu.js"/>
|
|
|
|
|
|
<!--
|
|
==========================================
|
|
- MAIN MENU
|
|
==========================================
|
|
-->
|
|
<object name="mainMenuPage">
|
|
|
|
<action on="Tick">
|
|
onTick();
|
|
</action>
|
|
|
|
<object name="backgroundHele1-1"
|
|
type="image"
|
|
sprite="background-hellenes1-1"
|
|
hidden="true"
|
|
ghost="true"
|
|
z="1"
|
|
/>
|
|
<object name="backgroundHele1-2"
|
|
type="image"
|
|
sprite="background-hellenes1-2"
|
|
hidden="true"
|
|
ghost="true"
|
|
z="2"
|
|
/>
|
|
<object name="backgroundHele1-3"
|
|
type="image"
|
|
sprite="background-hellenes1-3"
|
|
hidden="true"
|
|
ghost="true"
|
|
z="3"
|
|
/>
|
|
|
|
<!--
|
|
==========================================
|
|
- MAIN MENU - STATIC TOOLTIP WINDOW
|
|
==========================================
|
|
-->
|
|
|
|
<object name="pgToolTip"
|
|
style="TranslucentPanel"
|
|
type="text"
|
|
hidden="true"
|
|
size="100%-290 25 100% 140"
|
|
ghost="true"
|
|
/>
|
|
|
|
<!--
|
|
==========================================
|
|
- MAIN MENU - USER REPORT
|
|
==========================================
|
|
-->
|
|
|
|
<object
|
|
name="userReportDisabled"
|
|
size="100%-304 100%-154 100%-4 100%-4"
|
|
type="image"
|
|
style="userReportPanel"
|
|
>
|
|
<object
|
|
type="text"
|
|
style="userReportText"
|
|
>
|
|
<attribute id="caption">
|
|
<keep>[font="sans-bold-16"]</keep>
|
|
<translate>Help improve 0 A.D.!</translate>
|
|
<keep>[/font]\n</keep>
|
|
<translate>You can automatically send us anonymous feedback that will help us fix bugs, and improve performance and compatibility.</translate>
|
|
</attribute>
|
|
</object>
|
|
<object type="button" style="StoneButton" size="8 100%-36 146 100%-8">
|
|
<translatableAttribute id="caption">Enable Feedback</translatableAttribute>
|
|
<action on="Press">EnableUserReport(true);</action>
|
|
</object>
|
|
<object type="button" style="StoneButton" size="100%-146 100%-36 100%-8 100%-8">
|
|
<translatableAttribute id="caption">Technical Details</translatableAttribute>
|
|
<action on="Press">Engine.PushGuiPage("page_manual.xml", {"page":"manual/userreport", "title":getTechnicalDetails()});</action>
|
|
</object>
|
|
</object>
|
|
|
|
<object
|
|
name="userReportEnabled"
|
|
size="100%-304 100%-154 100%-4 100%-4"
|
|
type="image"
|
|
style="userReportPanel"
|
|
>
|
|
<object
|
|
name="userReportEnabledText"
|
|
type="text"
|
|
style="userReportText"
|
|
>
|
|
<attribute id="caption">
|
|
<keep>[font="sans-bold-16"]</keep>
|
|
<translate>Thank you for helping improve 0 A.D.!</translate>
|
|
<keep>[/font]\n\n</keep>
|
|
<translate>Anonymous feedback is currently enabled.</translate>
|
|
<keep>\n</keep>
|
|
<translate>Status: $status.</translate>
|
|
</attribute>
|
|
</object>
|
|
|
|
<object type="button" style="StoneButton" size="8 100%-36 146 100%-8">
|
|
<translatableAttribute id="caption">Disable Feedback</translatableAttribute>
|
|
<action on="Press">EnableUserReport(false);</action>
|
|
</object>
|
|
<object type="button" style="StoneButton" size="100%-146 100%-36 100%-8 100%-8">
|
|
<translatableAttribute id="caption">Technical Details</translatableAttribute>
|
|
<action on="Press">Engine.PushGuiPage("page_manual.xml", {"page":"manual/userreport", "title":getTechnicalDetails()});</action>
|
|
</object>
|
|
</object>
|
|
|
|
|
|
<!--
|
|
==========================================
|
|
- SUBMENU
|
|
==========================================
|
|
-->
|
|
|
|
<!-- hide submenu when user clicks on the background -->
|
|
<object name="subMenuScreen" type="button">
|
|
<action on="Press">
|
|
closeMenu();
|
|
</action>
|
|
</object>
|
|
|
|
<!-- submenu -->
|
|
<object name="submenu"
|
|
type="image"
|
|
style="SubmenuPanel"
|
|
size="60 50%-100 300 50%+100"
|
|
hidden="true"
|
|
>
|
|
<!-- submenuSinglePlayer -->
|
|
<object name="submenuSinglePlayer"
|
|
type="image"
|
|
size="0 4 100%-4 100%-4"
|
|
tooltip_style="pgToolTip"
|
|
hidden="true"
|
|
>
|
|
<object name="subMenuSinglePlayerButton"
|
|
type="button"
|
|
style="StoneButtonFancy"
|
|
size="0 0 100% 28"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Matches</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Click here to start a new single player game.</translatableAttribute>
|
|
<action on="Press">
|
|
Engine.SwitchGuiPage("page_gamesetup.xml", { type: "offline" });
|
|
</action>
|
|
</object>
|
|
|
|
<object name="subMenuCampaignButton"
|
|
type="button"
|
|
style="StoneButtonFancy"
|
|
size="0 32 100% 60"
|
|
tooltip_style="pgToolTip"
|
|
enabled="false"
|
|
>
|
|
<translatableAttribute id="caption">Campaigns</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Relive history through historical military campaigns. [NOT YET IMPLEMENTED]</translatableAttribute>
|
|
<action on="Press">
|
|
closeMenu();
|
|
<![CDATA[
|
|
// Open Campaigns window.
|
|
// NOT IMPLEMENTED YET
|
|
]]>
|
|
</action>
|
|
</object>
|
|
|
|
<object name="subMenuLoadButton"
|
|
type="button"
|
|
style="StoneButtonFancy"
|
|
size="0 64 100% 92"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Load Game</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Click here to load a saved game.</translatableAttribute>
|
|
<action on="Press">
|
|
closeMenu();
|
|
Engine.PushGuiPage("page_loadgame.xml", { type: "offline" });
|
|
</action>
|
|
</object>
|
|
|
|
</object>
|
|
|
|
<!-- submenuMultiplayer -->
|
|
<object name="submenuMultiplayer"
|
|
type="image"
|
|
size="0 4 100%-4 100%-4"
|
|
tooltip_style="pgToolTip"
|
|
hidden="true"
|
|
>
|
|
<object name="subMenuMultiplayerJoinButton"
|
|
type="button"
|
|
style="StoneButtonFancy"
|
|
size="0 0 100% 28"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Join Game</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Joining an existing multiplayer game.</translatableAttribute>
|
|
<action on="Press">
|
|
closeMenu();
|
|
// Open Multiplayer connection window with join option.
|
|
Engine.PushGuiPage("page_gamesetup_mp.xml", { multiplayerGameType: "join" });
|
|
</action>
|
|
</object>
|
|
|
|
<object name="subMenuMultiplayerHostButton"
|
|
type="button"
|
|
style="StoneButtonFancy"
|
|
size="0 32 100% 60"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Host Game</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Host a multiplayer game.\n\nRequires UDP port 20595 to be open.</translatableAttribute>
|
|
<action on="Press">
|
|
closeMenu();
|
|
// Open Multiplayer connection window with host option.
|
|
Engine.PushGuiPage("page_gamesetup_mp.xml", { multiplayerGameType: "host" });
|
|
</action>
|
|
</object>
|
|
|
|
<object name="subMenuMultiplayerLobbyButton"
|
|
type="button"
|
|
style="StoneButtonFancy"
|
|
size="0 64 100% 92"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Game Lobby</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Launch the multiplayer lobby.</translatableAttribute>
|
|
<action on="Press">
|
|
closeMenu();
|
|
// Open Multiplayer game lobby.
|
|
Engine.PushGuiPage("page_prelobby.xml", []);
|
|
</action>
|
|
<action on="load">
|
|
if (!Engine.StartXmppClient)
|
|
{
|
|
this.enabled = false;
|
|
this.tooltip = getLobbyDisabledByBuild();
|
|
}
|
|
</action>
|
|
</object>
|
|
</object>
|
|
|
|
<!-- submenuToolsAndOptions -->
|
|
<object name="submenuToolsAndOptions"
|
|
type="image"
|
|
size="0 4 100%-4 100%-4"
|
|
tooltip_style="pgToolTip"
|
|
hidden="true"
|
|
>
|
|
<object name="submenuOptionsButton"
|
|
style="StoneButtonFancy"
|
|
type="button"
|
|
size="0 0 100% 28"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Options</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Adjust game settings.</translatableAttribute>
|
|
<action on="Press">
|
|
closeMenu();
|
|
<![CDATA[
|
|
// Open Options window.
|
|
Engine.PushGuiPage("page_options.xml");
|
|
]]>
|
|
</action>
|
|
</object>
|
|
|
|
<object name="submenuLocaleButton"
|
|
style="StoneButtonFancy"
|
|
type="button"
|
|
size="0 32 100% 60"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Language</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Choose the language of the game.</translatableAttribute>
|
|
<action on="Press">
|
|
<![CDATA[
|
|
closeMenu();
|
|
Engine.PushGuiPage("page_locale.xml");
|
|
]]>
|
|
</action>
|
|
</object>
|
|
|
|
<object name="submenuEditorButton"
|
|
style="StoneButtonFancy"
|
|
type="button"
|
|
size="0 64 100% 92"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Scenario Editor</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Open the Atlas Scenario Editor in a new window. You can run this more reliably by starting the game with the command-line argument "-editor".</translatableAttribute>
|
|
<action on="Press">
|
|
pressedScenarioEditorButton();
|
|
</action>
|
|
</object>
|
|
|
|
<object name="submenuWelcomeScreenButton"
|
|
style="StoneButtonFancy"
|
|
type="button"
|
|
size="0 96 100% 124"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Welcome Screen</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Show the Welcome Screen. Useful if you hid it by mistake.</translatableAttribute>
|
|
<action on="Press">
|
|
<![CDATA[
|
|
closeMenu();
|
|
Engine.PushGuiPage("page_splashscreen.xml", { "page": "splashscreen", callback : "SplashScreenClosedCallback" } );
|
|
]]>
|
|
</action>
|
|
</object>
|
|
<object name="submenuModSelection"
|
|
style="StoneButtonFancy"
|
|
type="button"
|
|
size="0 128 100% 156"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Mod Selection</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Select mods to use.</translatableAttribute>
|
|
<action on="Press">
|
|
Engine.SwitchGuiPage("page_modmod.xml", {});
|
|
</action>
|
|
</object>
|
|
</object>
|
|
</object><!-- end of submenu -->
|
|
|
|
|
|
<!--
|
|
==========================================
|
|
- MAIN MENU PANEL
|
|
==========================================
|
|
-->
|
|
<object name="mainMenu"
|
|
type="image"
|
|
style="MainMenuPanel"
|
|
size="60 -2 300 100%+2"
|
|
z="50"
|
|
>
|
|
<!-- These are used to make the right side blend in with the submenu -->
|
|
<object name="MainMenuPanelRightBorderTop"
|
|
type="image"
|
|
sprite="MainMenuPanelRightBorder"
|
|
ghost="true"
|
|
size="100%-2 0 100% 100%"
|
|
/>
|
|
<object name="MainMenuPanelRightBorderBottom"
|
|
type="image"
|
|
sprite="MainMenuPanelRightBorder"
|
|
ghost="true"
|
|
size="100%-2 0 100% 100%"
|
|
/>
|
|
|
|
<object name="productLogo"
|
|
type="image"
|
|
sprite="productLogo"
|
|
ghost="true"
|
|
size="50%-110 30 50%+110 130"
|
|
/>
|
|
|
|
<object name="mainMenuButtons"
|
|
type="image"
|
|
size="8 156 100%-8 356"
|
|
ghost="false"
|
|
>
|
|
<!-- LEARN TO PLAY BUTTON -->
|
|
<object name="menuLearnToPlayButton"
|
|
type="button"
|
|
style="StoneButtonFancy"
|
|
size="4 4 100%-4 32"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Learn To Play</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Open the 0 A.D. Game Manual.</translatableAttribute>
|
|
<action on="Press">
|
|
closeMenu();
|
|
<![CDATA[
|
|
Engine.PushGuiPage("page_manual.xml", {"page":"manual/intro", "title":getManual(), "url":"http://trac.wildfiregames.com/wiki/0adManual"});
|
|
]]>
|
|
</action>
|
|
</object>
|
|
|
|
<!-- SINGLEPLAYER BUTTON -->
|
|
<object name="menuSinglePlayerButton"
|
|
style="StoneButtonFancy"
|
|
type="button"
|
|
size="4 36 100%-4 64"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Single Player</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Challenge the computer player to a single player match.</translatableAttribute>
|
|
<action on="Press">
|
|
closeMenu();
|
|
openMenu("submenuSinglePlayer", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 3);
|
|
</action>
|
|
</object>
|
|
|
|
<!-- MULTIPLAYER BUTTON -->
|
|
<object name="menuMultiplayerButton"
|
|
style="StoneButtonFancy"
|
|
type="button"
|
|
size="4 68 100%-4 96"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Multiplayer</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Fight against one or more human players in a multiplayer game.</translatableAttribute>
|
|
<action on="Press">
|
|
closeMenu();
|
|
openMenu("submenuMultiplayer", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 3);
|
|
</action>
|
|
</object>
|
|
|
|
<!-- TOOLS AND OPTIONS BUTTON -->
|
|
<object name="menuToolsAndOptionsButton"
|
|
style="StoneButtonFancy"
|
|
type="button"
|
|
size="4 100 100%-4 128"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Tools & Options</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Game options and scenario design tools.</translatableAttribute>
|
|
<action on="Press">
|
|
closeMenu();
|
|
openMenu("submenuToolsAndOptions", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 5);
|
|
</action>
|
|
</object>
|
|
|
|
<!-- HISTORY BUTTON -->
|
|
<object name="menuHistoryButton"
|
|
style="StoneButtonFancy"
|
|
type="button"
|
|
size="4 132 100%-4 160"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">History</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Learn about the many civilizations featured in 0 A.D.</translatableAttribute>
|
|
<action on="Press">
|
|
closeMenu();
|
|
<![CDATA[
|
|
Engine.PushGuiPage("page_civinfo.xml");
|
|
]]>
|
|
</action>
|
|
</object>
|
|
|
|
<!-- EXIT BUTTON -->
|
|
<object name="menuExitButton"
|
|
type="button"
|
|
style="StoneButtonFancy"
|
|
size="4 164 100%-4 192"
|
|
tooltip_style="pgToolTip"
|
|
>
|
|
<translatableAttribute id="caption">Exit</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Exits the game.</translatableAttribute>
|
|
<action on="Press">exitGamePressed();</action>
|
|
</object>
|
|
</object>
|
|
|
|
<!-- PRE-RELEASE INFO -->
|
|
<object size="8 100%-400 100%-8 100%-100"
|
|
type="image"
|
|
style="TranslucentPanelThinBorder"
|
|
>
|
|
|
|
<!-- PRE-RELEASE WARNING -->
|
|
<object
|
|
font="sans-14"
|
|
type="text"
|
|
textcolor="white"
|
|
size="8 8 100%-8 100%-36"
|
|
ghost="true"
|
|
>
|
|
<!-- IMPORTANT: remember to update session/session.xml in sync with this: -->
|
|
<attribute id="caption">
|
|
<keep>[font="sans-bold-16"]</keep>
|
|
<translate>Alpha XVI: PataƱjali</translate>
|
|
<keep>[/font]\n\n</keep>
|
|
<translate>WARNING: This is an early development version of the game. Many features have not been added yet.</translate>
|
|
<keep>\n\n</keep>
|
|
<translate>Get involved at: play0ad.com</translate>
|
|
</attribute>
|
|
</object>
|
|
|
|
<!-- CONTACT METHODS -->
|
|
<object type="button"
|
|
style="StoneButton"
|
|
tooltip_style="pgToolTip"
|
|
size="8 100%-108 100%-8 100%-80"
|
|
>
|
|
<translatableAttribute id="caption">Help with the Translation!</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Click to open the 0 A.D. translate page in your browser.</translatableAttribute>
|
|
<action on="Press"><![CDATA[
|
|
openURL("http://trac.wildfiregames.com/wiki/Localization");
|
|
]]></action>
|
|
</object>
|
|
|
|
<object type="button"
|
|
style="StoneButton"
|
|
tooltip_style="pgToolTip"
|
|
size="8 100%-72 50%-4 100%-44"
|
|
>
|
|
<translatableAttribute id="caption">Website</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Click to open play0ad.com in your web browser.</translatableAttribute>
|
|
<action on="Press"><![CDATA[
|
|
openURL("http://play0ad.com/");
|
|
]]></action>
|
|
</object>
|
|
|
|
<object type="button"
|
|
style="StoneButton"
|
|
tooltip_style="pgToolTip"
|
|
size="50%+4 100%-72 100%-8 100%-44"
|
|
>
|
|
<translatableAttribute id="caption">Chat</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Click to open the 0 A.D. IRC chat in your browser. (#0ad on webchat.quakenet.org)</translatableAttribute>
|
|
<action on="Press"><![CDATA[
|
|
openURL("http://webchat.quakenet.org/?channels=0ad");
|
|
]]></action>
|
|
</object>
|
|
|
|
<object type="button"
|
|
style="StoneButton"
|
|
tooltip_style="pgToolTip"
|
|
size="8 100%-36 100%-8 100%-8"
|
|
>
|
|
<translatableAttribute id="caption">Report a Bug</translatableAttribute>
|
|
<translatableAttribute id="tooltip">Click to visit 0 A.D. Trac to report a bug, crash, or error.</translatableAttribute>
|
|
<action on="Press"><![CDATA[
|
|
openURL("http://trac.wildfiregames.com/wiki/ReportingErrors/");
|
|
]]></action>
|
|
</object>
|
|
|
|
</object>
|
|
|
|
<!-- LOGO AND BUILD VERSION -->
|
|
<object
|
|
size="4 100%-84 100%-4 100%-56"
|
|
ghost="true"
|
|
>
|
|
|
|
<!-- COMPANY LOGO -->
|
|
<object name="companyLogo"
|
|
type="image"
|
|
sprite="companyLogo"
|
|
ghost="true"
|
|
size="50%-16 0 50%+16 32"
|
|
/>
|
|
|
|
<!-- COMPANY NAME -->
|
|
<object type="text"
|
|
style="MediumTitleText"
|
|
ghost="true"
|
|
size="50%-128 32 50%+128 48"
|
|
>
|
|
<translatableAttribute id="caption">WILDFIRE GAMES</translatableAttribute>
|
|
</object>
|
|
</object>
|
|
|
|
<!-- VERSION -->
|
|
<object name="versionNumber"
|
|
type="text"
|
|
style="MediumTitleText"
|
|
ghost="true"
|
|
size="50%-128 100%-36 50%+128 100%"
|
|
>
|
|
<action on="Load">
|
|
this.caption = getBuildString();
|
|
</action>
|
|
</object>
|
|
</object>
|
|
</object>
|
|
|
|
</objects>
|