2004-10-07 23:07:01 +02:00
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
<!DOCTYPE objects SYSTEM "../gui.dtd">
<objects >
<!--
==========================================
- MAIN MENU -
==========================================
-->
2004-10-16 00:15:31 +02:00
<object type= "empty" name= "pregame_gui" size= "0 0 100% 100%" z= "1" hidden= "false" >
2004-11-16 03:28:19 +01:00
<action on= "Load" > < ![CDATA[
// Play main 0 A.D. theme when the main menu starts.
2004-11-21 02:19:32 +01:00
curr_music = newRandomSound("music", "theme");
curr_music.loop();
2004-11-23 00:41:44 +01:00
// curr_session_playlist_1 = newRandomSound("music", "peace");
// curr_session_playlist_1.play();
// curr_session_playlist_1.free();
// curr_session_playlist_2 = newRandomSound("music", "peace");
// curr_session_playlist_2.play();
// curr_session_playlist_2.free();
2004-11-16 01:44:10 +01:00
]]></action>
2004-10-16 00:15:31 +02:00
<object type= "image" name= "pregame-mainmenu-background-image" sprite= "pregame-mainmenu-background" size= "0 0 100% 100%" z= "100" hidden= "false" />
<object type= "button" name= "pregame-mainmenu-sp-button" sprite-over= "pregame-mainmenu-spbt" size= "52.9296875% 23.95833333% 67.578125% 42.317708333%" z= "101" hidden= "false" >
<action on= "Press" > < ![CDATA[
startGame();
GUIObjectUnhide("session_gui");
2004-11-21 00:19:59 +01:00
GUIObjectUnhide("End_Game_Button");
2004-10-16 00:15:31 +02:00
GUIObjectHide("pregame_gui");
2004-11-15 03:21:54 +01:00
FlipGUI(GUIType);
2004-11-23 00:41:44 +01:00
curr_music.free(); // Close main theme when starting game session.
curr_session_playlist_1 = newRandomSound("music", "peace");
curr_session_playlist_1.play();
2004-10-16 00:15:31 +02:00
]]></action>
<action on= "MouseEnter" > < ![CDATA[
tooltipObject = getGUIObjectByName("pregame-mainmenu-tooltip");
tooltipObject.caption = "Want to move some Dudes around or test something ? Click here to start a new game on the default map.";
GUIObjectUnhide("pregame-mainmenu-tooltip");
]]></action>
<action on= "MouseLeave" > < ![CDATA[
GUIObjectHide("pregame-mainmenu-tooltip");
]]></action>
</object>
<object type= "image" name= "pregame-mainmenu-0ad-logo" sprite= "pregame-mainmenu-0ad-logo-480x218" size= "21.1914062% 3.125% 68.0664062% 31.5104166%" z= "102" hidden= "false" ghost= "true" />
<object type= "text" name= "pregame-mainmenu-versionnumber" size= "43% 24% 43%+282 24%+25" z= "103" textcolor= "237 227 167" font= "prospero16" hidden= "false" ghost= "true" >
{buildTime}
<action on= "Load" > < ![CDATA[
2004-11-15 03:21:54 +01:00
this.caption = "Build: " + buildTime(0) + " " + getLanguageID();
2004-10-16 00:15:31 +02:00
]]></action>
</object>
2004-11-15 03:21:54 +01:00
<object type= "button" name= "pregame-mainmenu-wfg-logo" sprite= "pregame-mainmenu-wfg-logo-256x64" size= "10 91.666666%-30 25.9765% 100%-30" z= "102" hidden= "false" >
<action on= "Press" > < ![CDATA[
btCode = new Array("GUIObjectHide('mb_main');");
2004-11-16 22:14:26 +01:00
messageBox(420, 420, "[icon=0ad_icon] A.D. - History Is Yours For The Taking\nby Wildfire Games, 2002-2005\n\nVersion 0.1.2 (PASAP II)\n\n" +
2004-11-15 03:21:54 +01:00
"This is a confidental pre-release version of the game!\n\nVisit http://www.wildfiregames.com/0ad/ " +
2004-11-16 03:28:19 +01:00
"to learn more about [icon=0ad_icon] A.D., participate in the community and meet the developers.\n\n", "About [icon=0ad_icon] A.D.", 2, new Array(), btCode);
2004-11-15 03:21:54 +01:00
]]></action>
2004-10-16 00:15:31 +02:00
<action on= "MouseEnter" > < ![CDATA[
tooltipObject = getGUIObjectByName("pregame-mainmenu-tooltip");
tooltipObject.caption = "These are the guys who made this game. Visit them at http://www.wildfiregames.com/0ad/";
GUIObjectUnhide("pregame-mainmenu-tooltip");
]]></action>
<action on= "MouseLeave" > < ![CDATA[
GUIObjectHide("pregame-mainmenu-tooltip");
]]></action>
</object>
<object type= "text" name= "pregame-mainmenu-tooltip" sprite= "tooltip-background" size= "69% 6.3802% 97.0703125% 28.125%" font= "prospero16" textcolor= "255 255 255" z= "104" hidden= "true" ghost= "true" > tooltipText</object>
</object>
2004-10-07 23:07:01 +02:00
</objects>