2004-11-15 01:13:21 +01:00
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
<!DOCTYPE objects SYSTEM "../gui.dtd">
<objects >
2004-11-15 03:24:03 +01:00
<!--
==========================================
- GLOBAL OBJECTS -
==========================================
-->
<object type= "empty" name= "always_on" hotkey= "alwayson.toggle" size= "0 0 100% 100%" z= "1" hidden= "false" >
<action on= "Press" > < ![CDATA[
GUIObjectToggle("always_on");
]]></action>
<object type= "button" name= "exit_button" sprite= "exit_sprite" sprite-over= "exit_sprite-over" size= "100%-18 2 100%-2 18" z= "1000" hidden= "false" >
<action on= "Press" > < ![CDATA[
btCaptions = new Array("Yes, let me out!", "Nooooo!");
2004-11-16 01:44:10 +01:00
btCode = new Array("curr_music.free(); exit();", "GUIObjectHide('mb_main');");
2004-11-16 03:28:19 +01:00
messageBox(400, 200, "Do you really want to quit [icon=0ad_icon] A.D.? This will cause a sudden return to reality.", "Confirmation", 0, btCaptions, btCode);
2004-11-15 03:24:03 +01:00
]]></action>
<!-- START temporary code
This code only applies to the main menu, I don't know how it'll behave ingame. It is temporary and should be removed as soon as we got proper tooltip support implemented. -->
<action on= "MouseEnter" > < ![CDATA[
tooltipObject = getGUIObjectByName("pregame-mainmenu-tooltip");
tooltipObject.caption = "Tired of 0 A.D. ? Click here to leave and reenter the real world.";
GUIObjectUnhide("pregame-mainmenu-tooltip");
]]></action>
<action on= "MouseLeave" > < ![CDATA[
GUIObjectHide("pregame-mainmenu-tooltip");
]]></action>
<!-- END temporary code -->
</object>
<!-- TEMPORARY END GAME BUTTON; REMOVE WHEN GAME MENU IMPLEMENTED; BUTTON IS OUTSIDE OF pregame_gui IN ORDER TO BE VISIBLE DURING GAME -->
2004-11-15 22:07:02 +01:00
<object type= "button" name= "End_Game_Button" hotkey= "endgame" z= "105" hidden= "true" >
2004-11-15 03:24:03 +01:00
<action on= "Press" > < ![CDATA[
endGame();
GUIObjectHide("session_gui");
GUIObjectUnhide("pregame_gui");
]]></action>
</object>
<!--
==========================================
- MESSAGE BOX -
==========================================
-->
<object type= "image" size= "50%-400 50%-200 50%+400 50%+200" name= "mb_main" z= "149" hidden= "true" >
<!-- control for blocking access to other controls in background -->
<object type= "image" size= "0 0 100% 100%" name= "mb_blocker" hidden= "false" />
<!-- background -->
<object type= "image" size= "0 10 100% 100%" name= "mb_background" sprite= "message_box-gen-background" absolute= "false" z= "160" />
<!-- top -->
<object type= "image" name= "mb_border-corner-lt" size= "0 10 15 25" sprite= "message_box-corner" absolute= "false" z= "161" />
<object type= "image" name= "mb_border-top" size= "15 10 100%-15 42" sprite= "message_box-border-top" absolute= "false" z= "161" />
<object type= "image" name= "mb_border-corner-rt" size= "100%-15 10 100% 25" sprite= "message_box-corner" absolute= "false" z= "161" />
<!-- left/right -->
<object type= "image" name= "mb_border-left" size= "0 25 20 100%-15" sprite= "message_box-border-left" absolute= "false" z= "162" />
<object type= "image" name= "mb_border-right" size= "100%-32 25 100% 100%-15" sprite= "message_box-border-right" absolute= "false" z= "161" />
<!-- bottom -->
<object type= "image" name= "mb_border-corner-lb" size= "0 100%-15 15 100%" sprite= "message_box-corner" absolute= "false" z= "161" />
<object type= "image" name= "mb_border-bottom" size= "15 100%-32 100%-15 100%" sprite= "message_box-border-bottom" absolute= "false" z= "162" />
<object type= "image" name= "mb_border-corner-rb" size= "100%-15 100%-15 100% 100%" sprite= "message_box-corner" absolute= "false" z= "161" />
<!-- titlebar -->
<object type= "image" name= "mb_titlebar-left" size= "15% 0 15%+64 32" sprite= "message_box-titlebar-left" absolute= "false" z= "164" />
<object type= "image" name= "mb_titlebar-middle" size= "15%+64 0 85%-64 32" sprite= "message_box-titlebar-middle" absolute= "false" z= "164" />
<object type= "image" name= "mb_titlebar-right" size= "85%-64 0 85% 32" sprite= "message_box-titlebar-right" absolute= "false" z= "164" />
2004-11-16 03:28:19 +01:00
<object type= "text" name= "mb_titlebar-text" size= "15%+54 4 85%-54 32" absolute= "false" font= "prospero18" z= "165" > mbTitle</object>
2004-11-15 03:24:03 +01:00
<!-- text -->
2004-11-16 03:28:19 +01:00
<object type= "text" name= "mb_text" size= "32 40 100%-32 100%-100" absolute= "false" font= "prospero18" z= "165" ghost= "true" text-align= "center" >
2004-11-15 03:24:03 +01:00
mbMessage
</object>
<!-- buttons -->
2004-11-16 03:28:19 +01:00
<object type= "button" name= "mb_button1" size= "40 100%-80 33%-30 100%-50" absolute= "false" sprite= "message_box-button-normal" sprite-over= "message_box-button-over" font= "prospero18" z= "165" text-align= "center" text-valign= "center" >
2004-11-15 03:24:03 +01:00
mbButton1Caption
<action on= "Press" > < ![CDATA[
eval(getGUIGlobal().mbButton1Code);
]]></action>
</object>
2004-11-16 03:28:19 +01:00
<object type= "button" name= "mb_button2" size= "33%+30 100%-80 66%-40 100%-50" absolute= "false" sprite= "message_box-button-normal" sprite-over= "message_box-button-over" font= "prospero18" z= "165" text-align= "center" text-valign= "center" >
2004-11-15 03:24:03 +01:00
mbButton2Caption
<action on= "Press" > < ![CDATA[
eval(getGUIGlobal().mbButton2Code);
]]></action>
</object>
2004-11-16 03:28:19 +01:00
<object type= "button" name= "mb_button3" size= "66%+30 100%-80 100%-40 100%-50" absolute= "false" sprite= "message_box-button-normal" sprite-over= "message_box-button-over" font= "prospero18" z= "165" text-align= "center" text-valign= "center" >
mbButton3Caption
<action on= "Press" > < ![CDATA[
eval(getGUIGlobal().mbButton2Code);
]]></action>
</object>
2004-11-15 03:24:03 +01:00
</object>
</object>
2004-11-15 01:13:21 +01:00
</objects>