# GUI tweaks.
Add an obvious pre-release warning to the menu. Report the build's svn_revision on the menu. Fix exiting from sim2 session. Make the in-game dev options a bit prettier. This was SVN commit r7400.
This commit is contained in:
parent
76011715e7
commit
f0c633785a
@ -1,6 +1,4 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
|
||||
|
||||
<!DOCTYPE objects SYSTEM "../gui.dtd">
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<objects>
|
||||
|
||||
@ -68,6 +66,25 @@
|
||||
type="image"
|
||||
sprite="pgBackground"
|
||||
>
|
||||
<!--
|
||||
==========================================
|
||||
- MAIN MENU - PRE-RELEASE WARNING
|
||||
==========================================
|
||||
-->
|
||||
|
||||
<object
|
||||
style="fancyTextHeadWhite"
|
||||
type="text"
|
||||
sprite="bkTranslucent"
|
||||
font="verdana14"
|
||||
textcolor="255 255 0"
|
||||
size="4 4 230 300"
|
||||
>[font=verdana16]WARNING[/font]
|
||||
This is an under-development unpolished snapshot. Some major components have been rewritten recently, and many gameplay features are still missing.
|
||||
|
||||
Watch for updates or get involved in the development: http://wildfiregames.com/0ad/
|
||||
</object>
|
||||
|
||||
<!--
|
||||
==========================================
|
||||
- MAIN MENU - STATIC TOOLTIP WINDOW
|
||||
@ -286,7 +303,7 @@
|
||||
size="43% 24% 43%+282 24%+25"
|
||||
>
|
||||
<action on="Load"><![CDATA[
|
||||
this.caption = "Build: " + buildTime(0) + " " + getLanguageID();
|
||||
this.caption = "Build: " + buildTime(0) + " - " + buildTime(2);
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
@ -304,8 +321,8 @@
|
||||
tooltip="These are the guys who made this game. Visit them at http://www.wildfiregames.com/0ad/"
|
||||
>
|
||||
<action on="Press"><![CDATA[
|
||||
messageBox (420, 420, "[icon=iconProduct] A.D. - History Is Yours For The Taking\nby Wildfire Games, 2002-2005\n\nVersion 0.1.2 (PASAP II)\n\n" +
|
||||
"This is a confidental pre-release version of the game!\n\nVisit http://www.wildfiregames.com/0ad/ " +
|
||||
messageBox (420, 320, "[icon=iconProduct] A.D. - History Is Yours For The Taking\nby Wildfire Games, 2002-2010\n\n" +
|
||||
"Visit http://www.wildfiregames.com/0ad/ " +
|
||||
"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>
|
||||
|
@ -32,25 +32,29 @@
|
||||
hotkey="leave"
|
||||
>
|
||||
<action on="Press"><![CDATA[
|
||||
function leaveGame() {
|
||||
endGame();
|
||||
Engine.SwitchGuiPage("page_pregame.xml");
|
||||
}
|
||||
messageBox(400, 200, "Do you really want to quit?", "Confirmation", 0,
|
||||
["Yes", "No!"], [confirmLeave, null]);
|
||||
["Yes", "No!"], [leaveGame, null]);
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
<!-- Dev/cheat commands -->
|
||||
<object size="100%-256 32 100%-16 128">
|
||||
<object size="0 0 100%-18 16" type="text" text_align="right">Control all units</object>
|
||||
<object size="100%-170 32 100%-16 96" type="image" sprite="devCommandsBackground">
|
||||
<object size="0 0 100%-18 16" type="text" style="devCommandsText">Control all units</object>
|
||||
<object size="100%-16 0 100% 16" type="checkbox" name="devControlAll" style="wheatCrossBox"/>
|
||||
|
||||
<object size="0 16 100%-18 32" type="text" text_align="right">Display selection state</object>
|
||||
<object size="0 16 100%-18 32" type="text" style="devCommandsText">Display selection state</object>
|
||||
<object size="100%-16 16 100% 32" type="checkbox" name="devDisplayState" style="wheatCrossBox"/>
|
||||
|
||||
<object size="0 32 100%-18 48" type="text" text_align="right">Pathfinder overlay</object>
|
||||
<object size="0 32 100%-18 48" type="text" style="devCommandsText">Pathfinder overlay</object>
|
||||
<object size="100%-16 32 100% 48" type="checkbox" style="wheatCrossBox">
|
||||
<action on="Press">Engine.GuiInterfaceCall("SetPathfinderDebugOverlay", this.checked);</action>
|
||||
</object>
|
||||
|
||||
<object size="0 48 100%-18 64" type="text" text_align="right">Obstruction overlay</object>
|
||||
<object size="0 48 100%-18 64" type="text" style="devCommandsText">Obstruction overlay</object>
|
||||
<object size="100%-16 48 100% 64" type="checkbox" style="wheatCrossBox">
|
||||
<action on="Press">Engine.GuiInterfaceCall("SetObstructionDebugOverlay", this.checked);</action>
|
||||
</object>
|
||||
|
@ -98,5 +98,9 @@
|
||||
<image backcolor="white" size="1 1 2 100%-1"/>
|
||||
</sprite>
|
||||
|
||||
<sprite name="devCommandsBackground">
|
||||
<image backcolor="0 0 0 85"/>
|
||||
</sprite>
|
||||
|
||||
</sprites>
|
||||
|
||||
|
@ -44,4 +44,10 @@
|
||||
tooltip="(TBA)"
|
||||
/>
|
||||
|
||||
<style name="devCommandsText"
|
||||
font="verdana10"
|
||||
textcolor="255 255 255"
|
||||
text_align="right"
|
||||
/>
|
||||
|
||||
</styles>
|
||||
|
Loading…
Reference in New Issue
Block a user