mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Moved main menu buttons to top right This was SVN commit r8078.
This commit is contained in:
parent
b1e32f9542
commit
178d45d0e2
4 changed files with 62 additions and 45 deletions
|
|
@ -80,9 +80,23 @@
|
|||
textcolor="white"
|
||||
sprite="bkTranslucent"
|
||||
hidden="true"
|
||||
size="260 100%-40 100%-150 100%"
|
||||
size="260 100%-40 100%-290 100%"
|
||||
>[Tooltip text]</object>
|
||||
|
||||
<object
|
||||
type="button"
|
||||
style="wheatButton"
|
||||
font="serif-16"
|
||||
size="100%-280 100%-40 100%-143 100%+3"
|
||||
tooltip_style="onscreenToolTip"
|
||||
tooltip="Click this button to return to the main menu."
|
||||
>Cancel
|
||||
<action on="Press"><![CDATA[
|
||||
cancelSetup();
|
||||
Engine.PopGuiPage();
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
<object
|
||||
type="button"
|
||||
style="wheatButton"
|
||||
|
|
|
|||
|
|
@ -98,6 +98,11 @@
|
|||
|
||||
</object>
|
||||
|
||||
<object type="button" style="wheatButton" size="100%-103 100%-33 100%-3 100%-3">
|
||||
Cancel
|
||||
<action on="Press"><![CDATA[cancelSetup();]]></action>
|
||||
</object>
|
||||
|
||||
<object name="pageJoin" hidden="true">
|
||||
|
||||
<object type="text" size="0 0 400 30">
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<!-- Add a translucent black background to fade out the menu page -->
|
||||
<object type="image" z="0" sprite="bkTranslucent"/>
|
||||
|
||||
<object type="image" style="wheatWindow" size="100 100 100%-100 100%-100">
|
||||
<object type="image" style="wheatWindow" size="150 100 100%-150 100%-100">
|
||||
|
||||
<object type="button" style="wheatExit" tooltip_style="snToolTip">
|
||||
<action on="Press"><![CDATA[
|
||||
|
|
@ -15,12 +15,17 @@
|
|||
]]></action>
|
||||
</object>
|
||||
|
||||
<object type="image" sprite="wheatIndentFillVeryLight">
|
||||
|
||||
<object type="image" sprite="wheatIndentFillVeryLight" size="0 0 100% 100%-45">
|
||||
<object name="mainText" type="text" style="textPanel"/>
|
||||
|
||||
</object>
|
||||
|
||||
<object type="button" style="wheatButton" tooltip_style="snToolTip" size="100%-103 100%-33 100%-3 100%-3">
|
||||
Close
|
||||
<action on="Press"><![CDATA[Engine.PopGuiPage();]]></action>
|
||||
</object>
|
||||
|
||||
</object>
|
||||
|
||||
|
||||
|
||||
</objects>
|
||||
|
|
|
|||
|
|
@ -108,30 +108,42 @@ Watch for updates or get involved in the development: http://wildfiregames.com/0
|
|||
- MAIN MENU - RANDOM BUTTONS
|
||||
==========================================
|
||||
-->
|
||||
|
||||
<object size="100%-400 0 100% 30">
|
||||
<object type="button" style="wheatButton" size="0 0 100 30">
|
||||
Manual
|
||||
<action on="Press"><![CDATA[
|
||||
Engine.PushGuiPage("page_manual.xml");
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
<object type="button" style="wheatButton" size="8 230 158 270">
|
||||
How to play
|
||||
<action on="Press"><![CDATA[
|
||||
Engine.PushGuiPage("page_manual.xml");
|
||||
]]></action>
|
||||
</object>
|
||||
<object type="button" style="wheatButton" size="100 0 200 30">
|
||||
Website
|
||||
<action on="Press"><![CDATA[
|
||||
var url = "http://wildfiregames.com/0ad/";
|
||||
Engine.OpenURL(url);
|
||||
messageBox(400, 200, "Opening "+url+" in default web browser. Please wait...", "Opening page", 2);
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
<object type="button" style="wheatButton" size="8 275 158 315">
|
||||
Visit our web site
|
||||
<action on="Press"><![CDATA[
|
||||
var url = "http://wildfiregames.com/0ad/";
|
||||
Engine.OpenURL(url);
|
||||
messageBox(400, 200, "Opening "+url+" in default web browser. Please wait...", "Opening page", 2);
|
||||
]]></action>
|
||||
</object>
|
||||
<object type="button" style="wheatButton" size="200 0 300 30">
|
||||
IRC
|
||||
<action on="Press"><![CDATA[
|
||||
var url = "http://webchat.quakenet.org/?channels=0ad";
|
||||
Engine.OpenURL(url);
|
||||
messageBox(400, 200, "Opening "+url+" in default web browser. Please wait...", "Opening page", 2);
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
<object type="button" style="wheatButton" size="8 320 158 360">
|
||||
Chat on IRC
|
||||
<action on="Press"><![CDATA[
|
||||
var url = "http://webchat.quakenet.org/?channels=0ad";
|
||||
Engine.OpenURL(url);
|
||||
messageBox(400, 200, "Opening "+url+" in default web browser. Please wait...", "Opening page", 2);
|
||||
]]></action>
|
||||
<!-- MAIN MENU - EXIT BUTTON -->
|
||||
<object type="button" style="wheatButton" name="pgExit" size="300 0 400 30">
|
||||
Quit
|
||||
<action on="Press"><![CDATA[
|
||||
var btCaptions = ["Yes", "No"];
|
||||
var btCode = [exit, null];
|
||||
messageBox (400, 200, "Are you sure you want to quit [icon=iconProduct] A.D.?", "Confirmation", 0, btCaptions, btCode);
|
||||
]]></action>
|
||||
</object>
|
||||
</object>
|
||||
|
||||
<!--
|
||||
|
|
@ -308,25 +320,6 @@ Watch for updates or get involved in the development: http://wildfiregames.com/0
|
|||
"to learn more about [icon=iconProduct] A.D., participate in the community and meet the developers.\n\n", "About [icon=iconProduct] A.D.", 2, [], []);
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
<!--
|
||||
==========================================
|
||||
- MAIN MENU - EXIT BUTTON
|
||||
==========================================
|
||||
-->
|
||||
|
||||
<object name="pgExit"
|
||||
style="wheatExit"
|
||||
type="button"
|
||||
size="100%-18 2 100%-2 18"
|
||||
tooltip="Tired of 0 A.D. ? Click here to leave and reenter the real world."
|
||||
>
|
||||
<action on="Press"><![CDATA[
|
||||
var btCaptions = ["Yes, let me out!", "Nooooo!"];
|
||||
var btCode = [exit, null];
|
||||
messageBox (400, 200, "Do you really want to quit [icon=iconProduct] A.D.? This will cause a sudden return to reality.", "Confirmation", 0, btCaptions, btCode);
|
||||
]]></action>
|
||||
</object>
|
||||
</object>
|
||||
|
||||
<!--
|
||||
|
|
|
|||
Loading…
Reference in a new issue