<?xml version="1.0" encoding="utf-8"?>

<!--
==========================================
- Options Window -
==========================================
-->

<objects>
	<script file="gui/options/options.js"/>

	<!-- Add a translucent black background to fade out the menu page -->
	<object type="image" sprite="ModernFade"/>

	<!-- Settings Window -->
	<object name="options" type="image" style="ModernDialog" size="50%-466 50%-316 50%+466 50%+316">
		<object style="ModernLabelText" type="text" size="50%-128 -16 50%+128 16">
			<translatableAttribute id="caption">Game Options</translatableAttribute>
		</object>
		<object name="GeneralSettings" type="image" sprite="ModernDarkBoxGold" size="16 16 312 100%-52">
			<object style="ModernLabelText" type="text" size="0 5 100% 25">
				<translatableAttribute id="caption">General</translatableAttribute>
			</object>
			<repeat count="23">
				<object name="generalSetting[n]" size="0 25 100% 50" hidden="true">
					<object name="generalSettingLabel[n]" size="0 0 65% 100%" type="text" style="ModernLabelText" text_align="left"/>
					<object name="generalSettingTickbox[n]" size="90% 5 100% 100%+5" type="checkbox" style="ModernTickBox" hidden="true"/>
					<object name="generalSettingInput[n]" size="70% 0 100%-8 100%" type="input" style="ModernInput" hidden="true"/>
					<object name="generalSettingDropdown[n]" size="70% 0 100%-8 100%" type="dropdown" style="ModernDropDown" hidden="true"/>
				</object>
			</repeat>
		</object>
		<object name="GraphicsSettings" type="image" sprite="ModernDarkBoxGold" size="320 16 612 100%-52">
			<object style="ModernLabelText" type="text" size="0 5 100% 25">
				<translatableAttribute id="caption">Graphics Settings</translatableAttribute>
			</object>
			<repeat count="21">
				<object name="graphicsSetting[n]" size="0 25 100% 50" hidden="true">
					<object name="graphicsSettingLabel[n]" size="0 0 65% 100%" type="text" style="ModernLabelText" text_align="left"/>
					<object name="graphicsSettingTickbox[n]" size="90% 5 100% 100%+5" type="checkbox" style="ModernTickBox" hidden="true"/>
					<object name="graphicsSettingInput[n]" size="70% 0 100%-8 100%" type="input" style="ModernInput" hidden="true"/>
					<object name="graphicsSettingDropdown[n]" size="70% 0 100%-8 100%" type="dropdown" style="ModernDropDown" hidden="true"/>
				</object>
			</repeat>
		</object>
		<object name="SoundSettings" type="image" sprite="ModernDarkBoxGold" size="620 16 916 50%-4">
			<object style="ModernLabelText" type="text" size="0 5 100% 25">
				<translatableAttribute id="caption">Sound Settings</translatableAttribute>
			</object>
			<repeat count="10">
				<object name="soundSetting[n]" size="0 25 100% 50" hidden="true">
					<object name="soundSettingLabel[n]" size="0 0 65% 100%" type="text" style="ModernLabelText" text_align="left"/>
					<object name="soundSettingTickbox[n]" size="90% 5 100% 100%+5" type="checkbox" style="ModernTickBox" hidden="true"/>
					<object name="soundSettingInput[n]" size="70% 0 100%-8 100%" type="input" style="ModernInput" hidden="true"/>
					<object name="soundSettingDropdown[n]" size="70% 0 100%-8 100%" type="dropdown" style="ModernDropDown" hidden="true"/>
				</object>
			</repeat>
		</object>
		<object name="LobbySettings" type="image" sprite="ModernDarkBoxGold" size="620 50%+4 916 100%-52">
			<object style="ModernLabelText" type="text" size="0 5 100% 25">
				<translatableAttribute id="caption">Lobby Settings</translatableAttribute>
			</object>
			<repeat count="10">
				<object name="lobbySetting[n]" size="0 25 100% 50" hidden="true">
					<object name="lobbySettingLabel[n]" size="0 0 65% 100%" type="text" style="ModernLabelText" text_align="left"/>
					<object name="lobbySettingTickbox[n]" size="90% 5 100% 100%+5" type="checkbox" style="ModernTickBox" hidden="true"/>
					<object name="lobbySettingInput[n]" size="70% 0 100%-8 100%" type="input" style="ModernInput" hidden="true"/>
					<object name="lobbySettingDropdown[n]" size="70% 0 100%-8 100%" type="dropdown" style="ModernDropDown" hidden="true"/>
				</object>
			</repeat>
		</object>
		<object type="button" style="ModernButtonRed" size="50%-236 100%-44 50%-136 100%-16">
			<translatableAttribute id="caption">Reset</translatableAttribute>
			<translatableAttribute id="tooltip">Resets user settings to their game default</translatableAttribute>
			<action on="Press">setDefaults();</action>
		</object>
		<object name="revertChanges" type="button" style="ModernButtonRed" size="50%-104 100%-44 50%-4 100%-16">
			<translatableAttribute id="caption">Revert</translatableAttribute>
			<translatableAttribute id="tooltip">Reverts to previous saved settings</translatableAttribute>
			<action on="Press">revertChanges();</action>
		</object>
		<object name="saveChanges" type="button" style="ModernButtonRed" size="50%+4 100%-44 50%+104 100%-16">
			<translatableAttribute id="caption">Save</translatableAttribute>
			<translatableAttribute id="tooltip">Saves changes</translatableAttribute>
			<action on="Press">saveChanges();</action>
		</object>
		<object type="button" style="ModernButtonRed" size="50%+136 100%-44 50%+236 100%-16">
			<translatableAttribute id="caption">Close</translatableAttribute>
			<translatableAttribute id="tooltip">Unsaved changes affect this session only</translatableAttribute>
			<action on="Press">closePage();</action>
		</object>
	</object>
</objects>
