<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">1103</defaultcontrol>
	<onload condition="System.GetBool(gamesgeneral.showosdhelp) + !String.IsEmpty(Control.GetLabel(1101))">Notification($LOCALIZE[29915],$INFO[Control.GetLabel(1101)])</onload>
	<onload condition="System.GetBool(gamesgeneral.showosdhelp)">Dialog.Close(all,true)</onload>
	<onload condition="!System.GetBool(gamesgeneral.showosdhelp)">SetFocus(1103)</onload>
	<controls>
		<include>fadebackground</include>
		<control type="textbox" id="1101"><!-- Help text</description, hidden for notification call above -->
			<top>-300</top>
			<left>-300</left>
			<height>130</height>
			<font>apptv20</font>
		</control>
		<control type="group" id="1">
			<visible>!Window.IsActive(1154) + !Window.IsActive(GameVideoFilter) + !Window.IsActive(GameStretchMode) + !Window.IsActive(GameControllers) + !Window.IsActive(GameVideoRotation) + !Window.IsActive(GameAdvancedSettings) + !System.GetBool(gamesgeneral.showosdhelp)</visible>
			<left>566</left>
			<top>330</top>
			<control type="image"><!-- Dialog background -->
				<left>0</left>
				<top>0</top>
				<width>780</width>
				<height>435</height>
				<texture border="14">button-menu-background.png</texture>
			</control>
			<control type="label"><!-- Dialog heading -->
				<left>26</left>
				<top>18</top>
				<width>730</width>
				<height>45</height>
				<align>center</align>
				<label>$LOCALIZE[35221]</label>
			</control>
			<control type="button"><!-- Touch Close button -->
				<left>750</left>
				<top>-15</top>
				<width>48</width>
				<height>48</height>
				<texturefocus>touch-close.png</texturefocus>
				<texturenofocus>touch-close.png</texturenofocus>
				<onclick>Dialog.Close(gameosd)</onclick>
				<visible>$EXP[isEnabledTouch]</visible>
			</control>
			<control type="image">
				<left>26</left>
				<top>72</top>
				<width>730</width>
				<height>6</height>
				<texture>separator.png</texture>
			</control>
			<control type="group" id="2000">
				<left>26</left>
				<top>90</top>
				<animation effect="fade" time="200">VisibleChange</animation>
				<control type="list" id="1103">
					<width>730</width>
					<height>400</height>
					<orientation>vertical</orientation>
					<pagecontrol>2200</pagecontrol>
					<onright>Play</onright>
					<onleft>Play</onleft>
					<itemlayout height="80">
						<control type="image">
							<left>0</left>
							<top>0</top>
							<width>730</width>
							<height>80</height>
							<texture border="9">button-default.png</texture>
						</control>
						<control type="image">
							<left>8</left>
							<top>8</top>
							<width>64</width>
							<height>64</height>
							<info>ListItem.Icon</info>
						</control>
						<control type="label">
							<left>80</left>
							<width>620</width>
							<height>80</height>
							<info>ListItem.Label</info>
							<font>apptv20</font>
							<align>left</align>
							<aligny>center</aligny>
						</control>
						<control type="label">
							<right>20</right>
							<width>620</width>
							<height>80</height>
							<info>ListItem.Label2</info>
							<font>apptv20</font>
							<align>right</align>
							<aligny>center</aligny>
							<textcolor>grey</textcolor>
						</control>
					</itemlayout>
					<focusedlayout height="80">
						<control type="image">
							<left>0</left>
							<top>0</top>
							<width>730</width>
							<height>80</height>
							<texture border="9">button-default-focus.png</texture>
							<animation condition="!Control.HasFocus(1103)" effect="fade" start="100" end="60">Conditional</animation>
						</control>
						<control type="image">
							<left>8</left>
							<top>8</top>
							<width>64</width>
							<height>64</height>
							<info>ListItem.Icon</info>
						</control>
						<control type="label">
							<left>80</left>
							<width>620</width>
							<height>80</height>
							<info>ListItem.Label</info>
							<font>apptv20</font>
							<align>left</align>
							<aligny>center</aligny>
						</control>
						<control type="label">
							<right>20</right>
							<width>620</width>
							<height>80</height>
							<info>ListItem.Label2</info>
							<font>apptv20</font>
							<align>right</align>
							<aligny>center</aligny>
							<textcolor>grey</textcolor>
						</control>
					</focusedlayout>
					<content>
						<item id="2101"><!-- Pause / Resume button -->
							<label>$LOCALIZE[35224]</label>
							<label2>$LOCALIZE[31694]</label2>
							<icon>game-play.png</icon>
							<onclick>Play</onclick>
						</item>
						<item id="2102"><!-- Reset button -->
							<label>$LOCALIZE[13007]</label>
							<icon>game-reset.png</icon>
							<onclick>PlayerControl(Reset)</onclick>
						</item>
						<item id="2103"><!-- Stop button -->
							<label>$LOCALIZE[35222]</label>
							<label2>$LOCALIZE[31695]</label2>
							<icon>game-stop.png</icon>
							<onclick>Stop</onclick>
						</item>
						<item id="2108"><!-- Settings button -->
							<label>$LOCALIZE[5]</label>
							<icon>game-settings.png</icon>
							<onclick>SetProperty(Dialog.1.Label,$LOCALIZE[35225])</onclick>
							<onclick>SetProperty(Dialog.1.BuiltIn,ActivateWindow(GameVideoFilter))</onclick>
							<onclick>SetProperty(Dialog.2.Label,$LOCALIZE[629])</onclick>
							<onclick>SetProperty(Dialog.2.BuiltIn,ActivateWindow(GameViewMode))</onclick>
							<onclick>SetProperty(Dialog.3.Label,$LOCALIZE[13376])</onclick>
							<onclick>SetProperty(Dialog.3.BuiltIn,ActivateWindow(GameVolume))</onclick>
							<onclick>SetProperty(Dialog.4.Label,$LOCALIZE[35234])</onclick>
							<onclick>SetProperty(Dialog.4.BuiltIn,ActivateWindow(GameControllers))</onclick>
							<onclick>SetProperty(Dialog.5.Label,$LOCALIZE[35226])</onclick>
							<onclick>SetProperty(Dialog.5.BuiltIn,ActivateWindow(GameAdvancedSettings))</onclick>
							<onclick>RunScript(script.embuary.helper,action=createselect,header=$LOCALIZE[5])</onclick>
						</item>
					</content>
				</control>
			</control>
		</control>
	</controls>
</window>
