Created
September 18, 2013 17:29
-
-
Save JoshuaJB/6612560 to your computer and use it in GitHub Desktop.
Options menu for 0AD.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
========================================== | |
- Options Window - | |
========================================== | |
--> | |
<objects> | |
<script file="gui/common/functions_civinfo.js"/> | |
<script file="gui/session/music.js"/> | |
<script file="gui/options/options.js"/> | |
<!-- Add a translucent black background to fade out the menu page --> | |
<object type="image" z="0" style="TranslucentPanel"/> | |
<!-- Settings Window --> | |
<object name="options" type="image" style="StoneDialog" size="50%-466 50%-316 50%+466 50%+316"> | |
<object style="TitleText" type="text" size="50%-128 0%-16 50%+128 16">Game Options</object> | |
<object name="SystemSettings" type="image" sprite="BackgroundIndentFillDark" size="16 16 316 100%-16"> | |
<object style="TitleText" type="text" size="0 5 100% 25">System Settings</object> | |
<object size="0 25 65% 50" type="text" style="RightLabelText" ghost="true">Windowed Mode</object> | |
<object name="WindowedCFGLate" size="70% 30 70%+25 55" type="checkbox" style="StoneCrossBox"> | |
<action on="Load">g_ConfigDB.user["windowed"] === "true" ? this.checked = true : this.checked = false;</action> | |
<action on="Press">g_ConfigDB.user["windowed"] = String(this.checked);</action> | |
</object> | |
<object size="0 50 65% 75" type="text" style="RightLabelText" ghost="true">Background Pause</object> | |
<object name="PauseCFGNow" size="70% 55 70%+25 80" type="checkbox" style="StoneCrossBox"> | |
<action on="Load">g_ConfigDB.user["pauseonfocusloss"] === "true" ? this.checked = true : this.checked = false;</action> | |
<action on="Press">g_ConfigDB.user["pauseonfocusloss"] = String(this.checked);</action> | |
</object> | |
</object> | |
<object name="GraphicsSettings" type="image" sprite="BackgroundIndentFillDark" size="316 16 616 100%-16"> | |
<object style="TitleText" type="text" size="0 5 100% 25">Graphics Settings</object> | |
<object size="0 25 65% 50" type="text" style="RightLabelText" ghost="true">Enable Shadows</object> | |
<object name="ShadowsCFG" size="70% 30 70%+25 55" type="checkbox" style="StoneCrossBox"> | |
<action on="Load">g_ConfigDB.user["shadows"] === "true" ? this.checked = true : this.checked = false;</action> | |
<action on="Press">g_ConfigDB.user["shadows"] = String(this.checked);</action> | |
</object> | |
<object size="0 50 65% 75" type="text" style="RightLabelText" ghost="true">Enable Shadow Filtering</object> | |
<object name="ShadowPCFCFGNow" size="70% 55 70%+25 80" type="checkbox" style="StoneCrossBox"> | |
<action on="Load">g_ConfigDB.user["shadowpcf"] === "true" ? this.checked = true : this.checked = false;</action> | |
<action on="Press">g_ConfigDB.user["shadowpcf"] = String(this.checked);</action> | |
</object> | |
</object> | |
<object name="SoundSettings" type="image" sprite="BackgroundIndentFillDark" size="616 16 916 100%-16"> | |
<object style="TitleText" type="text" size="0 5 100% 25">Sound Settings</object> | |
<object size="0 25 65% 50" type="text" style="RightLabelText" ghost="true">Master Gain</object> | |
<object name="SMasterCFG" size="70% 25 70%+35 50" type="input" style="StoneInput"> | |
<action on="Load">this.caption = g_ConfigDB.user["sound.mastergain"];</action> | |
</object> | |
<object size="70%+35 25 70%+75 50" type="button" style="StoneButton">Save | |
<action on="Press">g_ConfigDB.user["sound.mastergain"] = String(getGUIObjectByName("SMasterCFG").caption);</action> | |
</object> | |
<object size="0 50 65% 75" type="text" style="RightLabelText" ghost="true">Music Gain</object> | |
<object name="SMusicCFG" size="70% 50 70%+35 75" type="input" style="StoneInput"> | |
<action on="Load">this.caption = g_ConfigDB.user["sound.musicgain"];</action> | |
</object> | |
<object size="70%+35 50 70%+75 75" type="button" style="StoneButton">Save | |
<action on="Press">g_ConfigDB.user["sound.musicgain"] = String(getGUIObjectByName("SMusicCFG").caption);</action> | |
</object> | |
</object> | |
<object type="button" style="StoneButton" size="50%+16 100%-64 50%+144 100%-32"> | |
Cancel | |
<action on="Press">Engine.PopGuiPage();</action> | |
</object> | |
<object type="button" style="StoneButton" size="50%-144 100%-64 50%-16 100%-32"> | |
Save | |
<action on="Press">g_ConfigDB.user.writeFile("config/user.cfg");Engine.PopGuiPage();</action> | |
</object> | |
</object> | |
</objects> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment