2010-03-26 14:21:09 +01:00
<?xml version="1.0" encoding="utf-8"?>
2009-07-16 12:20:51 +02:00
<objects >
2011-09-12 00:42:40 +02:00
<script file= "gui/common/music.js" />
2011-04-07 04:32:16 +02:00
<script file= "gui/common/functions_utility_error.js" />
2011-09-12 00:42:40 +02:00
<script file= "gui/pregame/mainmenu.js" />
2009-12-03 21:17:22 +01:00
2011-09-11 05:30:41 +02:00
2009-07-16 12:20:51 +02:00
<!--
==========================================
2011-09-13 03:28:49 +02:00
- MAIN MENU
2009-07-16 12:20:51 +02:00
==========================================
-->
2011-09-13 03:28:49 +02:00
<object name= "mainMenuPage" >
2009-07-16 12:20:51 +02:00
2011-09-13 03:28:49 +02:00
<action on= "Tick" >
onTick();
</action>
2011-08-20 19:17:53 +02:00
2011-12-22 18:54:33 +01:00
<object name= "backgroundHele1-1"
2011-08-20 19:17:53 +02:00
type="image"
sprite="background-hellenes1-1"
2011-12-22 18:54:33 +01:00
hidden="true"
2011-09-13 03:28:49 +02:00
ghost="true"
2011-08-20 19:17:53 +02:00
/>
2011-12-22 18:54:33 +01:00
<object name= "backgroundHele1-2"
2011-08-20 19:17:53 +02:00
type="image"
sprite="background-hellenes1-2"
2011-12-22 18:54:33 +01:00
hidden="true"
2011-09-13 03:28:49 +02:00
ghost="true"
2011-08-20 19:17:53 +02:00
/>
2011-12-22 18:54:33 +01:00
<object name= "backgroundHele1-3"
2011-08-20 19:17:53 +02:00
type="image"
sprite="background-hellenes1-3"
2011-12-22 18:54:33 +01:00
hidden="true"
ghost="true"
/>
<object name= "backgroundPers1-1"
type="image"
sprite="background-persians1-1"
hidden="true"
ghost="true"
/>
<object name= "backgroundPers1-2"
type="image"
sprite="background-persians1-2"
hidden="true"
ghost="true"
/>
<object name= "backgroundPers1-3"
type="image"
sprite="background-persians1-3"
hidden="true"
ghost="true"
/>
<object name= "backgroundPers1-4"
type="image"
sprite="background-persians1-4"
hidden="true"
2011-09-13 03:28:49 +02:00
ghost="true"
2011-08-20 19:17:53 +02:00
/>
2011-02-16 21:40:15 +01:00
2009-07-16 12:20:51 +02:00
<!--
==========================================
- MAIN MENU - STATIC TOOLTIP WINDOW
==========================================
-->
<object name= "pgToolTip"
2011-08-27 08:20:16 +02:00
style="TranslucentPanel"
2009-07-16 12:20:51 +02:00
type="text"
hidden="true"
2011-09-14 01:58:16 +02:00
size="70% 5% 100% 15%"
2011-09-13 03:28:49 +02:00
ghost="true"
2009-07-16 12:20:51 +02:00
>tooltipText
2011-08-22 19:36:53 +02:00
</object>
2010-07-07 23:47:31 +02:00
2011-08-26 06:25:41 +02:00
<!--
==========================================
- 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"
>[font="serif-bold-16"]Help improve 0 A.D.![/font]
You can automatically send us anonymous feedback that will help us fix bugs, and improve performance and compatibility.
</object>
2011-08-28 23:32:35 +02:00
<object type= "button" style= "StoneButton" size= "8 100%-36 146 100%-8" >
Enable feedback
2012-04-09 14:30:56 +02:00
<action on= "Press" > EnableUserReport(true);</action>
2011-08-26 06:25:41 +02:00
</object>
2011-08-28 23:32:35 +02:00
<object type= "button" style= "StoneButton" size= "100%-146 100%-36 100%-8 100%-8" >
2011-08-26 06:25:41 +02:00
Technical details
<action on= "Press" > Engine.PushGuiPage("page_manual.xml", { "page": "userreport" });</action>
</object>
</object>
<object
name="userReportEnabled"
2012-12-10 02:29:02 +01:00
size="100%-304 100%-154 100%-4 100%-4"
2011-08-26 06:25:41 +02:00
type="image"
style="userReportPanel"
>
<object
name="userReportEnabledText"
type="text"
style="userReportText"
>[font="serif-bold-16"]Thank you for helping improve 0 A.D.![/font]
Anonymous feedback is currently enabled.
Status: $status.
</object>
2011-08-28 23:32:35 +02:00
<object type= "button" style= "StoneButton" size= "8 100%-36 146 100%-8" >
2011-08-26 06:25:41 +02:00
Disable feedback
2012-04-09 14:30:56 +02:00
<action on= "Press" > EnableUserReport(false);</action>
2011-08-26 06:25:41 +02:00
</object>
2011-08-28 23:32:35 +02:00
<object type= "button" style= "StoneButton" size= "100%-146 100%-36 100%-8 100%-8" >
2011-08-26 06:25:41 +02:00
Technical details
<action on= "Press" > Engine.PushGuiPage("page_manual.xml", { "page": "userreport" });</action>
</object>
</object>
2011-08-28 23:32:35 +02:00
2011-09-02 02:33:19 +02:00
2011-09-13 03:28:49 +02:00
<!--
2011-08-31 04:41:21 +02:00
==========================================
- SUBMENU
==========================================
-->
2011-09-01 04:36:38 +02:00
2011-09-13 03:28:49 +02:00
<!-- hide submenu when user clicks on the background -->
<object name= "subMenuScreen" type= "button" >
<action on= "Press" >
closeMenu();
</action>
</object>
2011-08-31 04:41:21 +02:00
2011-09-13 03:28:49 +02:00
<!-- 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"
tooltip="The 0 A.D. Game Manual."
hidden="true"
>
<object name= "subMenuSinglePlayerButton"
type="button"
style="StoneButtonFancy"
size="0 0 100% 28"
tooltip_style="pgToolTip"
tooltip="Click here to start a new single player game."
>
Matches
<action on= "Press" >
2013-09-12 17:12:08 +02:00
Engine.SwitchGuiPage("page_gamesetup.xml", { type: "offline" });
2011-09-13 03:28:49 +02:00
</action>
</object>
2011-09-01 04:36:38 +02:00
2011-09-13 03:28:49 +02:00
<object name= "subMenuCampaignButton"
type="button"
style="StoneButtonFancy"
size="0 32 100% 60"
tooltip_style="pgToolTip"
tooltip="Relive history through historical military campaigns. [NOT YET IMPLEMENTED]"
enabled="false"
>
Campaigns
<action on= "Press" >
closeMenu();
< ![CDATA[
// Open Campaigns window.
// NOT IMPLEMENTED YET
]]>
</action>
</object>
2011-10-30 02:07:28 +02:00
<object name= "subMenuLoadButton"
type="button"
style="StoneButtonFancy"
size="0 64 100% 92"
tooltip_style="pgToolTip"
tooltip="Click here to load a saved game."
>
Load Game
<action on= "Press" >
closeMenu();
Engine.PushGuiPage("page_loadgame.xml", { type: "offline" });
</action>
</object>
2011-09-13 03:28:49 +02:00
</object>
2011-09-01 04:36:38 +02:00
2011-09-13 03:28:49 +02:00
<!-- submenuMultiplayer -->
<object name= "submenuMultiplayer"
type="image"
size="0 4 100%-4 100%-4"
tooltip_style="pgToolTip"
tooltip="The 0 A.D. Game Manual"
hidden="true"
>
<object name= "subMenuMultiplayerJoinButton"
type="button"
style="StoneButtonFancy"
size="0 0 100% 28"
tooltip_style="pgToolTip"
tooltip="Joining an existing multiplayer game."
>
Join Game
<action on= "Press" >
closeMenu();
// Open Multiplayer connection window with join option.
2013-11-07 21:07:24 +01:00
Engine.PushGuiPage("page_gamesetup_mp.xml", { multiplayerGameType: "join" });
2011-09-13 03:28:49 +02:00
</action>
</object>
<object name= "subMenuMultiplayerHostButton"
type="button"
style="StoneButtonFancy"
size="0 32 100% 60"
tooltip_style="pgToolTip"
2012-07-30 23:08:29 +02:00
tooltip="Host a multiplayer game.\n\nRequires UDP port 20595 to be open."
2011-09-13 03:28:49 +02:00
>
Host Game
<action on= "Press" >
closeMenu();
// Open Multiplayer connection window with host option.
2013-11-07 21:07:24 +01:00
Engine.PushGuiPage("page_gamesetup_mp.xml", { multiplayerGameType: "host" });
2011-09-13 03:28:49 +02:00
</action>
</object>
2013-11-07 21:07:24 +01:00
<object name= "subMenuMultiplayerLobbyButton"
type="button"
style="StoneButtonFancy"
size="0 64 100% 92"
tooltip_style="pgToolTip"
tooltip="Launch the multiplayer lobby."
>
Game Lobby
<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 = "Launch the multiplayer lobby. [DISABLED BY BUILD]";
}
</action>
</object>
</object>
2011-09-13 03:28:49 +02:00
<!-- submenuToolsAndOptions -->
<object name= "submenuToolsAndOptions"
type="image"
size="0 4 100%-4 100%-4"
tooltip_style="pgToolTip"
tooltip="The 0 A.D. Game Manual"
hidden="true"
>
<object name= "submenuOptionsButton"
style="StoneButtonFancy"
type="button"
size="0 0 100% 28"
tooltip_style="pgToolTip"
2013-11-07 21:07:24 +01:00
tooltip="Adjust game settings."
enabled="true"
2011-09-13 03:28:49 +02:00
>
Options
<action on= "Press" >
closeMenu();
< ![CDATA[
// Open Options window.
Engine.PushGuiPage("page_options.xml");
]]>
</action>
</object>
<object name= "submenuEditorButton"
style="StoneButtonFancy"
type="button"
size="0 32 100% 60"
tooltip_style="pgToolTip"
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" ."
>
Scenario Editor
<action on= "Press" >
closeMenu();
< ![CDATA[
// Start Atlas
if (Engine.AtlasIsAvailable())
Engine.RestartInAtlas();
else
messageBox(400, 200, "The scenario editor is not available or failed to load.", "Error", 2);
]]>
</action>
</object>
</object>
</object> <!-- end of submenu -->
2011-08-31 04:41:21 +02:00
2011-08-26 06:25:41 +02:00
2009-07-16 12:20:51 +02:00
<!--
==========================================
2011-08-22 19:36:53 +02:00
- MAIN MENU PANEL
2009-07-16 12:20:51 +02:00
==========================================
-->
2011-08-31 04:41:21 +02:00
<object name= "mainMenu"
2011-09-13 03:28:49 +02:00
type="image"
2011-08-24 06:16:37 +02:00
style="MainMenuPanel"
size="60 -2 300 100%+2"
2011-09-13 03:28:49 +02:00
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 -->
2011-08-22 19:36:53 +02:00
<object name= "menuLearnToPlayButton"
2011-09-13 03:28:49 +02:00
type="button"
style="StoneButtonFancy"
size="4 4 100%-4 32"
tooltip_style="pgToolTip"
tooltip="The 0 A.D. Game Manual"
2011-08-22 19:36:53 +02:00
>
2011-09-13 03:28:49 +02:00
Learn To Play
<action on= "Press" >
closeMenu();
< ![CDATA[
Engine.PushGuiPage("page_manual.xml", { "page": "intro" });
]]>
</action>
</object>
<!-- SINGLEPLAYER BUTTON -->
<object name= "menuSinglePlayerButton"
style="StoneButtonFancy"
type="button"
size="4 36 100%-4 64"
tooltip_style="pgToolTip"
tooltip="Challenge the computer player to a single player match."
>
Single Player
<action on= "Press" >
closeMenu();
2011-10-30 02:07:28 +02:00
openMenu("submenuSinglePlayer", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 3);
2011-09-13 03:28:49 +02:00
</action>
</object>
<!-- MULTIPLAYER BUTTON -->
<object name= "menuMultiplayerButton"
style="StoneButtonFancy"
type="button"
size="4 68 100%-4 96"
tooltip_style="pgToolTip"
tooltip="Fight against one or more human players in a multiplayer game."
>
Multiplayer
<action on= "Press" >
closeMenu();
2013-11-07 21:07:24 +01:00
openMenu("submenuMultiplayer", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 3);
2011-09-13 03:28:49 +02:00
</action>
</object>
<!-- TOOLS AND OPTIONS BUTTON -->
<object name= "menuToolsAndOptionsButton"
style="StoneButtonFancy"
type="button"
size="4 100 100%-4 128"
tooltip_style="pgToolTip"
tooltip="Game options and scenario design tools."
>
Tools <![CDATA[&]]> Options
<action on= "Press" >
closeMenu();
openMenu("submenuToolsAndOptions", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 2);
</action>
</object>
<!-- HISTORY BUTTON -->
<object name= "menuHistoryButton"
style="StoneButtonFancy"
type="button"
size="4 132 100%-4 160"
tooltip_style="pgToolTip"
2012-09-09 20:52:47 +02:00
tooltip="Learn about the many civilizations featured in 0 A.D."
2011-09-13 03:28:49 +02:00
>
History
<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"
tooltip="Exit Game"
>
Exit
<action on= "Press" >
closeMenu();
< ![CDATA[
var btCaptions = ["Yes", "No"];
2014-01-04 11:14:53 +01:00
var btCode = [Engine.Exit, null]
2011-09-13 03:28:49 +02:00
messageBox(400, 200, "Are you sure you want to quit 0 A.D.?", "Confirmation", 0, btCaptions, btCode);
]]>
</action>
</object>
</object>
2011-08-22 19:36:53 +02:00
2011-08-28 23:32:35 +02:00
<!-- PRE - RELEASE INFO -->
2013-12-08 02:35:06 +01:00
<object size= "8 100%-340 100%-8 100%-100"
2011-08-28 23:32:35 +02:00
type="image"
2011-08-27 20:34:54 +02:00
style="TranslucentPanelThinBorder"
2011-08-24 07:03:11 +02:00
>
2009-07-16 12:20:51 +02:00
2011-08-28 23:32:35 +02:00
<!-- PRE - RELEASE WARNING -->
<object
font="serif-14"
type="text"
2011-08-26 03:56:50 +02:00
textcolor="white"
size="8 8 100%-8 100%-36"
2011-08-26 06:25:41 +02:00
ghost="true"
2011-08-28 23:32:35 +02:00
>
2013-12-13 14:30:59 +01:00
[font="serif-bold-16"]Alpha XV: Osiris<!-- IMPORTANT: remember to update session/session.xml in sync with this --> [/font]
2011-08-22 19:36:53 +02:00
2011-08-28 23:32:35 +02:00
WARNING: This is an early development version of the game. Many features have not been added yet.
2011-08-26 03:56:50 +02:00
2012-12-10 02:29:02 +01:00
Get involved at: play0ad.com
2011-08-24 07:03:11 +02:00
</object>
2011-08-22 19:36:53 +02:00
2011-08-28 23:32:35 +02:00
<!-- CONTACT METHODS -->
<object type= "button"
2011-08-26 03:56:50 +02:00
style="StoneButton"
2011-09-13 03:28:49 +02:00
tooltip_style="pgToolTip"
2012-12-10 02:29:02 +01:00
tooltip="Click to open play0ad.com in your web browser."
size="8 100%-72 50%-4 100%-44"
2011-08-28 23:32:35 +02:00
>
Website
<action on= "Press" > < ![CDATA[
2012-12-10 02:29:02 +01:00
var url = "http://play0ad.com/";
2011-08-28 23:32:35 +02:00
Engine.OpenURL(url);
2011-09-01 05:27:30 +02:00
messageBox(450, 200, "Opening "+url+"\n in default web browser. Please wait...", "Opening page", 2);
2011-08-28 23:32:35 +02:00
]]></action>
</object>
2011-08-26 03:56:50 +02:00
<object type= "button"
style="StoneButton"
2011-09-13 03:28:49 +02:00
tooltip_style="pgToolTip"
2012-08-23 08:59:16 +02:00
tooltip="Click to open the 0 A.D. IRC chat in your browser. (#0ad on webchat.quakenet.org)"
2012-12-10 02:29:02 +01:00
size="50%+4 100%-72 100%-8 100%-44"
2011-08-28 23:32:35 +02:00
>
2012-08-23 08:59:16 +02:00
Chat
2011-08-28 23:32:35 +02:00
<action on= "Press" > < ![CDATA[
var url = "http://webchat.quakenet.org/?channels=0ad";
Engine.OpenURL(url);
2011-09-01 05:27:30 +02:00
messageBox(450, 200, "Opening "+url+"\n in default web browser. Please wait...", "Opening page", 2);
2011-08-28 23:32:35 +02:00
]]></action>
</object>
2012-12-10 02:29:02 +01:00
<object type= "button"
style="StoneButton"
tooltip_style="pgToolTip"
tooltip="Click to visit 0 A.D. Trac to report a bug, crash, or error"
size="8 100%-36 100%-8 100%-8"
>
Report a Bug
<action on= "Press" > < ![CDATA[
var url = "http://trac.wildfiregames.com/wiki/ReportingErrors/";
Engine.OpenURL(url);
messageBox(450, 200, "Opening "+url+"\n in default web browser. Please wait...", "Opening page", 2);
]]></action>
</object>
2011-08-28 23:32:35 +02:00
</object>
2011-08-24 07:03:11 +02:00
2011-08-24 07:12:17 +02:00
<!-- LOGO AND BUILD VERSION -->
<object
size="4 100%-84 100%-4 100%-56"
2011-09-13 03:28:49 +02:00
ghost="true"
2011-08-24 07:12:17 +02:00
>
2011-08-24 07:03:11 +02:00
2011-08-24 07:12:17 +02:00
<!-- COMPANY LOGO -->
<object name= "companyLogo"
type="image"
sprite="companyLogo"
2011-09-13 03:28:49 +02:00
ghost="true"
size="50%-16 0 50%+16 32"
2011-08-24 07:12:17 +02:00
/>
2011-08-24 07:03:11 +02:00
2011-08-24 07:12:17 +02:00
<!-- COMPANY NAME -->
2011-08-26 06:25:41 +02:00
<object type= "text"
2011-09-01 04:36:38 +02:00
style="MediumTitleText"
2011-09-13 03:28:49 +02:00
ghost="true"
size="50%-128 32 50%+128 48"
2011-08-24 07:12:17 +02:00
>WILDFIRE GAMES</object>
</object>
2011-09-13 03:28:49 +02:00
<!-- VERSION -->
2011-08-24 07:12:17 +02:00
<object name= "versionNumber"
type="text"
2011-09-13 03:28:49 +02:00
style="MediumTitleText"
ghost="true"
2011-08-24 07:12:17 +02:00
size="50%-128 100%-36 50%+128 100%"
>
<action on= "Load" > < ![CDATA[
2014-01-04 11:14:53 +01:00
this.caption = "Build: " + Engine.BuildTime(0) + " - " + Engine.BuildTime(2);
2011-08-24 07:12:17 +02:00
]]></action>
</object>
2011-09-13 03:28:49 +02:00
</object>
2009-07-16 12:20:51 +02:00
</object>
</objects>