- April 27, 2009
- 778
- 333
- 31
- Home Country
- Netherlands
I made Maya compatible with World Weather on the basichome.
Change in the basichome.xml to this
And replace the basichome.forcast.weather.xml content with this:
Change in the basichome.xml to this
Code:
<!--Weather-->
<control>
<description>Weather image</description>
<type>image</type>
<id>1</id>
<posX>605</posX>
<posY>650</posY>
<height>90</height>
<width>90</width>
<texture>weather/128/#WorldWeather.TodayIconNumber.png</texture>
<visible>plugin.isenabled(World Weather)+string.contains(#maya.weather.visible,yes)</visible>
<animation effect="fade" start="0" end="100" time="400" delay="200">WindowOpen</animation>
<animation effect="fade" start="100" end="0" time="400" delay="200">WindowClose</animation>
</control>
<control>
<description>Temp label</description>
<type>label</type>
<posX>705</posX>
<posY>655</posY>
<width>500</width>
<label>#WorldWeather.TodayTemperature</label>
<font>Segoe Light22</font>
<visible>plugin.isenabled(World Weather)+string.contains(#maya.weather.visible,yes)</visible>
<animation effect="fade" start="0" end="100" time="400" delay="200">WindowOpen</animation>
<animation effect="fade" start="100" end="0" time="400" delay="200">WindowClose</animation>
</control>
And replace the basichome.forcast.weather.xml content with this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<window>
<controls>
<control>
<description>GROUP: Weather</description>
<type>group</type>
<dimColor>0xffffffff</dimColor>
<visible>[string.contains(#bgimage1,Weather)+control.isvisible(1201)] | [string.contains(#bgimage2,Weather)+control.isvisible(1202)]+ !control.hasfocus(2)+!control.hasfocus(3)+!control.hasfocus(4)+!control.hasfocus(5)</visible>
<animation effect="fade" start="100" end="0" time="250" reversible="false">Hidden</animation>
<animation effect="fade" start="0" end="100" delay="700" time="500" reversible="false">Visible</animation>
<animation effect="fade" start="0" end="100" time="400" delay="200">WindowOpen</animation>
<animation effect="slide" end="300,0" time="1500" acceleration="-0.1" reversible="false">Hidden</animation>
<animation effect="slide" start="300,0" end="0,0" time="1000" acceleration="-0.1" reversible="false">Visible</animation>
<animation effect="fade" start="0" end="100" time="400" delay="200">WindowOpen</animation>
<animation effect="fade" start="100" end="0" time="400" delay="200">WindowClose</animation>
<control>
<description>GROUP: FULL WEATHER ICONS (static)</description>
<type>group</type>
<dimColor>0xffffffff</dimColor>
<visible>[string.contains(#bgimage1,Weather)+control.isvisible(1201)] | [string.contains(#bgimage2,Weather)+control.isvisible(1202)]</visible>
<animation effect="fade" delay="1000" time="300" tween="linear">Visible</animation>
<control>
<description>DAY 0 ICON</description>
<id>0</id>
<type>image</type>
<texture>weather/128/#WorldWeather.TodayIconNumber.png</texture>
<posX>935</posX>
<posY>100</posY>
<height>100</height>
<width>100</width>
</control>
<control>
<description>DAY 1 ICON</description>
<id>0</id>
<type>image</type>
<texture>weather/128/#WorldWeather.ForecastDay1IconNumber.png</texture>
<posX>935</posX>
<posY>210</posY>
<height>100</height>
<width>100</width>
</control>
<control>
<description>DAY 2 ICON</description>
<id>0</id>
<type>image</type>
<texture>weather/128/#WorldWeather.ForecastDay2IconNumber.png</texture>
<posX>935</posX>
<posY>330</posY>
<height>100</height>
<width>100</width>
</control>
<control>
<description>DAY 3 ICON</description>
<id>0</id>
<type>image</type>
<texture>weather/128/#WorldWeather.ForecastDay3IconNumber.png</texture>
<posX>935</posX>
<posY>450</posY>
<height>100</height>
<width>100</width>
</control>
<control>
<description>DAY 4 ICON</description>
<id>0</id>
<type>image</type>
<texture>weather/128/#WorldWeather.ForecastDay4IconNumber.png</texture>
<posX>935</posX>
<posY>570</posY>
<height>100</height>
<width>100</width>
</control>
</control>
<control>
<description>Location</description>
<type>fadelabel</type>
<id>0</id>
<posX>1005</posX>
<posY>65</posY>
<width>320</width>
<align>left</align>
<label>#WorldWeather.Location</label>
<font>Segoe Light18</font>
<textcolor>ff6aa5cb</textcolor>
</control>
<control>
<description>GROUP: FULL WEATHER</description>
<type>group</type>
<animation effect="fade" delay="1000" time="300" tween="linear">Visible</animation>
<dimColor>0xffffffff</dimColor>
<!-- Day 1 -->
<control>
<description>DAY 1 LABEL</description>
<type>fadelabel</type>
<id>0</id>
<posX>1065</posX>
<posY>120</posY>
<align>left</align>
<label>#(string.rtrim(L(143),':'))</label>
<font>Segoe Light16</font>
<textcolor>White</textcolor>
</control>
<control>
<description>DAY 1 TEMP</description>
<type>fadelabel</type>
<id>0</id>
<posX>1315</posX>
<posY>118</posY>
<align>right</align>
<label>#WorldWeather.TodayTemperature</label>
<font>Segoe Light18</font>
<textcolor>ffffffff</textcolor>
</control>
<control>
<description>DAY 1 GENERAL WEATHER</description>
<type>fadelabel</type>
<id>0</id>
<posX>1065</posX>
<posY>155</posY>
<width>200</width>
<height>50</height>
<font>Segoe Light14</font>
<align>left</align>
<textcolor>85cffe</textcolor>
<label>#WorldWeather.TodayCondition</label>
</control>
<!-- Day 2 -->
<control>
<description>DAY 2 LABEL</description>
<type>fadelabel</type>
<id>0</id>
<posX>1065</posX>
<posY>230</posY>
<align>left</align>
<label>#WorldWeather.ForecastDay1Day</label>
<font>Segoe Light16</font>
<textcolor>White</textcolor>
</control>
<control>
<description>DAY 2 maxtemp VALUE</description>
<type>fadelabel</type>
<id>0</id>
<posX>1315</posX>
<posY>228</posY>
<align>right</align>
<label>#WorldWeather.ForecastDay1High</label>
<font>Segoe Light18</font>
<textcolor>ffffffff</textcolor>
</control>
<control>
<description>DAY 2 mintemp VALUE</description>
<type>fadelabel</type>
<id>0</id>
<posX>1315</posX>
<posY>260</posY>
<align>right</align>
<label>#WorldWeather.ForecastDay1Low</label>
<font>Segoe Light18</font>
<textcolor>85cffe</textcolor>
</control>
<control>
<description>DAY 2 WEATHER</description>
<type>fadelabel</type>
<id>0</id>
<posX>1065</posX>
<posY>265</posY>
<width>160</width>
<height>50</height>
<label>#WorldWeather.ForecastDay1Condition</label>
<font>Segoe Light14</font>
<align>left</align>
<textcolor>85cffe</textcolor>
</control>
<!-- Day 3 -->
<control>
<description>DAY 3 LABEL</description>
<type>fadelabel</type>
<id>0</id>
<posX>1065</posX>
<posY>350</posY>
<align>left</align>
<label>#WorldWeather.ForecastDay2Day</label>
<font>Segoe Light16</font>
<textcolor>White</textcolor>
</control>
<control>
<description>DAY 3 maxtemp VALUE</description>
<type>fadelabel</type>
<id>0</id>
<posX>1315</posX>
<posY>348</posY>
<align>right</align>
<label>#WorldWeather.ForecastDay2High</label>
<font>Segoe Light18</font>
<textcolor>ffffffff</textcolor>
</control>
<control>
<description>DAY 3 temp VALUE</description>
<type>fadelabel</type>
<id>0</id>
<posX>1315</posX>
<posY>380</posY>
<align>right</align>
<label>#WorldWeather.ForecastDay2Low</label>
<font>Segoe Light18</font>
<textcolor>85cffe</textcolor>
</control>
<control>
<description>DAY 3 WEATHER</description>
<type>fadelabel</type>
<id>0</id>
<posX>1065</posX>
<posY>385</posY>
<width>170</width>
<height>50</height>
<label>#WorldWeather.ForecastDay2Condition</label>
<font>Segoe Light14</font>
<align>left</align>
<textcolor>85cffe</textcolor>
</control>
<!-- Day 4 -->
<control>
<description>DAY 4 LABEL</description>
<type>fadelabel</type>
<id>0</id>
<posX>1065</posX>
<posY>470</posY>
<align>left</align>
<label>#WorldWeather.ForecastDay3Day</label>
<font>Segoe Light16</font>
<textcolor>White</textcolor>
</control>
<control>
<description>DAY 4 maxtemp VALUE</description>
<type>fadelabel</type>
<id>0</id>
<posX>1315</posX>
<posY>468</posY>
<align>right</align>
<label>#WorldWeather.ForecastDay3High</label>
<font>Segoe Light18</font>
<textcolor>ffffffff</textcolor>
</control>
<control>
<description>DAY 4 mintemp VALUE</description>
<type>fadelabel</type>
<id>0</id>
<posX>1315</posX>
<posY>500</posY>
<align>right</align>
<label>#WorldWeather.ForecastDay3Low</label>
<font>Segoe Light18</font>
<textcolor>85cffe</textcolor>
</control>
<control>
<description>DAY 4 WEATHER</description>
<type>fadelabel</type>
<id>0</id>
<posX>1065</posX>
<posY>505</posY>
<width>170</width>
<height>50</height>
<label>#WorldWeather.ForecastDay3Condition</label>
<font>Segoe Light14</font>
<align>left</align>
<textcolor>85cffe</textcolor>
</control>
<!-- Day 5 -->
<control>
<description>DAY 5 LABEL</description>
<type>fadelabel</type>
<id>0</id>
<posX>1065</posX>
<posY>590</posY>
<align>left</align>
<label>#WorldWeather.ForecastDay4Day</label>
<font>Segoe Light16</font>
<textcolor>White</textcolor>
</control>
<control>
<description>DAY 5 maxtemp VALUE</description>
<type>fadelabel</type>
<id>0</id>
<posX>1315</posX>
<posY>588</posY>
<align>right</align>
<label>#WorldWeather.ForecastDay4High</label>
<font>Segoe Light18</font>
<textcolor>ffffffff</textcolor>
</control>
<control>
<description>DAY 5 mintemp VALUE</description>
<type>fadelabel</type>
<id>0</id>
<posX>1315</posX>
<posY>620</posY>
<align>right</align>
<label>#WorldWeather.ForecastDay4Low</label>
<font>Segoe Light18</font>
<textcolor>85cffe</textcolor>
</control>
<control>
<description>DAY 5 WEATHER</description>
<type>fadelabel</type>
<id>0</id>
<posX>1065</posX>
<posY>625</posY>
<width>170</width>
<height>50</height>
<label>#WorldWeather.ForecastDay4Condition</label>
<font>Segoe Light14</font>
<align>left</align>
<textcolor>85cffe</textcolor>
</control>
</control>
</control>
</controls>
</window>