<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">5000</defaultcontrol>
  <menucontrol>9000</menucontrol>
	<backgroundcolor>bgcolor</backgroundcolor>
	<onload condition="String.Contains(Window(Weather).Property(Current.ConditionIcon),na) | [String.IsEmpty(Window(Weather).Property(Current.Condition)) | String.IsEmpty(Window(Weather).Property(Location))] + String.IsEmpty(Control.GetLabel(3))">ActivateWindow(1110)</onload>
	<onload condition="!System.HasAddon(resource.images.weathericons.outline-hd) + !String.IsEmpty(Weather.Plugin)">InstallAddon(resource.images.weathericons.outline-hd)</onload>
	<onunload>ClearProperty(weatherlist)</onunload>
	<controls>
		<include>BackgroundItemsPVR</include>
		<include>WeatherDetails</include>
		<include>CommonDialogsFadeOutBG</include>
		<include>CommonNowPlaying</include>


		<!-- ================ -->
		<!-- Top Options Menu -->
		<!-- ================ -->
		<control type="group"  id="9000">
			<left>30</left>
			<top>25</top>
			<include>ShutdownMenuAnimation</include>
			<include>OptionsTopMenuAnimation</include>
			<include>OptionsTopMenuHeader</include>
			<!-- Main Options -->
			<control type="grouplist" id="9111">
				<onright>5000</onright>
				<include>OptionsTopMenuVars</include>
				<control type="button" id="3">
					<description>Location</description>
					<visible>false</visible>
				</control>
				<control type="button" id="260">
					<description>Location</description>
					<label>$LOCALIZE[31233]: $INFO[Control.GetLabel(3)]</label>
					<include>TopLeftMenusButton</include>
					<onclick>Weather.LocationNext</onclick>
					<onclick>Action(right)</onclick>
				</control>
				<control type="button" id="262">
					<description>Fanart</description>
					<label>$LOCALIZE[20445]: $VAR[WeatherFanartName]</label>
					<include>TopLeftMenusButton</include>
					<onclick>Action(right)</onclick>
					<onclick condition="!System.HasAddon(script.image.resource.select) + !String.IsEmpty(Weather.Plugin)">InstallAddon(script.image.resource.select)</onclick>
					<onclick>AlarmClock(SelectFanart,RunScript(script.image.resource.select,property=WeatherFanart&amp;type=resource.images.weatherfanart),00:00,silent)</onclick>
				</control>
				<control type="button" id="2">
					<description>Refresh</description>
					<label>$LOCALIZE[103]</label>
					<include>TopLeftMenusButton</include>
					<onclick>Action(right)</onclick>
				</control>
				<control type="button" id="265">
					<description>Addon Settings</description>
					<label>$LOCALIZE[10140]</label>
					<include>TopLeftMenusButton</include>
					<onclick>Action(right)</onclick>
					<onclick>Addon.OpenSettings($INFO[Weather.Plugin])</onclick>
				</control>
				<control type="button" id="266">
					<description>Weather Settings</description>
					<label>$LOCALIZE[5]</label>
					<include>TopLeftMenusButton</include>
					<onclick>Action(right)</onclick>
					<onclick>ActivateWindow(ServiceSettings,weather)</onclick>
				</control>
				<include>OptionsTopMenuEnd</include>
			</control>
		</control>

		<!-- ================ -->
		<!-- Top Content Info -->
		<!-- ================ -->
		<control type="group">
			<left>45</left>
			<top>25</top>
			<include>ShutdownMenuAnimation</include>
			<include>InfoDialogs_ContentInfoAnimation</include>
			<include>VisibleHiddenSlideAnimation</include>
			<visible>!ControlGroup(9000).HasFocus</visible>
			<control type="grouplist">
				<include content="CommonTopInfoGroupList">
					<param name="include" value="Logo"/>
				</include>
				<include>OpenCloseSlideAnimationTwo</include>
				<visible>![String.IsEmpty(Window(Weather).Property(Current.Condition)) | String.IsEmpty(Window(Weather).Property(Location))] + !String.IsEmpty(Control.GetLabel(3)) + !String.Contains(Window(Weather).Property(Current.ConditionIcon),na)</visible>
				<control type="label">
					<include>TopBigLabel</include>
					<label fallback="8">$INFO[Window.Property(Location)]</label>
				</control>
			</control>
			<control type="grouplist">
				<include content="CommonTopInfoGroupList">
					<param name="include" value="Logo"/>
				</include>
				<include>OpenCloseSlideAnimationTwo</include>
				<visible>[String.IsEmpty(Window(Weather).Property(Current.Condition)) | String.IsEmpty(Window(Weather).Property(Location))] | String.IsEmpty(Control.GetLabel(3)) | String.Contains(Window(Weather).Property(Current.ConditionIcon),na)</visible>
				<control type="label">
					<include>TopBigLabel</include>
					<label>$INFO[Control.GetLabel(3)]...</label>
					<visible>!String.IsEmpty(Control.GetLabel(3))</visible>
				</control>
				<control type="label">
					<include>TopBigLabel</include>
					<label>$LOCALIZE[8]</label>
					<visible>String.IsEmpty(Control.GetLabel(3))</visible>
				</control>
			</control>
		</control>

		<!-- Fetching Info  -->
		<control type="label">
			<description>fetching label</description>
			<left>45</left>
			<top>270</top>
			<width>1200</width>
			<height>40</height>
			<font>FontSize_48</font>
			<textcolor>viewsinfo</textcolor>
			<align>center</align>
			<aligny>center</aligny>
			<label>$LOCALIZE[411]</label>
			<visible>[String.IsEmpty(Window(Weather).Property(Current.Condition)) | String.IsEmpty(Window(Weather).Property(Location))] + !String.IsEmpty(Control.GetLabel(3)) + !String.Contains(Window(Weather).Property(Current.ConditionIcon),na)</visible>
			<include>OpenCloseSlideAnimationTwo</include>
			<include>TopRightSlideAnimations</include>
		</control>
		<control type="label">
			<description>location label</description>
			<left>30</left>
			<top>305</top>
			<width>1200</width>
			<height>120</height>
			<font>FontSize_80</font>
			<align>center</align>
			<aligny>center</aligny>
			<label>$INFO[Control.GetLabel(3)]</label>
			<visible>[String.IsEmpty(Window(Weather).Property(Current.Condition)) | String.IsEmpty(Window(Weather).Property(Location))] + !String.Contains(Window(Weather).Property(Current.ConditionIcon),na)</visible>
			<include>OpenCloseSlideAnimationTwo</include>
			<include>TopRightSlideAnimations</include>
		</control>








<!-- ================= -->
<!-- ===== DEBUG ===== -->
<!-- ================= -->
	<control type="grouplist">
	  <top>90</top>
		<visible>Skin.HasSetting(ShowDebugInfo)</visible>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]Condition:[/COLOR] $INFO[Window(Weather).Property(Current.Condition)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]Temperature:[/COLOR] $INFO[Window(Weather).Property(Current.Temperature)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]UVIndex:[/COLOR] $INFO[Window(Weather).Property(Current.UVIndex)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]Wind:[/COLOR] $INFO[Window(Weather).Property(Current.Wind)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]WindDirection:[/COLOR] $INFO[Window(Weather).Property(Current.WindDirection)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]WindSpeed:[/COLOR] $INFO[Window(Weather).Property(Current.WindSpeed)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]Outlook:[/COLOR] $INFO[Window(Weather).Property(Current.Outlook)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]OutlookIcon:[/COLOR] $INFO[Window(Weather).Property(Current.OutlookIcon)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]HighTemperature:[/COLOR] $INFO[Window(Weather).Property(Current.HighTemperature)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]LowTemperature:[/COLOR] $INFO[Window(Weather).Property(Current.LowTemperature)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]FeelsLike:[/COLOR] $INFO[Window(Weather).Property(Current.FeelsLike)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]DewPoint:[/COLOR] $INFO[Window(Weather).Property(Current.DewPoint)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]Humidity:[/COLOR] $INFO[Window(Weather).Property(Current.Humidity)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]Cloudiness:[/COLOR] $INFO[Window(Weather).Property(Current.Cloudiness)]</label>
		</control>
		<control type="label">
		  <textcolor>FF00FF00</textcolor>
		  <font>FontSize_18B</font>
		  <align>right</align>
		  <label>[COLOR=FFA939FF]FanartCode:[/COLOR] $INFO[Window(Weather).Property(Current.FanartCode)]</label>
		</control>
	</control>


	</controls>
</window>

