<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">20000</defaultcontrol>
	<onunload>RunScript(script.skinshortcuts,type=buildxml&amp;mode=single&amp;options=clonewidgets&amp;mainmenuID=20)</onunload>
	<controls>

		<control type="group">
			<include>CommonDialogsAnimation</include>
			<visible>String.IsEmpty(Window.Property(additionalDialog)) + !Window.IsActive(1119) + !Window.IsActive(ShutdownMenu) + !Window.IsActive(favourites) + !Window.IsActive(playercontrols) + !Window.IsActive(SelectDialog) + !Window.IsActive(DialogSelect.xml) + !Window.IsActive(FileBrowser) + !Window.IsActive(VirtualKeyboard) + !Window.IsActive(progressdialog) + !Window.IsActive(okdialog) + !Window.IsActive(yesnodialog)</visible>
			<include content="AddonSettingsPanel">
				<param name="headlabel_id" value="500"/>
			</include>

			<control type="group"  id="20000">
				<!-- Left Part -->
				<control type="list" id="211">
					<left>188</left>
					<top>166</top>
					<width>250</width>
					<height>400</height>
					<itemgap>0</itemgap>
					<scrolltime tween="quadratic" easing="out">200</scrolltime>
					<itemlayout height="50" width="250">
						<control type="label">
							<right>10</right>
							<top>0</top>
							<width>250</width>
							<height>50</height>
							<font>FontSize_22</font>
							<textcolor>viewsinfo</textcolor>
							<selectedcolor>$VAR[Text.GlobalColor]</selectedcolor>
							<align>right</align>
							<label>$INFO[ListItem.Label]</label>
							<animation effect="fade" start="100" end="50" condition="String.IsEqual(ListItem.Property(skinshortcuts-disabled),True)">Conditional</animation>
						</control>
					</itemlayout>
					<focusedlayout height="50" width="250">
						<control type="image">
							<left>0</left>
							<top>0</top>
							<width>250</width>
							<height>50</height>
							<texture>windows/settings/settings_left_fo.png</texture>
							<animation effect="fade" start="100" end="0" condition="!Control.HasFocus(211) + !Control.HasFocus(399)">conditional</animation>
						</control>
						<control type="image">
							<left>0</left>
							<top>0</top>
							<width>250</width>
							<height>50</height>
							<texture background="true" border="2">dialogs/selectdialog/selected.png</texture>
							<visible>!Control.HasFocus(399)</visible>
						</control>
						<control type="label">
							<right>10</right>
							<top>0</top>
							<width>250</width>
							<height>50</height>
							<font>FontSize_22</font>
							<align>right</align>
							<label>$INFO[ListItem.Label]</label>
							<animation effect="fade" start="100" end="50" condition="!Control.HasFocus(211) + !Control.HasFocus(399)">conditional</animation>
							<animation effect="fade" start="100" end="50" condition="!String.IsEqual(ListItem.Property(skinshortcuts-disabled),false)">Conditional</animation>
							<animation effect="fade" start="100" end="50" condition="[String.IsEqual(ListItem.Property(skinshortcuts-disabled),true) + [Control.HasFocus(211) | Control.HasFocus(399)]]">Conditional</animation>
						</control>
					</focusedlayout>
				</control>
				<control type="grouplist" id="20100">
					<left>188</left>
					<top>166</top>
					<width>250</width>
					<height>400</height>
					<itemgap>0</itemgap>
					<onleft>10000</onleft>
					<onright>20200</onright>
					<onup>Control.Move(211,-1)</onup>
					<ondown>Control.Move(211,1)</ondown>
					<orientation>horizontal</orientation>
					<scrolltime tween="quadratic" easing="out">200</scrolltime>
					<onback>RunScript(script.skinshortcuts,type=buildxml&amp;mode=single&amp;options=clonewidgets&amp;mainmenuID=20)</onback>
					<animation effect="slide" end="0,50" condition="Integer.IsGreater(Container(211).Position,0)">Conditional</animation>
					<animation effect="slide" end="0,50" condition="Integer.IsGreater(Container(211).Position,1)">Conditional</animation>
					<animation effect="slide" end="0,50" condition="Integer.IsGreater(Container(211).Position,2)">Conditional</animation>
					<animation effect="slide" end="0,50" condition="Integer.IsGreater(Container(211).Position,3)">Conditional</animation>
					<animation effect="slide" end="0,50" condition="Integer.IsGreater(Container(211).Position,4)">Conditional</animation>
					<animation effect="slide" end="0,50" condition="Integer.IsGreater(Container(211).Position,5)">Conditional</animation>
					<animation effect="slide" end="0,50" condition="Integer.IsGreater(Container(211).Position,6)">Conditional</animation>
					<animation effect="slide" end="0,50" condition="Integer.IsGreater(Container(211).Position,7)">Conditional</animation>
					<animation effect="slide" end="0,50" condition="Integer.IsGreater(Container(211).Position,8)">Conditional</animation>
					<control type="button" id="399">
						<width>20</width>
						<height>20</height>
						<texturefocus/>
						<!--
						<texturefocus>icons/more.png</texturefocus>
						<texturenofocus colordiffuse="viewsinfo">icons/more.png</texturenofocus>
						<onclick>SetProperty(showoptions,true)</onclick>
						<onfocus>ClearProperty(showoptions)</onfocus>
						-->
					</control>
				</control>

				<!-- Right Part -->
				<control type="grouplist" id="20200">
					<left>450</left>
					<top>166</top>
					<width>645</width>
					<height>400</height>
					<itemgap>0</itemgap>
					<onleft>20100</onleft>
					<onright>10000</onright>
					<onback>RunScript(script.skinshortcuts,type=buildxml&amp;mode=single&amp;options=clonewidgets&amp;mainmenuID=20)</onback>
					<!-- 
					<visible>!String.IsEqual(Window.Property(showoptions),true)</visible>
					<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					-->
					<control type="label" id="1">
						<include>SkinShortcutsDialogLabel</include>
						<label>Shortcut</label>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<control type="button" id="401">
						<description>Change Shortcut</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$ADDON[script.skinshortcuts 32048]</label>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<control type="button" id="305">
						<description>Change Label</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$ADDON[script.skinshortcuts 32025]</label>
						<label2>[COLOR=$VAR[Text.GlobalColor]]$INFO[Container(211).ListItem.Label][/COLOR]</label2>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<control type="button" id="307">
						<description>Change Action</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$ADDON[script.skinshortcuts 32027]</label>
						<label2>[COLOR=$VAR[Text.GlobalColor]]$INFO[Container(211).ListItem.Property(displaypath)][/COLOR]</label2>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<!-- Submenu -->
					<control type="label" id="2">
						<include>SkinShortcutsDialogLabel</include>
						<label>$LOCALIZE[31224]</label>
						<visible>String.IsEqual(Window.Property(groupname),mainmenu)</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<control type="button" id="405">
						<description>Edit Submenu</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$ADDON[script.skinshortcuts 32072]</label>
						<visible>String.IsEqual(Window.Property(groupname),mainmenu)</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<!-- Widget -->
					<control type="label" id="3">
						<include>SkinShortcutsDialogLabel</include>
						<label>$ADDON[script.skinshortcuts 32099]</label>
						<visible>String.IsEqual(Window.Property(groupname),mainmenu)</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<control type="button" id="312">
						<description>Select Widget</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$ADDON[script.skinshortcuts 32044]</label>
						<label2>[COLOR=$VAR[Text.GlobalColor]]$INFO[Container(211).ListItem.Property(widgetName)][/COLOR]</label2>
						<onclick>SetProperty(customProperty,widgetRatio)</onclick>
						<onclick>SendClick(404)</onclick>
						<onclick condition="String.IsEmpty(Skin.String(RSSVideoFeed.Type))">Skin.SetString(RSSVideoFeed.Type,User)</onclick>
						<visible>String.IsEqual(Window.Property(groupname),mainmenu)</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<control type="button" id="30002">
						<description>Custom Items Widget</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$LOCALIZE[31377]</label>
						<onclick>ActivateWindow(1119)</onclick>
						<visible>String.IsEqual(Window.Property(groupname),mainmenu) + String.IsEqual(Container(211).ListItem.Property(Widget),CustomItems)</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<control type="button" id="30003">
						<description>RSS Video Feed</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$LOCALIZE[31097]</label>
						<label2>[COLOR=$VAR[Text.GlobalColor]]$INFO[Skin.String(RSSVideoFeed.Label)][/COLOR]</label2>
						<onclick>SetProperty(SelectRSSFeed,1,Home)</onclick>
						<include>Select_RSSVideoFeed</include>
						<onclick>RunScript(script.embuary.helper,action=createselect,header=$LOCALIZE[31255],usedetails=true,window=Home)</onclick>
						<visible>[System.HasAddon(plugin.video.youtube) + System.HasAddon(script.embuary.helper)] + String.IsEqual(Window.Property(groupname),mainmenu) + String.IsEqual(Container(211).ListItem.Property(widget),RSSVideoFeeds)</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<control type="button" id="30001">
						<description>Widget Aspect Ratio</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$LOCALIZE[31207]</label>
						<label2>[COLOR=$VAR[Text.GlobalColor]]$INFO[Container(211).ListItem.Property(widgetRatio)][/COLOR]</label2>
						<visible>String.IsEqual(Window.Property(groupname),mainmenu) + ![String.IsEmpty(Container(211).ListItem.Property(widget)) | String.Contains(Container(211).ListItem.Property(widgetPath),studios.xml) | String.Contains(Container(211).ListItem.Property(widgetPath),genres.xml)]</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<control type="button" id="30006">
						<description>Widget SortBy</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$LOCALIZE[31132]</label>
						<label2>[COLOR=$VAR[Text.GlobalColor]]$VAR[WidgetSortΒyLabel2][/COLOR]</label2>
						<visible>String.IsEqual(Window.Property(groupname),mainmenu) + !String.IsEmpty(Container(211).ListItem.Property(widget))</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<control type="button" id="30007">
						<description>Widget OrderBy</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$LOCALIZE[21429]</label>
						<label2>[COLOR=$VAR[Text.GlobalColor]]$VAR[WidgetOrderByLabel2][/COLOR]</label2>
						<onclick>SetProperty(customProperty,widgetOrderBy)</onclick>
						<onclick condition="String.IsEqual(Container(211).ListItem.Property(widgetOrderBy),descending)">ClearProperty(customValue)</onclick>
						<onclick condition="String.IsEqual(Container(211).ListItem.Property(widgetOrderBy),ascending)">SetProperty(customValue,descending)</onclick>
						<onclick condition="String.IsEmpty(Container(211).ListItem.Property(widgetOrderBy))">SetProperty(customValue,ascending)</onclick>
						<onclick condition="String.IsEqual(Container(211).ListItem.Property(widgetOrderBy),descending)">ClearProperty(customValue)</onclick>
						<onclick>SendClick(404)</onclick>
						<visible>String.IsEqual(Window.Property(groupname),mainmenu) + !String.IsEmpty(Container(211).ListItem.Property(widget))</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<control type="button" id="30008">
						<description>Widget Limit</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$LOCALIZE[21427]</label>
						<label2>[COLOR=$VAR[Text.GlobalColor]]$INFO[Container(211).ListItem.Property(widgetLimit),, $LOCALIZE[31028]][/COLOR]</label2>
						<visible>String.IsEqual(Window.Property(groupname),mainmenu) + !String.IsEmpty(Container(211).ListItem.Property(widget))</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<control type="radiobutton" id="30004">
						<description>AutoHide Widget</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$LOCALIZE[31208]</label>
						<onclick>SetProperty(customProperty,widgetAutoHide)</onclick>
						<onclick condition="!String.IsEqual(Container(211).ListItem.Property(widgetAutoHide),ON)">SetProperty(customValue,ON)</onclick>
						<onclick condition="String.IsEqual(Container(211).ListItem.Property(widgetAutoHide),ON)">SetProperty(customValue,OFF)</onclick>
						<onclick>SendClick(404)</onclick>
						<selected>String.IsEqual(Container(211).ListItem.Property(widgetAutoHide),ON)</selected>
						<visible>String.IsEqual(Window.Property(groupname),mainmenu) + !String.IsEmpty(Container(211).ListItem.Property(widget))</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<!-- Backgrounds -->
					<control type="label" id="4">
						<include>SkinShortcutsDialogLabel</include>
						<label>$LOCALIZE[33069]</label>
						<visible>String.IsEqual(Window.Property("groupname"),mainmenu)</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
					</control>
					<control type="button" id="310">
						<description>Background</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$ADDON[script.skinshortcuts 32045]</label>
						<label2>[COLOR=$VAR[Text.GlobalColor]]$INFO[Container(211).ListItem.Property(backgroundName)][/COLOR]</label2>
						<visible>String.IsEqual(Window.Property(groupname),mainmenu)</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
						<enable>![String.StartsWith(Container(211).ListItem.Property(widgetRatio),Fanart/) + !String.IsEqual(Container(211).ListItem.Property(widgetAutoHide),ON)]</enable>
					</control>
					<control type="radiobutton" id="30005">
						<description>Animated Background</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$LOCALIZE[31313]</label>
						<onclick>Skin.ToggleSetting(HomeBG-Animation)</onclick>
						<selected>Skin.HasSetting(HomeBG-Animation)</selected>
						<visible>String.IsEqual(Window.Property(groupname),mainmenu)</visible>
						<visible>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</visible>
						<enable>![String.StartsWith(Container(211).ListItem.Property(widgetRatio),Fanart/) + !String.IsEqual(Container(211).ListItem.Property(widgetAutoHide),ON)] + !String.IsEmpty(Container(211).ListItem.Property(backgroundName))</enable>
					</control>

					<!-- Options -->
					<control type="label" id="5">
						<include>SkinShortcutsDialogLabel</include>
						<label>$LOCALIZE[33063]</label>
					</control>
					<control type="button" id="303">
						<description>Move UP</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$ADDON[script.skinshortcuts 32002]</label>
					</control>
					<control type="button" id="304">
						<description>Move DOWN</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$ADDON[script.skinshortcuts 32003]</label>
					</control>
					<control type="button" id="301">
						<description>Add</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$ADDON[script.skinshortcuts 32000]</label>
					</control>
					<control type="button" id="302">
						<description>Delete</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$ADDON[script.skinshortcuts 32001]</label>
					</control>
					<control type="togglebutton" id="313">
						<description>Enable/Disable</description>
						<include>SkinShortcutsDialogButton</include>
						<label>$LOCALIZE[24022]</label>
						<altlabel>$LOCALIZE[24021]</altlabel>
						<usealttexture>!String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)</usealttexture>
					</control>
				</control>
			</control>

			<!-- Buttons Area -->
			<control type="grouplist" id="10000">
				<left>165</left>
				<top>588</top>
				<width>900</width>
				<itemgap>-20</itemgap>
				<onup>20000</onup>
				<ondown>20000</ondown>
				<orientation>horizontal</orientation>
				<control type="button" id="10">
					<description>Save</description>
					<texturefocus border="39,3,39,39">dialogs/buttons/save_focus_two.png</texturefocus>
					<texturenofocus border="39,3,39,39">dialogs/buttons/save_nofocus_two.png</texturenofocus>
					<include>DialogsButtonsTextHorizontal</include>
					<onclick>back</onclick>
					<label>$LOCALIZE[190]</label>
				</control>
				<control type="button" id="11">
					<description>Reset</description>
					<texturefocus border="39,3,39,39">dialogs/buttons/settings_focus_two.png</texturefocus>
					<texturenofocus border="39,3,39,39">dialogs/buttons/settings_nofocus_two.png</texturenofocus>
					<include>DialogsButtonsTextHorizontal</include>
					<onclick>RunScript(script.skinshortcuts,type=resetall)</onclick>
					<onclick>back</onclick>
					<label>$LOCALIZE[13007]</label>
				</control>
			</control>
		</control>

		<control type="button" id="404">
			<visible>false</visible>
		</control>
	</controls>
</window>
