Skip to content

Commit

Permalink
Add Weather Maps.
Browse files Browse the repository at this point in the history
Thanks again to MacGyver.

Addresses Issue stoli#278.
  • Loading branch information
jingai committed Dec 26, 2014
1 parent b591ec8 commit 6bedaf8
Showing 1 changed file with 127 additions and 21 deletions.
148 changes: 127 additions & 21 deletions 720p/MyWeather.xml
Expand Up @@ -9,9 +9,9 @@
<texturenofocus>-</texturenofocus>
<include condition="!Skin.HasSetting(ViewLockdown)">OnLeft7000</include>
<onright>7000</onright>
<include condition="!Skin.HasSetting(ViewLockdown)">OnUp7000</include>
<ondown>7000</ondown>
<onclick />
<!-- for switching between weather maps -->
<onup>Control.Move(53,1)</onup>
<ondown>Control.Move(53,-1)</ondown>
</control>
<control type="group">
<visible>System.HasNetwork</visible>
Expand Down Expand Up @@ -4486,40 +4486,146 @@
</control>
</control>
</control>

<!-- Weather Map -->
<control type="multiimage">
<description>radar multiimage</description>
<visible>SubString(Skin.String(WeatherDisplay),WeatherMap)</visible>
<top>50</top>
<left>WeatherPanelLeft</left>
<height>WeatherMapHeight</height>
<width>WeatherMapWidth</width>
<imagepath>$INFO[Window.Property(MapPath)]</imagepath>
<aspectratio align="center" aligny="center">keep</aspectratio>
<timeperimage>1000</timeperimage>
<pauseatend>1000</pauseatend>
<fadetime>0</fadetime>
<randomize>false</randomize>
<loop>yes</loop>
<control type="group">
<visible>SubString(Skin.String(WeatherDisplay),WeatherMap) + !IsEmpty(Window.Property(Map.IsFetched))</visible>
<top>-10</top>
<left>350</left>
<control type="image">
<left>160</left>
<top>568</top>
<width>24</width>
<height>24</height>
<texture>Arrow2Up.png</texture>
<colordiffuse>ArrowDiffuse</colordiffuse>
</control>
<control type="label">
<description>heading label</description>
<left>75</left>
<top>565</top>
<width>500</width>
<height>30</height>
<font>METF_WeatherOutlookWeekend</font>
<label>$INFO[Container(53).ListItem.Label]</label>
<align>center</align>
<aligny>center</aligny>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
</control>
<control type="image">
<left>470</left>
<top>568</top>
<width>24</width>
<height>24</height>
<texture>Arrow2Down.png</texture>
<colordiffuse>ArrowDiffuse</colordiffuse>
</control>
<control type="list" id="53">
<left>30</left>
<top>70</top>
<width>590</width>
<height>470</height>
<onleft>7000</onleft>
<onright>7000</onright>
<viewtype label="535">list</viewtype>
<scrolltime>200</scrolltime>
<orientation>horizontal</orientation>
<visible>!IsEmpty(Window.Property(Map.IsFetched))</visible>
<itemlayout height="470" width="590">
</itemlayout>
<focusedlayout height="490" width="590">
<control type="image">
<description>layer image</description>
<left>0</left>
<top>0</top>
<width>590</width>
<height>470</height>
<texture>$INFO[ListItem.Icon]</texture>
<aspectratio>scale</aspectratio>
</control>
<control type="image">
<description>area image</description>
<left>0</left>
<top>0</top>
<width>590</width>
<height>470</height>
<texture>$INFO[ListItem.Property(Layer)]</texture>
<aspectratio>scale</aspectratio>
<colordiffuse>70FFFFFF</colordiffuse>
</control>
<control type="image">
<description>legend image</description>
<left>360</left>
<top>425</top>
<width>224</width>
<height>45</height>
<texture>$INFO[ListItem.Label2]</texture>
</control>
</focusedlayout>
<content>
<item>
<label>$INFO[Window.Property(Map.1.Heading)]</label>
<label2>$INFO[Window.Property(Map.1.Legend)]</label2>
<icon>$INFO[Window.Property(Map.1.Area)]</icon>
<property name="Layer">$INFO[Window.Property(Map.1.Layer)]</property>
<onclick>noop</onclick>
<visible>Weather.IsFetched + !IsEmpty(Window.Property(Map.1.Area)) + !IsEmpty(Window.Property(Map.IsFetched))</visible>
</item>
<item>
<label>$INFO[Window.Property(Map.2.Heading)]</label>
<label2>$INFO[Window.Property(Map.2.Legend)]</label2>
<icon>$INFO[Window.Property(Map.2.Area)]</icon>
<property name="Layer">$INFO[Window.Property(Map.2.Layer)]</property>
<onclick>noop</onclick>
<visible>Weather.IsFetched + !IsEmpty(Window.Property(Map.2.Area)) + !IsEmpty(Window.Property(Map.IsFetched))</visible>
</item>
<item>
<label>$INFO[Window.Property(Map.3.Heading)]</label>
<label2>$INFO[Window.Property(Map.3.Legend)]</label2>
<icon>$INFO[Window.Property(Map.3.Area)]</icon>
<property name="Layer">$INFO[Window.Property(Map.3.Layer)]</property>
<onclick>noop</onclick>
<visible>Weather.IsFetched + !IsEmpty(Window.Property(Map.3.Area)) + !IsEmpty(Window.Property(Map.IsFetched))</visible>
</item>
<item>
<label>$INFO[Window.Property(Map.4.Heading)]</label>
<label2>$INFO[Window.Property(Map.4.Legend)]</label2>
<icon>$INFO[Window.Property(Map.4.Area)]</icon>
<property name="Layer">$INFO[Window.Property(Map.4.Layer)]</property>
<onclick>noop</onclick>
<visible>Weather.IsFetched + !IsEmpty(Window.Property(Map.4.Area)) + !IsEmpty(Window.Property(Map.IsFetched))</visible>
</item>
<item>
<label>$INFO[Window.Property(Map.5.Heading)]</label>
<label2>$INFO[Window.Property(Map.5.Legend)]</label2>
<icon>$INFO[Window.Property(Map.5.Area)]</icon>
<property name="Layer">$INFO[Window.Property(Map.5.Layer)]</property>
<onclick>noop</onclick>
<visible>Weather.IsFetched + !IsEmpty(Window.Property(Map.5.Area)) + !IsEmpty(Window.Property(Map.IsFetched))</visible>
</item>
</content>
</control>
</control>

<!-- Alerts -->
<control type="textbox">
<top>560</top>
<top>590</top>
<left>300</left>
<width>680</width>
<height>140</height>
<height>110</height>
<align>center</align>
<label>$INFO[Window.Property(Alerts)]</label>
<font>METF_WeatherInfoTextSmall</font>
<include condition="!Skin.HasSetting(AutoScrollFast)">AutoScrollShort</include>
<include condition="Skin.HasSetting(AutoScrollFast)">AutoScrollShortFast</include>
<textcolor>WeatherDetails</textcolor>
<textcolor>WeatherHeading</textcolor>
<wrapmultiline>true</wrapmultiline>
<scroll>true</scroll>
</control>
</control>
<include>Global_ContextFilter</include>

<control type="group">
<include>Animation_NavMenu</include>
<include>NavMenuBackground</include>
Expand Down

0 comments on commit 6bedaf8

Please sign in to comment.