2010-03-26 14:21:09 +01:00
<?xml version="1.0" encoding="utf-8"?>
2009-07-16 12:20:51 +02:00
<objects >
2010-10-15 16:10:36 +02:00
<script file= "gui/pregame/mainmenu.js" />
2011-04-07 04:32:16 +02:00
<script file= "gui/common/functions_utility_error.js" />
2009-12-03 21:17:22 +01:00
2009-07-16 12:20:51 +02:00
<!--
==========================================
- MAIN MENU - "COMMANDER'S TENT" BACKDROP
==========================================
-->
2010-08-11 00:39:00 +02:00
<object type= "image" sprite= "bkFillBlack" />
2011-08-20 19:17:53 +02:00
<object name= "pg" >
<object name= "backgroundLayer1"
type="image"
sprite="background-hellenes1-1"
/>
<object name= "backgroundLayer2"
type="image"
sprite="background-hellenes1-2"
/>
<object name= "backgroundLayer3"
type="image"
sprite="background-hellenes1-3"
/>
2011-02-16 21:40:15 +01:00
<action on= "Tick" >
onTick();
</action>
2009-07-16 12:20:51 +02:00
<!--
==========================================
- MAIN MENU - STATIC TOOLTIP WINDOW
(Put at the top so that it is recognised by those using it.)
==========================================
-->
<object name= "pgToolTip"
2011-08-22 19:36:53 +02:00
style="stoneTooltip"
2009-07-16 12:20:51 +02:00
type="text"
hidden="true"
2011-08-22 19:36:53 +02:00
size="70% 5% 100% 30%"
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-01 05:30:13 +02:00
<!--
==========================================
- CORNER 'X' EXIT BUTTON
==========================================
-->
<object name= "cornerExitButton"
type="button"
2011-08-23 01:42:16 +02:00
style="StoneExit"
2011-08-01 05:30:13 +02:00
size="100%-16 0 100% 16"
2011-08-22 19:36:53 +02:00
tooltip=""
2011-08-01 05:30:13 +02:00
>
<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>
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>
<object type= "button" style= "wheatButton" size= "4 100%-36 150 100%-4" >
[font="serif-bold-16"]Enable feedback
<action on= "Press" > Engine.SetUserReportEnabled(true);</action>
</object>
<object type= "button" style= "wheatButton" size= "100%-150 100%-36 100%-4 100%-4" >
Technical details
<action on= "Press" > Engine.PushGuiPage("page_manual.xml", { "page": "userreport" });</action>
</object>
</object>
<object
name="userReportEnabled"
size="100%-304 100%-294 100%-4 100%-4"
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>
<!--
Put the rest of the text in a separate box, so that
very long $status messages don't mess up the layout
quite so badly:
-->
<object
type="text"
style="userReportText"
size="0 90 100% 100%"
>If you want to send a message to the developers, you can enter one here:
</object>
<object
name="userReportMessageInput"
size="4 130 100%-4 200"
type="input"
style="wheatInput"
multiline="true"
scrollbar="true"
scrollbar_style="wheatScrollBar"
/>
<object size= "100%-124 204 100%-4 236" type= "button" style= "wheatButton" >
Send Message
<action on= "Press" > submitUserReportMessage();</action>
</object>
<object type= "button" style= "wheatButton" size= "4 100%-36 150 100%-4" >
Disable feedback
<action on= "Press" > Engine.SetUserReportEnabled(false);</action>
</object>
<object type= "button" style= "wheatButton" size= "100%-150 100%-36 100%-4 100%-4" >
Technical details
<action on= "Press" > Engine.PushGuiPage("page_manual.xml", { "page": "userreport" });</action>
</object>
</object>
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-01 02:41:24 +02:00
<object
type="image"
2011-08-24 06:16:37 +02:00
style="MainMenuPanel"
size="60 -2 300 100%+2"
2011-08-26 06:25:41 +02:00
2011-08-01 02:41:24 +02:00
>
2011-08-22 19:36:53 +02:00
<object name= "productLogo"
type="image"
2011-08-26 06:25:41 +02:00
sprite="productLogo"
2011-08-01 02:41:24 +02:00
ghost="true"
2011-08-24 06:16:37 +02:00
size="50%-110 30 50%+110 130"
2011-08-22 19:36:53 +02:00
/>
2011-08-01 02:41:24 +02:00
2011-08-26 06:25:41 +02:00
<object name= "mainMenuButtons"
type="image"
2011-08-24 06:16:37 +02:00
size="8 156 100%-8 356"
2011-08-26 06:25:41 +02:00
ghost="false"
2011-08-01 02:41:24 +02:00
>
2011-08-26 06:25:41 +02:00
<!-- Allows sliding the mouse over to submenu without it closing automatically -->
<object
type="image"
size="100% 0 100%+8 100%"
ghost="false"
/>
2011-08-22 19:36:53 +02:00
<object name= "menuLearnToPlayButton"
2011-08-01 02:41:24 +02:00
type="button"
2011-08-23 05:51:04 +02:00
style="StoneButtonFancy"
2011-08-01 02:41:24 +02:00
size="4 4 100%-4 36"
tooltip_style="pgToolTip"
tooltip="The 0 A.D. Game Manual"
2011-08-22 19:36:53 +02:00
>
2011-08-01 02:41:24 +02:00
Learn To Play
<action on= "Press" > < ![CDATA[
Engine.PushGuiPage("page_manual.xml", { "page": "intro" });
]]></action>
</object>
2011-08-22 19:36:53 +02:00
<object name= "menuSinglePlayerButton"
2011-08-23 05:51:04 +02:00
style="StoneButtonFancy"
2011-08-01 02:41:24 +02:00
type="button"
size="4 36 100%-4 68"
tooltip_style="pgToolTip"
tooltip="Click here to start a new single player game. (A very basic computer opponent is available for testing purposes.)"
>
Single Player
<action on= "Press" > < ![CDATA[
2011-08-26 06:25:41 +02:00
updateSubmenu("menuSinglePlayerButton", "submenuSinglePlayer");
2011-08-01 02:41:24 +02:00
]]></action>
</object>
2011-08-26 06:25:41 +02:00
<object name= "menuMultiplayerButton"
2011-08-23 05:51:04 +02:00
style="StoneButtonFancy"
2011-08-01 02:41:24 +02:00
type="button"
size="4 68 100%-4 100"
tooltip_style="pgToolTip"
tooltip="Tired of playing with yourself? Fight against one or more human players in a multiplayer game."
>
Multiplayer
<action on= "Press" > < ![CDATA[
2011-08-26 06:25:41 +02:00
updateSubmenu("menuMultiplayerButton", "submenuMultiplayer");
2011-08-01 02:41:24 +02:00
]]></action>
</object>
2011-08-22 19:36:53 +02:00
<object name= "menuEditorButton"
2011-08-23 05:51:04 +02:00
style="StoneButtonFancy"
2011-08-01 02:41:24 +02:00
type="button"
size="4 100 100%-4 132"
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" > < ![CDATA[
if (Engine.AtlasIsAvailable())
Engine.RestartInAtlas();
else
messageBox(400, 200, "The scenario editor is not available or failed to load.", "Error", 2);
]]></action>
</object>
2011-08-22 19:36:53 +02:00
<object name= "menuOptionsButton"
2011-08-23 05:51:04 +02:00
style="StoneButtonFancy"
2011-08-01 02:41:24 +02:00
type="button"
size="4 132 100%-4 164"
tooltip_style="pgToolTip"
tooltip="This will take you to the options menu. It does not work now, but someday it will."
enabled="false"
>
Options
<action on= "Press" > < ![CDATA[
// Open Options window.
openMainMenuSubWindow ("pgOptions");
]]></action>
</object>
<!-- EXIT BUTTON -->
2011-08-22 19:36:53 +02:00
<object name= "menuExitButton"
2011-08-01 02:41:24 +02:00
type="button"
2011-08-23 05:51:04 +02:00
style="StoneButtonFancy"
2011-08-01 02:41:24 +02:00
size="4 164 100%-4 196"
tooltip_style="pgToolTip"
tooltip="Exit Game"
>
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>
2011-08-22 06:13:05 +02:00
2011-08-22 19:36:53 +02:00
<!-- <object name="menuCampaignsButton"
2011-08-23 05:51:04 +02:00
style="StoneButtonFancy"
2011-08-01 02:41:24 +02:00
type="button"
size="4 36 100%-4 68"
tooltip_style="pgToolTip"
tooltip="Want to play a campaign? Unfortunately you'll have to wait as they're not yet implemented."
enabled="false"
>
Historical Campaigns
<action on= "Press" > < ![CDATA[
openMainMenuSubWindow ("pgCampaigns");
]]></action>
</object>
-->
2011-08-22 19:36:53 +02:00
<!-- <object name="menuHistoryButton"
2011-08-23 05:51:04 +02:00
style="StoneButtonFancy"
2011-08-01 02:41:24 +02:00
type="button"
size="4 36 100%-4 68"
tooltip_style="pgToolTip"
tooltip="One day you will click this button and learn more about ancient history than any history teacher ever taught you."
enabled="false"
>
History
<action on= "Press" > < ![CDATA[
openMainMenuSubWindow ("pgHistory");
]]></action>
</object>
-->
</object>
2011-08-22 19:36:53 +02:00
2011-08-24 07:03:11 +02:00
<!-- PRE - RELEASE INFO -->
2011-08-26 06:32:53 +02:00
<object size= "8 100%-340 100%-8 100%-100"
2011-08-24 07:03:11 +02:00
type="image"
2011-08-26 06:25:41 +02:00
style="stoneTooltip"
2011-08-24 07:03:11 +02:00
>
2009-07-16 12:20:51 +02:00
2011-08-24 07:03:11 +02:00
<!-- PRE - RELEASE WARNING -->
2011-08-24 07:12:17 +02:00
<object
2011-08-24 07:03:11 +02:00
style="fancyTextHeadWhite"
type="text"
sprite="bkTranslucent"
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-24 07:03:11 +02:00
>
2011-08-26 03:56:50 +02:00
[font="serif-bold-18"]Alpha Version[/font]
2011-08-22 19:36:53 +02:00
2011-08-26 03:56:50 +02:00
WARNING: This is an early development version of the game. Many features have not been added yet.
Get involved at: wildfiregames.com/0ad
2011-08-24 07:03:11 +02:00
</object>
2011-08-22 19:36:53 +02:00
2011-08-24 07:03:11 +02:00
<!-- CONTACT METHODS -->
<object type= "button"
2011-08-26 03:56:50 +02:00
style="StoneButton"
tooltip_style="pgToolTip"
tooltip="Click to open wildfiregames.com/0ad in your web browser."
2011-08-26 06:25:41 +02:00
size="8 100%-40 50%-4 100%-8"
2011-08-24 07:03:11 +02:00
>
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>
2011-08-26 03:56:50 +02:00
<object type= "button"
style="StoneButton"
tooltip_style="pgToolTip"
tooltip="Click to chat in IRC. (#0ad at webchat.quakenet.org)"
2011-08-26 06:25:41 +02:00
size="50%+4 100%-40 100%-8 100%-8"
2011-08-24 07:03:11 +02:00
>
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>
2011-08-24 07:12:17 +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-08-26 06:25:41 +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-08-26 06:25:41 +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-08-24 07:12:17 +02:00
style="SmallTitleText"
2011-08-26 06:25:41 +02:00
ghost="true"
size="50%-128 32 50%+128 48"
2011-08-24 07:12:17 +02:00
>WILDFIRE GAMES</object>
</object>
<!-- VERSION -->
<object name= "versionNumber"
type="text"
style="SmallTitleText"
ghost="true"
size="50%-128 100%-36 50%+128 100%"
>
<action on= "Load" > < ![CDATA[
this.caption = "Build: " + buildTime(0) + " - " + buildTime(2);
]]></action>
</object>
2011-08-22 19:36:53 +02:00
2011-08-24 07:12:17 +02:00
</object>
2011-08-26 06:25:41 +02:00
<!--
==========================================
- MAIN MENU SIDE PANEL
==========================================
-->
<object
name="submenuScreen"
type="image"
>
<action on= "MouseEnter" >
<![CDATA[getGUIObjectByName("submenu").hidden = true;;]]>
</action>
<object
name="submenu"
type="image"
style="MainMenuPanel"
size="298 50%-100 538 50%+100"
>
<object name= "submenuSinglePlayer"
type="image"
size="4 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% 32"
tooltip_style="pgToolTip"
tooltip="Click here to start a new single player game. (A very basic computer opponent is available for testing purposes.)"
>
Single Player
<action on= "Press" > < ![CDATA[
// Open Session Setup window.
Engine.PushGuiPage("page_gamesetup.xml", { type: "offline" });
]]></action>
</object>
</object>
<object name= "submenuMultiplayer"
type="image"
size="4 4 100%-4 100%-4"
tooltip_style="pgToolTip"
tooltip="The 0 A.D. Game Manual"
hidden="true"
>
<object name= "subMenuMultiplayerJoinGameButton"
type="button"
style="StoneButtonFancy"
size="0 0 100% 32"
tooltip_style="pgToolTip"
tooltip="Tired of playing with yourself? Fight against one or more human players in a multiplayer game."
>
Multiplayer
<action on= "Press" > < ![CDATA[
// Open Multiplayer connection window.
Engine.PushGuiPage("page_gamesetup_mp.xml");
]]></action>
</object>
</object>
</object>
</object> <!-- end of screen -->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgCampaignsBt"
style="pgButton"
type="button"
2010-09-05 21:04:55 +02:00
size="30.6640625% 35.6770833% 49.609375% 62.2395833%"
2009-07-16 12:20:51 +02:00
sprite_over="pgCampaignsOver"
sprite_disabled="pgCampaignsDisabled"
2010-10-31 02:16:33 +02:00
tooltip="Want to play a campaign? Unfortunately you'll have to wait as they're not yet implemented."
2009-07-16 12:20:51 +02:00
enabled="false"
>
<action on= "Press" > < ![CDATA[
openMainMenuSubWindow ("pgCampaigns");
]]></action>
</object>
<object name= "pgSinglePlayerBt"
style="pgButton"
type="button"
2010-09-05 21:04:55 +02:00
size="51.8554688% 22.9166667% 68.359375% 43.2291667%"
2009-07-16 12:20:51 +02:00
sprite_over="pgSinglePlayerOver"
sprite_disabled="pgSinglePlayerDisabled"
2011-02-19 22:58:38 +01:00
tooltip="Click here to start a new single player game. (A very basic computer opponent is available for testing purposes.)"
2009-07-16 12:20:51 +02:00
>
<action on= "Press" > < ![CDATA[
// Open Session Setup window.
2010-06-30 23:41:04 +02:00
Engine.PushGuiPage("page_gamesetup.xml", { type: "offline" });
2009-07-16 12:20:51 +02:00
]]></action>
</object>
<object name= "pgMultiPlayerBt"
style="pgButton"
type="button"
2010-09-05 21:04:55 +02:00
size="59.765625% 46.875% 76.171875% 67.578125%"
2009-07-16 12:20:51 +02:00
sprite_over="pgMultiPlayerOver"
sprite_disabled="pgMultiPlayerDisabled"
tooltip="Tired of playing with yourself? Fight against one or more human players in a multiplayer game."
>
<action on= "Press" > < ![CDATA[
// Open Multiplayer connection window.
2010-06-30 23:41:04 +02:00
Engine.PushGuiPage("page_gamesetup_mp.xml");
2009-07-16 12:20:51 +02:00
]]></action>
</object>
<object name= "pgEditorBt"
style="pgButton"
type="button"
2010-09-05 21:04:55 +02:00
size="42.8710938% 61.5885417% 64.84375% 83.7239583%"
2009-07-16 12:20:51 +02:00
sprite_over="pgEditorOver"
sprite_disabled="pgEditorDisabled"
2010-08-08 17:23:39 +02:00
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" ."
2009-07-16 12:20:51 +02:00
>
2010-08-08 17:23:39 +02:00
<action on= "Press" > < ![CDATA[
2010-07-07 23:47:31 +02:00
if (Engine.AtlasIsAvailable())
2010-08-08 17:23:39 +02:00
Engine.RestartInAtlas();
2010-07-07 23:47:31 +02:00
else
2010-08-08 17:23:39 +02:00
messageBox(400, 200, "The scenario editor is not available or failed to load.", "Error", 2);
2009-07-16 12:20:51 +02:00
]]></action>
</object>
<object name= "pgOptionsBt"
style="pgButton"
type="button"
2010-09-05 21:04:55 +02:00
size="80.5664063% 53.6458333% 95.99609375% 74.609375%"
2009-07-16 12:20:51 +02:00
sprite_over="pgOptionsOver"
sprite_disabled="pgOptionsDisabled"
2010-10-31 02:16:33 +02:00
tooltip="This will take you to the options menu. It does not work now, but someday it will."
2009-07-16 12:20:51 +02:00
enabled="false"
>
<action on= "Press" > < ![CDATA[
// Open Options window.
openMainMenuSubWindow ("pgOptions");
]]></action>
</object>
<object name= "pgHistoryBt"
style="pgButton"
type="button"
2010-09-05 21:04:55 +02:00
size="75.8789063% 74.4791667% 90.0390625% 96.3541667%"
2009-07-16 12:20:51 +02:00
sprite_over="pgHistoryOver"
sprite_disabled="pgHistoryDisabled"
2010-03-30 23:15:15 +02:00
tooltip="One day you will click this button and learn more about ancient history than any history teacher ever taught you."
enabled="false"
2009-07-16 12:20:51 +02:00
>
<action on= "Press" > < ![CDATA[
openMainMenuSubWindow ("pgHistory");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
==========================================
- MAIN MENU - GAME LOGO AND VERSION NUMBER
==========================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgProductLogo"
style="pgButton"
type="button"
ghost="true"
size="21.1914062% 3.125% 68.0664062% 31.5104166%"
sprite="pgProductLogo"
>
</object>
<object name= "pgProductClick"
style="pgButton"
type="button"
size="21.1914062% 3.125% 48.0664062% 31.5104166%"
tooltip=""
>
<action on= "Press" > < ![CDATA[
// This used to roll credits, but that was annoying when you clicked it by
// mistake because there was no way to get out of credits. Do nothing for now.
/*
// Get credits text.
var creditsArray = readFileLines("gui/text/credits.txt");
// Populate credits list.
for (var creditsIndex = 0; creditsIndex < creditsArray.length ; c r e d i t s I n d e x + + )
{
// Add credit row to the end of the object's list.
pushItem ("pgCredits", creditsArray[creditsIndex]);
}
// Ensure we start at the top of the list.
getGUIObjectByName("pgCredits").selected = 0;
// Set a timer to increment the list, therefore pushing it down the screen
// (creating a pseudo-scrolling-credits effect).
setInterval( updateCredits, 1, 200 );
// Hide shell GUI (we want a blank screen with rolling text).
guiHide ("pg");
// Open the credits screen.
openMainMenuSubWindow ("pgCredits");
*/
]]></action>
</object>
<object name= "pgVersionNumber"
style="fancyTextHeadGold"
type="text"
ghost="true"
2011-06-11 16:22:03 +02:00
size="43% 24% 43%+300 24%+25"
2009-07-16 12:20:51 +02:00
>
<action on= "Load" > < ![CDATA[
2010-03-26 14:21:09 +01:00
this.caption = "Build: " + buildTime(0) + " - " + buildTime(2);
2009-07-16 12:20:51 +02:00
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
==========================================
- MAIN MENU - COMPANY LOGO
==========================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgCompanyLogo"
style="pgButton"
type="button"
size="10 91.666666%-30 25.9765% 100%-30"
sprite="pgCompanyLogo"
tooltip="These are the guys who made this game. Visit them at http://www.wildfiregames.com/0ad/"
>
<action on= "Press" > < ![CDATA[
2011-03-10 18:37:29 +01:00
messageBox (420, 320, "[icon=iconProduct] A.D. - History Is Yours For The Taking\nby Wildfire Games, 2002-2011\n\n" +
2010-03-26 14:21:09 +01:00
"Visit http://www.wildfiregames.com/0ad/ " +
2010-12-25 23:30:17 +01:00
"to learn more about [icon=iconProduct] A.D., participate in the community, meet the developers, and learn how to become a part of development yourself.\n\n", "About [icon=iconProduct] A.D.", 2, [], []);
2009-07-16 12:20:51 +02:00
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2011-02-16 21:40:15 +01:00
2009-07-16 12:20:51 +02:00
</object>
<!--
==========================================
- MAIN MENU - BACKGROUND MASK
==========================================
-->
2011-08-26 06:25:41 +02:00
<!-- <object name="pgSubWindow"
2009-07-16 12:20:51 +02:00
type="image"
z="90"
hidden="true"
sprite="bkTranslucent"
2011-08-26 06:25:41 +02:00
>-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- CAMPAIGNS SCREEN -
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgCampaigns"
style="wheatWindow"
type="image"
hidden="true"
size="50%-150 50%-120 50%+150 50%+120"
>
<object name= "pgCampaignsTitleBar"
style="wheatWindowTitleBar"
type="button"
>Campaigns
</object>
<object name= "pgCampaignsExitButton"
style="wheatExit"
type="button"
>
<action on= "Press" > < ![CDATA[
closeMainMenuSubWindow ("pgCampaigns");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!-- Add campaign screen controls here later -->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- OPTIONS SCREEN -
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptions"
style="wheatWindow"
type="image"
hidden="true"
size="50%-400 50%-300 50%+400 50%+300"
>
<object name= "pgOptionsTitleBar"
style="wheatWindowTitleBar"
type="button"
>Options
</object>
<object name= "pgOptionsExitButton"
style="wheatExit"
type="button"
>
<action on= "Press" > < ![CDATA[
// Close Options Screen, abandoning all changes.
closeMainMenuSubWindow ("pgOptions");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- OPTIONS SCREEN - AUDIO
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsAudioWindow"
style="wheatBorderBlack"
type="image"
size="1% 4% 99% 90%"
>
<object name= "pgOptionsAudioSoundCheckBox"
style="wheatCrossBox"
type="checkbox"
size="50%-50 20% 50%+50 25%"
>Mute All
<action on= "Load" > < ![CDATA[
// (Would like to set checkbox state to value of snd_disabled, but looks
// like that variable isn't exposed until after the GUI is loaded.
]]></action>
<action on= "Press" > < ![CDATA[
// Clicking the checkbox turns sound on and off.
// (Or at least it should, but it doesn't. Checkbox text doesn't appear
// either. Maybe this control isn't finished yet?)
if(this.checked)
{
2010-07-20 01:01:58 +02:00
global.curr_music.setGain (0.0);
2009-07-16 12:20:51 +02:00
g_ConfigDB.system["sound.mastergain"] = 0.0;
}
if(!this.checked)
{
2010-07-20 01:01:58 +02:00
global.curr_music.setGain (getGUIObjectByName ("pgOptionsAudioMusicGain").caption);
2009-07-16 12:20:51 +02:00
g_ConfigDB.system["sound.mastergain"] = getGUIObjectByName ("pgOptionsAudioMusicGain").caption;
}
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- AUDIO SCREEN - Music
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsAudioMusicGainTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 30% 50%+20 35%"
text_align="left"
text_valign="center"
>Music Volume
<action on= "Load" > < ![CDATA[
this.caption = "Music Volume";
]]></action>
</object>
<object name= "pgOptionsAudioMusicGain"
style="wheatBorderBlack"
type="text"
size="50%-20 30% 50%+20 35%"
text_align="center"
text_valign="center"
>
<action on= "Load" > < ![CDATA[
this.caption = g_ConfigDB.system["sound.mastergain"];
]]></action>
</object>
<object name= "pgOptionsAudioMusicGainDec"
style="wheatArrowLeft"
type="button"
size="50%-40 30% 50%-25 35%"
>
<action on= "Press" > < ![CDATA[
if (getGUIObjectByName ("pgOptionsAudioMusicGain").caption > 0.0)
guiModifyCaption ("pgOptionsAudioMusicGain", -.1, 1);
2010-07-20 01:01:58 +02:00
global.curr_music.setGain (getGUIObjectByName ("pgOptionsAudioMusicGain").caption);
2009-07-16 12:20:51 +02:00
g_ConfigDB.system["sound.mastergain"] = getGUIObjectByName ("pgOptionsAudioMusicGain").caption;
]]></action>
</object>
<object name= "pgOptionsAudioMusicGainInc"
style="wheatArrowRight"
type="button"
size="50%+25 30% 50%+40 35%"
>
<action on= "Press" > < ![CDATA[
if (getGUIObjectByName ("pgOptionsAudioMusicGain").caption < 1.0 )
guiModifyCaption ("pgOptionsAudioMusicGain", .1, 1);
2010-07-20 01:01:58 +02:00
global.curr_music.setGain (getGUIObjectByName ("pgOptionsAudioMusicGain").caption);
2009-07-16 12:20:51 +02:00
g_ConfigDB.system["sound.mastergain"] = getGUIObjectByName ("pgOptionsAudioMusicGain").caption;
]]></action>
</object>
<object name= "pgOptionsAudioMusicCheckBox"
style="wheatCrossBox"
type="checkbox"
size="60% 30% 60%+50 35%"
>Mute
<action on= "Press" > < ![CDATA[
// Clicking the checkbox turns music on and off.
if(this.checked)
{
2010-07-20 01:01:58 +02:00
global.curr_music.setGain (0.0);
2009-07-16 12:20:51 +02:00
g_ConfigDB.system["sound.mastergain"] = 0.0;
}
if(!this.checked)
{
2010-07-20 01:01:58 +02:00
global.curr_music.setGain (getGUIObjectByName ("pgOptionsAudioMusicGain").caption);
2009-07-16 12:20:51 +02:00
g_ConfigDB.system["sound.mastergain"] = getGUIObjectByName ("pgOptionsAudioMusicGain").caption;
}
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- AUDIO SCREEN - Sound
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsAudioSoundGainTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 40% 50%+20 45%"
text_align="left"
text_valign="center"
>Sound Volume
<action on= "Load" > < ![CDATA[
this.caption = "Sound Volume";
]]></action>
</object>
<object name= "pgOptionsAudioSoundGain"
style="wheatBorderBlack"
type="text"
size="50%-20 40% 50%+20 45%"
text_align="center"
text_valign="center"
>
<action on= "Load" > < ![CDATA[
this.caption = "0";
]]></action>
</object>
<object name= "pgOptionsAudioSoundGainDec"
style="wheatArrowLeft"
type="button"
size="50%-40 40% 50%-25 45%"
>
<action on= "Press" > < ![CDATA[
if (getGUIObjectByName ("pgOptionsAudioSoundGain").caption > 0.0)
guiModifyCaption ("pgOptionsAudioSoundGain", -.1, 1);
]]></action>
</object>
<object name= "pgOptionsAudioSoundGainInc"
style="wheatArrowRight"
type="button"
size="50%+25 40% 50%+40 45%"
>
<action on= "Press" > < ![CDATA[
if (getGUIObjectByName ("pgOptionsAudioSoundGain").caption < 1.0 )
guiModifyCaption ("pgOptionsAudioSoundGain", .1, 1);
]]></action>
</object>
<object name= "pgOptionsAudioSndCheckBox"
style="wheatCrossBox"
type="checkbox"
size="60% 40% 60%+50 45%"
>Mute
<action on= "Press" > < ![CDATA[
// Clicking the checkbox turns sound on and off.
if(this.checked)
{
2010-07-20 01:01:58 +02:00
// global.curr_music.setGain (0.0);
2009-07-16 12:20:51 +02:00
// g_ConfigDB.system["sound.mastergain"] = 0.0;
}
if(!this.checked)
{
2010-07-20 01:01:58 +02:00
// global.curr_music.setGain (getGUIObjectByName ("pgOptionsAudioMusicGain").caption);
2009-07-16 12:20:51 +02:00
// g_ConfigDB.system["sound.mastergain"] = getGUIObjectByName ("pgOptionsAudioMusicGain").caption;
}
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- AUDIO SCREEN - Ambient
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsAudioAmbientGainTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 50% 50%+20 55%"
text_align="left"
text_valign="center"
>Ambient Volume
<action on= "Load" > < ![CDATA[
this.caption = "Ambient Volume";
]]></action>
</object>
<object name= "pgOptionsAudioAmbientGain"
style="wheatBorderBlack"
type="text"
size="50%-20 50% 50%+20 55%"
text_align="center"
text_valign="center"
>
<action on= "Load" > < ![CDATA[
this.caption = "0";
]]></action>
</object>
<object name= "pgOptionsAudioAmbientGainDec"
style="wheatArrowLeft"
type="button"
size="50%-40 50% 50%-25 55%"
>
<action on= "Press" > < ![CDATA[
if (getGUIObjectByName ("pgOptionsAudioAmbientGain").caption > 0.0)
guiModifyCaption ("pgOptionsAudioAmbientGain", -.1, 1);
]]></action>
</object>
<object name= "pgOptionsAudioAmbientGainInc"
style="wheatArrowRight"
type="button"
size="50%+25 50% 50%+40 55%"
>
<action on= "Press" > < ![CDATA[
if (getGUIObjectByName ("pgOptionsAudioAmbientGain").caption < 1.0 )
guiModifyCaption ("pgOptionsAudioAmbientGain", .1, 1);
]]></action>
</object>
<object name= "pgOptionsAudioAmbientCheckBox"
style="wheatCrossBox"
type="checkbox"
size="60% 50% 60%+50 55%"
>Mute
<action on= "Press" > < ![CDATA[
// Clicking the checkbox turns ambient sound on and off.
if(this.checked)
{
2010-07-20 01:01:58 +02:00
// global.curr_music.setGain (0.0);
2009-07-16 12:20:51 +02:00
// g_ConfigDB.system["sound.mastergain"] = 0.0;
}
if(!this.checked)
{
2010-07-20 01:01:58 +02:00
// global.curr_music.setGain (getGUIObjectByName ("pgOptionsAudioMusicGain").caption);
2009-07-16 12:20:51 +02:00
// g_ConfigDB.system["sound.mastergain"] = getGUIObjectByName ("pgOptionsAudioMusicGain").caption;
}
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- AUDIO SCREEN - Voice
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsAudioVoiceGainTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 60% 50%+20 65%"
text_align="left"
text_valign="center"
>Voice Volume
<action on= "Load" > < ![CDATA[
this.caption = "Voice Volume";
]]></action>
</object>
<object name= "pgOptionsAudioVoiceGain"
style="wheatBorderBlack"
type="text"
size="50%-20 60% 50%+20 65%"
text_align="center"
text_valign="center"
>
<action on= "Load" > < ![CDATA[
this.caption = "0";
]]></action>
</object>
<object name= "pgOptionsAudioVoiceGainDec"
style="wheatArrowLeft"
type="button"
size="50%-40 60% 50%-25 65%"
>
<action on= "Press" > < ![CDATA[
if (getGUIObjectByName ("pgOptionsAudioVoiceGain").caption > 0.0)
guiModifyCaption ("pgOptionsAudioVoiceGain", -.1, 1);
]]></action>
</object>
<object name= "pgOptionsAudioVoiceGainInc"
style="wheatArrowRight"
type="button"
size="50%+25 60% 50%+40 65%"
>
<action on= "Press" > < ![CDATA[
if (getGUIObjectByName ("pgOptionsAudioVoiceGain").caption < 1.0 )
guiModifyCaption ("pgOptionsAudioVoiceGain", .1, 1);
]]></action>
</object>
<object name= "pgOptionsAudioVoiceCheckBox"
style="wheatCrossBox"
type="checkbox"
size="60% 60% 60%+50 65%"
>Mute
<action on= "Press" > < ![CDATA[
// Clicking the checkbox turns voice sound on and off.
if(this.checked)
{
2010-07-20 01:01:58 +02:00
// global.curr_music.setGain (0.0);
2009-07-16 12:20:51 +02:00
// g_ConfigDB.system["sound.mastergain"] = 0.0;
}
if(!this.checked)
{
2010-07-20 01:01:58 +02:00
// global.curr_music.setGain (getGUIObjectByName ("pgOptionsAudioMusicGain").caption);
2009-07-16 12:20:51 +02:00
// g_ConfigDB.system["sound.mastergain"] = getGUIObjectByName ("pgOptionsAudioMusicGain").caption;
}
]]></action>
</object>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- OPTIONS SCREEN - VIDEO
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsVideoWindow"
style="wheatBorderBlack"
type="image"
hidden="true"
size="1% 4% 99% 90%"
>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- VIDEO SCREEN - Resolution
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsVideoResolutionTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 10% 50%+20 15%"
text_align="left"
text_valign="center"
>Resolution
<action on= "Load" > < ![CDATA[
this.caption = "Resolution";
]]></action>
</object>
<object name= "pgOptionsVideoResolution"
style="wheatDropDown"
type="dropdown"
size="50%-20 10% 70% 15%"
>
<action on= "Load" > < ![CDATA[
pushItem (this.name, "800x600");
pushItem (this.name, "1024x768");
pushItem (this.name, "1280x768");
pushItem (this.name, "1280x800");
pushItem (this.name, "1600x1200");
setCurrItemValue (this.name, "1024x768");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- VIDEO SCREEN - Detail
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsVideoDetailTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 19% 50%+20 24%"
text_align="left"
text_valign="center"
>Model Detail
<action on= "Load" > < ![CDATA[
this.caption = "Model Detail";
]]></action>
</object>
<object name= "pgOptionsVideoDetail"
style="wheatDropDown"
type="dropdown"
size="50%-20 19% 70% 24%"
>
<action on= "Load" > < ![CDATA[
pushItem (this.name, "LOW");
pushItem (this.name, "MEDIUM");
pushItem (this.name, "HIGH");
pushItem (this.name, "PICTURE");
setCurrItemValue (this.name, "HIGH");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- VIDEO SCREEN - Texture
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsVideoTextureTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 28% 50%+20 33%"
text_align="left"
text_valign="center"
>Texture Detail
<action on= "Load" > < ![CDATA[
this.caption = "Texture Detail";
]]></action>
</object>
<object name= "pgOptionsVideoTexture"
style="wheatDropDown"
type="dropdown"
size="50%-20 28% 70% 33%"
>
<action on= "Load" > < ![CDATA[
pushItem (this.name, "LOW");
pushItem (this.name, "MEDIUM");
pushItem (this.name, "HIGH");
pushItem (this.name, "PICTURE");
setCurrItemValue (this.name, "HIGH");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- VIDEO SCREEN - Animation
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsVideoAnimationTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 37% 50%+20 42%"
text_align="left"
text_valign="center"
>Animation Detail
<action on= "Load" > < ![CDATA[
this.caption = "Animation Detail";
]]></action>
</object>
<object name= "pgOptionsVideoAnimation"
style="wheatDropDown"
type="dropdown"
size="50%-20 37% 70% 42%"
>
<action on= "Load" > < ![CDATA[
pushItem (this.name, "LOW");
pushItem (this.name, "MEDIUM");
pushItem (this.name, "HIGH");
pushItem (this.name, "PICTURE");
setCurrItemValue (this.name, "HIGH");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- VIDEO SCREEN - Effects
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsVideoEffectsTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 46% 50%+20 51%"
text_align="left"
text_valign="center"
>Effects Detail
<action on= "Load" > < ![CDATA[
this.caption = "Effects Detail";
]]></action>
</object>
<object name= "pgOptionsVideoEffects"
style="wheatDropDown"
type="dropdown"
size="50%-20 46% 70% 51%"
>
<action on= "Load" > < ![CDATA[
pushItem (this.name, "LOW");
pushItem (this.name, "MEDIUM");
pushItem (this.name, "HIGH");
pushItem (this.name, "PICTURE");
setCurrItemValue (this.name, "HIGH");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- VIDEO SCREEN - Weather
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsVideoWeatherTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 55% 50%+20 60%"
text_align="left"
text_valign="center"
>Weather Detail
<action on= "Load" > < ![CDATA[
this.caption = "Weather Detail";
]]></action>
</object>
<object name= "pgOptionsVideoWeather"
style="wheatDropDown"
type="dropdown"
size="50%-20 55% 70% 60%"
>
<action on= "Load" > < ![CDATA[
pushItem (this.name, "LOW");
pushItem (this.name, "MEDIUM");
pushItem (this.name, "HIGH");
pushItem (this.name, "PICTURE");
setCurrItemValue (this.name, "HIGH");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- VIDEO SCREEN - Water
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsVideoWaterTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 64% 50%+20 69%"
text_align="left"
text_valign="center"
>Water Detail
<action on= "Load" > < ![CDATA[
this.caption = "Water Detail";
]]></action>
</object>
<object name= "pgOptionsVideoWater"
style="wheatDropDown"
type="dropdown"
size="50%-20 64% 70% 69%"
>
<action on= "Load" > < ![CDATA[
pushItem (this.name, "LOW");
pushItem (this.name, "MEDIUM");
pushItem (this.name, "HIGH");
pushItem (this.name, "PICTURE");
setCurrItemValue (this.name, "HIGH");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- VIDEO SCREEN - Terrain
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsVideoWaterTerrain"
style="wheatTextLabelBlack"
type="text"
size="50%-180 73% 50%+20 78%"
text_align="left"
text_valign="center"
>Terrain Detail
<action on= "Load" > < ![CDATA[
this.caption = "Terrain Detail";
]]></action>
</object>
<object name= "pgOptionsVideoTerrain"
style="wheatDropDown"
type="dropdown"
size="50%-20 73% 70% 78%"
>
<action on= "Load" > < ![CDATA[
pushItem (this.name, "LOW");
pushItem (this.name, "MEDIUM");
pushItem (this.name, "HIGH");
pushItem (this.name, "PICTURE");
setCurrItemValue (this.name, "HIGH");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- VIDEO SCREEN - Shadow
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsVideoShadowTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 82% 50%+20 87%"
text_align="left"
text_valign="center"
>Shadow Detail
<action on= "Load" > < ![CDATA[
this.caption = "Shadow Detail";
]]></action>
</object>
<object name= "pgOptionsVideoShadow"
style="wheatDropDown"
type="dropdown"
size="50%-20 82% 70% 87%"
>
<action on= "Load" > < ![CDATA[
pushItem (this.name, "LOW");
pushItem (this.name, "MEDIUM");
pushItem (this.name, "HIGH");
pushItem (this.name, "PICTURE");
setCurrItemValue (this.name, "HIGH");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- VIDEO SCREEN - Show Blood
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsVideoBloodTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 91% 50%+20 96%"
text_align="left"
text_valign="center"
>Show Blood
<action on= "Load" > < ![CDATA[
this.caption = "Show Blood";
]]></action>
</object>
<object name= "pgOptionsVideoBloodCheckBox"
style="wheatCrossBox"
type="checkbox"
size="50%-20 91% 50%+30 96%"
>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- VIDEO SCREEN - System Information
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsVideoSystemInfoButton"
style="wheatButton"
type="button"
size="80% 91% 99% 99%"
tooltip="Display System Information."
tooltip_style="pgFloatingToolTip"
>System Info
<action on= "Press" > < ![CDATA[
// Display System Information.
]]></action>
</object>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- OPTIONS SCREEN - GAME
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsGameWindow"
style="wheatBorderBlack"
type="image"
hidden="true"
size="1% 4% 99% 90%"
>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- GAME SCREEN - Mouse Settings
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsGameMouseTitle"
style="wheatTextLabelBlack"
type="text"
size="50%-180 20% 50%+20 25%"
text_align="left"
text_valign="center"
>Mouse Settings
<action on= "Load" > < ![CDATA[
this.caption = "Mouse Settings";
]]></action>
</object>
<object name= "pgOptionsGameReverseButtons"
style="wheatCrossBox"
type="checkbox"
size="50%-170 27% 50%+50 32%"
>Reverse Buttons
<action on= "Load" > < ![CDATA[
// TODO: Reverse Mouse Buttons
this.caption = "Reverse Buttons";
]]></action>
<action on= "Press" > < ![CDATA[
// Clicking the checkbox reverses the buttons
]]></action>
</object>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- OPTIONS SCREEN - TAB BUTTONS
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsAudioButton"
style="wheatButton"
type="button"
enabled="false"
size="1% 1% 30% 7%"
>Audio
<action on= "Press" > < ![CDATA[
// Open Audio tab.
openOptionsTab ("pgOptionsAudio");
]]></action>
</object>
<object name= "pgOptionsVideoButton"
style="wheatButton"
type="button"
size="35% 1% 65% 7%"
>Video
<action on= "Press" > < ![CDATA[
// Open Video tab.
openOptionsTab ("pgOptionsVideo");
]]></action>
</object>
<object name= "pgOptionsGameButton"
style="wheatButton"
type="button"
size="70% 1% 99% 7%"
>Game
<action on= "Press" > < ![CDATA[
// Open Game tab.
openOptionsTab ("pgOptionsGame");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- OPTIONS SCREEN - OK BUTTON
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsOKButton"
style="wheatButton"
type="button"
size="10% 92% 40% 100%"
tooltip="Save all changes and close the Options Screen."
tooltip_style="pgFloatingToolTip"
>OK
<action on= "Press" > < ![CDATA[
// Save changes.
// TODO:
// console.write ("Volume: " + g_ConfigDB.system["sound.mastergain"] + ".")
writeLog ("C:\Dev-Cpp\Config\Config.exe")
// Close options screen.
closeMainMenuSubWindow ("pgOptions");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- OPTIONS SCREEN - CANCEL BUTTON
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgOptionsCancelButton"
style="wheatButton"
type="button"
size="60% 92% 90% 100%"
tooltip="Close Options Screen, abandoning all changes."
tooltip_style="pgFloatingToolTip"
>Cancel
<action on= "Press" > < ![CDATA[
// Close Options Screen, abandoning all changes.
closeMainMenuSubWindow ("pgOptions");
]]></action>
</object>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- HISTORY SCREEN -
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgHistory"
style="wheatWindow"
type="image"
hidden="true"
size="50%-150 50%-120 50%+150 50%+120"
>
<object name= "pgHistoryTitleBar"
style="wheatWindowTitleBar"
type="button"
>History
</object>
<object name= "pgHistoryExitButton"
style="wheatExit"
type="button"
>
<action on= "Press" > < ![CDATA[
closeMainMenuSubWindow ("pgHistory");
]]></action>
</object>
</object>
2011-08-01 02:41:24 +02:00
-->
2009-07-16 12:20:51 +02:00
<!--
===============================================
- CREDITS SCREEN
===============================================
-->
2011-08-01 02:41:24 +02:00
<!--
2009-07-16 12:20:51 +02:00
<object name= "pgCredits"
style="fancyTextHeadWhite"
type="list"
ghost="false"
hidden="true"
size="0 0 100% 100%"
2010-05-30 15:42:56 +02:00
font="serif-12"
2009-07-16 12:20:51 +02:00
text_align="center"
>
<action on= "SelectionChange" > < ![CDATA[
console.write ("Note to self: Ask Gee to create list function to clear (empty) a list.");
]]></action>
</object>
2011-08-01 02:41:24 +02:00
-->
2011-08-26 06:25:41 +02:00
<!-- END OF pgSubWindow -->
<!-- </object> -->
2009-07-16 12:20:51 +02:00
</objects>