<?xml version="1.0"?>

<page name="options"
	cursor="true"
	on_show="show">

	<event name="show">
		bg.highlited="0";
		bg.highlited="true";
		time="10";
		on_time="time1";
		$CORE.OptionsLoad="1";
		invert_look.data=$OPTIONS.invert_look;
		x_sensit.data=$OPTIONS.x_sensit;
		y_sensit.data=$OPTIONS.y_sensit;
		snd_volume.data=$OPTIONS.snd_volume;
		music_volume.data=$OPTIONS.music_volume;
		brightness.data=$OPTIONS.brightness;
		resolution.data=$OPTIONS.resolution;
		graphics_detail.data=$OPTIONS.graphics_detail;
	</event>

	<event name="time1">
		bg.highlited="false";
		on_time="time2";
	</event>

	<event name="time2">
		bg.highlited="true";
		on_time="time1";
	</event>

	<!-- Background -->
	<area name="bg"
		style="background"
		size="120%,120%"
		position="c,c"
		position_h="-60c,+25c"
		highlited_time="10"
		size_h="140%,140%"
	/>
	<area name="bg_multiply"
		style="bg_multiply"
		blend="multiply"
	/>
	<!-- Background -->

	<!-- Menu Border -->
	<area name="vertical"
		style="vertical"
		blend="normal"
		position="0,0"
	/>
	<!-- Menu Border -->

	<area name="header_bg"
		style="header_bg"
	/>

		<text name="header_options"
			text_id="110002"
			font="gui_jjstencil"
			text_color="FFbf2a02"
			size="31%,8%"
			font_size="34"
			position="3%,14%"
			align="rc"
		/>

		<area name="mp_menu_bg"
			style="button_bar"
			position="c,30c"
			size="100%,57%">
			<area name="menu_line_top"
				style="mp_menu_bg"
				size="100%,3"
				position="c,0"
			/>
			<area name="menu_line_bottom"
				style="mp_menu_bg"
				size="100%,3"
				position="c,b"
			/>
		</area>

		<area name="options_menu"
			style="menu"
			size="610,53%"
			position="c,30c"
			color="70FFFFFF">
			
            <button name="graphics"
				text="GRAPHICS"
				style="button_normal"
				position="0,0"
				position_h="0,0"
				on_accept="goto_graphics"
			/>
			<button name="controls"
				text_id="110042"
				style="button_normal_long"
				position="0,32"
				position_h="0,32"
				on_accept="goto_controls"
			/>

			<choice name="invert_look"
				text_id="110073"
				style="button_choice_long"
				position="0,64"
				position_h="0,64"
				split="0.5"
				on_change="invert_changed">
				<item text_id="26" data="0"/>
				<item text_id="25" data="1"/>
			</choice>

			<choice name="x_sensit"
				text_id="110074"
				style="button_choice_long"
				position="0,96"
				position_h="0,96"
				split="0.5"
				on_change="x_sensit_changed">
				<item text="0" data="0"/>
				<item text="1" data="1"/>
				<item text="2" data="2"/>
				<item text="3" data="3"/>
				<item text="4" data="4"/>
				<item text="5" data="5"/>
				<item text="6" data="6"/>
				<item text="7" data="7"/>
				<item text="8" data="8"/>
				<item text="9" data="9"/>
				<item text="10" data="10"/>
			</choice>

			<choice name="y_sensit"
				text_id="110075"
				style="button_choice_long"
				position="0,128"
				position_h="0,128"
				split="0.5"
				on_change="y_sensit_changed">
				<item text="0" data="0"/>
				<item text="1" data="1"/>
				<item text="2" data="2"/>
				<item text="3" data="3"/>
				<item text="4" data="4"/>
				<item text="5" data="5"/>
				<item text="6" data="6"/>
				<item text="7" data="7"/>
				<item text="8" data="8"/>
				<item text="9" data="9"/>
				<item text="10" data="10"/>
			</choice>

			<choice name="snd_volume"
				text_id="110050"
				style="button_choice_long"
				position="0,160"
				position_h="0,160"
				split="0.5"
				on_change="sndvol_changed">
				<item text="0" data="0"/>
				<item text="1" data="1"/>
				<item text="2" data="2"/>
				<item text="3" data="3"/>
				<item text="4" data="4"/>
				<item text="5" data="5"/>
				<item text="6" data="6"/>
				<item text="7" data="7"/>
				<item text="8" data="8"/>
				<item text="9" data="9"/>
				<item text="10" data="10"/>
			</choice>

			<choice name="music_volume"
				text_id="110051"
				style="button_choice_long"
				position="0,192"
				position_h="0,192"
				split="0.5"
				on_change="musicvol_changed">
				<item text="0" data="0"/>
				<item text="1" data="1"/>
				<item text="2" data="2"/>
				<item text="3" data="3"/>
				<item text="4" data="4"/>
				<item text="5" data="5"/>
				<item text="6" data="6"/>
				<item text="7" data="7"/>
				<item text="8" data="8"/>
				<item text="9" data="9"/>
				<item text="10" data="10"/>
			</choice>

			<choice name="brightness"
				text_id="110076"
				style="button_choice_long"
				position="0,224"
				position_h="0,224"
				split="0.5"
				on_change="brightness_changed">
				<item text="0" data="0"/>
				<item text="1" data="1"/>
				<item text="2" data="2"/>
				<item text="3" data="3"/>
				<item text="4" data="4"/>
				<item text="5" data="5"/>
				<item text="6" data="6"/>
				<item text="7" data="7"/>
				<item text="8" data="8"/>
				<item text="9" data="9"/>
				<item text="10" data="10"/>
			</choice>

			<!--<choice name="graphics_detail"
				text="GRAPHICS DETAIL"
				style="button_choice_long"
				position="0,224"
				position_h="0,224"
				split="0.5"
				on_change="graphics_detail_changed">
			</choice>-->

			<choice name="resolution"
				text="RESOLUTION"
				style="button_choice_long"
				position="0,256"
				position_h="0,256"
				split="0.5">
			</choice>

			<button name="reset_defaults"
				text="RESET TO DEFAULTS"
				style="button_normal_long"
				position="0,320"
				position_h="0,320"
				confirm="true"
				confirm_text_id="100081"
				on_accept="event_reset"
			/>

		</area>

	<area name="apply"
		hidden="1">
		<button name="apply_settings"
			confirm="true"
			confirm_text_id="100082"
			confirm_mode="yes_no"
			on_accept="event_apply"
			on_back="event_back"
		/>
	</area>

	<event name="goto_controls">$gui.page="controls";</event>
	<event name="goto_graphics">$gui.page="graphics";</event>

	<event name="invert_changed">$OPTIONS.invert_look=data;</event>
	<event name="x_sensit_changed">$OPTIONS.x_sensit=data;</event>
	<event name="y_sensit_changed">$OPTIONS.y_sensit=data;</event>
	<event name="sndvol_changed">$OPTIONS.snd_volume=data;</event>
	<event name="musicvol_changed">$OPTIONS.music_volume=data;</event>
	<event name="brightness_changed">$OPTIONS.brightness=data;</event>
	<event name="graphics_detail_changed">$OPTIONS.graphics_detail=data;</event>

	<event name="event_back_press">
		$CORE.OptionsBack="0";
	</event>

	<event name="event_back">
		$gui.back="1";
		$CORE.OptionsBack="1";
	</event>

	<event name="event_apply">
		$OPTIONS.resolution=resolution.data;
		$gui.back="1";
		$CORE.OptionsSave="1";
	</event>

	<event name="event_reset">
		$CORE.OptionsResetDefault="1";
		$CORE.OptionsLoad="1";
		invert_look.data=$OPTIONS.invert_look;
		x_sensit.data=$OPTIONS.x_sensit;
		y_sensit.data=$OPTIONS.y_sensit;
		snd_volume.data=$OPTIONS.snd_volume;
		music_volume.data=$OPTIONS.music_volume;
		brightness.data=$OPTIONS.brightness;
		graphics_detail.data=$OPTIONS.graphics_detail;
		resolution.data=$OPTIONS.resolution;
	</event>

	<action name="back" on_action="event_back_press"/>

</page>
