2012-06-20, 23:29
Hi
I'm playing around with the confluence home.xml and learning loads, but I'm now stumped when it comes to animations.
I'm trying to get Highlight.png to slid out as i hover over each choice on my home screen.
I can get Highlight.png to Slide out when i hover over the 1st item on my menu but when i go to hover over the second item Highlight.png doesn't slide out, what am i doing wrong.
I thought it would be something simple like but i was wrong :
Rest of my code:
I'm playing around with the confluence home.xml and learning loads, but I'm now stumped when it comes to animations.
I'm trying to get Highlight.png to slid out as i hover over each choice on my home screen.
I can get Highlight.png to Slide out when i hover over the 1st item on my menu but when i go to hover over the second item Highlight.png doesn't slide out, what am i doing wrong.
I thought it would be something simple like but i was wrong :
Code:
<control type="image"> <!--Highlight-->
<posx>0</posx>
<posy>60</posy>
<width>1280</width>
<height>80</height>
<texture>HighLight.png</texture>
<animation effect="slide" start="-500,0" end="0,0" time="300" condition="Container(9000).Row(0)">conditional</animation>
<animation effect="slide" start="-500,0" end="0,0" time="300" condition="Container(9000).Row(1)">conditional</animation>
</control>
Rest of my code:
Code:
<!--Home Layout-->
<!--Menu-->
<control type="list" id="9000">
<!-- <hitrect x="50" y="50" w="330" h="620" /> -->
<posx>15</posx>
<posy>80</posy>
<width>180</width>
<height>720</height>
<onleft>10</onleft>
<onright>9001</onright>
<onup>9000</onup>
<ondown>9000</ondown>
<pagecontrol>-</pagecontrol>
<scrolltime>200</scrolltime>
<scrolltime>200</scrolltime>
<focusposition>1</focusposition>
<movement>2</movement>
<animation effect="fade" start="0" end="100" time="200">Visible</animation>
<animation effect="fade" start="100" end="30" time="200" condition="Window.IsVisible(1113) | ControlGroup(9001).HasFocus | ControlGroup(10).HasFocus | Control.HasFocus(8000) | Control.HasFocus(8001) | Control.HasFocus(9002)">conditional</animation>
<!--Menu Text-->
<itemlayout height="70" width="180">
<control type="label">
<posx>0</posx>
<posy>0</posy>
<width>180</width>
<height>500</height>
<font>font50caps_title</font>
<textcolor>grey</textcolor>
<align>left</align>
<aligny>left</aligny>
<label>$INFO[ListItem.Label]</label>
<!--<-animation effect="zoom" start="75" end="75" center="380,51" time="0" condition="true">Conditional</animation>
<animation effect="fade" start="100" end="30" time="200" condition="Window.IsVisible(1113) | ControlGroup(9001).HasFocus | ControlGroup(10).HasFocus | Control.HasFocus(9002)">conditional</animation> -->
</control>
</itemlayout>
<!--Selected Item-->
<focusedlayout height="70" width="180">
<control type="label">
<posx>0</posx>
<posy>0</posy>
<width>180</width>
<height>102</height>
<font>font50caps_title</font>
<textcolor>orange</textcolor>
<align>left</align>
<aligny>left</aligny>
<!--<animation effect="zoom" start="75" end="100" center="380,51" time="200">Focus</animation>
<animation effect="zoom" start="100" end="75" center="380,51" time="200">UnFocus</animation>-->
<label>$INFO[ListItem.Label]</label>
</control>
</focusedlayout>
<content>
<item id="10">
<label>20342</label>
<onclick>ActivateWindow(Videos,MovieTitles,return)</onclick>
<icon>special://skin/backgrounds/videos.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Movies_Folder)]</thumb>
<visible>Skin.HasSetting(HomeMenuNoMoviesButton) + Library.HasContent(Movies)</visible>
</item>
<item id="11">
<label>20343</label>
<onclick>ActivateWindow(Videos,TVShowTitles,return)</onclick>
<icon>special://skin/backgrounds/videos.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_TVShow_Folder)]</thumb>
<visible>Skin.HasSetting(HomeMenuNoTVShowsButton) + Library.HasContent(TVShows)</visible>
</item>
<item id="3">
<label>2</label>
<onclick>ActivateWindow(Music)</onclick>
<icon>special://skin/backgrounds/music.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Music_Folder)]</thumb>
<visible>!Skin.HasSetting(HomeMenuNoMusicButton)</visible>
</item>
<item id="6">
<label>8</label>
<onclick>ActivateWindow(Weather)</onclick>
<icon>special://skin/backgrounds/weather.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Weather_Folder)]</thumb>
<visible>!Skin.HasSetting(HomeMenuNoWeatherButton) + !IsEmpty(Weather.Plugin)</visible>
<visible>!Skin.HasSetting(ShowWeatherFanart) | IsEmpty(Skin.String(WeatherFanartDir))</visible>
</item>
<item id="6">
<label>8</label>
<onclick>ActivateWindow(Weather)</onclick>
<icon>special://skin/backgrounds/weather.jpg</icon>
<thumb>$INFO[Skin.String(WeatherFanartDir)]$INFO[Weather.FanartCode]</thumb>
<visible>!Skin.HasSetting(HomeMenuNoWeatherButton) + !IsEmpty(Weather.Plugin)</visible>
<visible>Skin.HasSetting(ShowWeatherFanart) + !IsEmpty(Skin.String(WeatherFanartDir))</visible>
</item>
<item id="1">
<label>0</label>
<onclick>ActivateWindow(Programs,Addons,return)</onclick>
<icon>special://skin/backgrounds/programs.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Programs_Folder)]</thumb>
<visible>!Skin.HasSetting(HomeMenuNoProgramsButton)</visible>
</item>
<item id="4">
<label>1</label>
<onclick>ActivateWindow(Pictures)</onclick>
<icon>special://skin/backgrounds/pictures.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Pictures_Folder)]</thumb>
<visible>!Skin.HasSetting(HomeMenuNoPicturesButton)</visible>
</item>
<item id="2">
<label>3</label>
<onclick condition="!Skin.HasSetting(HomeVideostoFiles)">ActivateWindow(Videos)</onclick>
<onclick condition="Skin.HasSetting(HomeVideostoFiles)">ActivateWindow(Videos,Files,Return)</onclick>
<icon>special://skin/backgrounds/videos.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Video_Folder)]</thumb>
<visible>!Skin.HasSetting(HomeMenuNoVideosButton)</visible>
</item>
<item id="7">
<label>341</label>
<onclick>XBMC.PlayDVD()</onclick>
<icon>special://skin/backgrounds/playdisc.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_PlayDisc_Folder)]</thumb>
<visible>System.HasMediaDVD</visible>
</item>
<item id="5">
<label>13000</label>
<onclick>ActivateWindow(Settings)</onclick>
<icon>special://skin/backgrounds/settings.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Settings_Folder)]</thumb>
</item>
</content>
</control>
<control type="image"> <!--Highlight-->
<posx>0</posx>
<posy>60</posy>
<width>1280</width>
<height>80</height>
<texture>Highlight.png</texture>
<animation effect="slide" start="-500,0" end="0,0" time="300" condition="Container(9000).Row(0)">conditional</animation>
<animation effect="slide" start="-500,0" end="0,0" time="300" condition="Container(9000).Row(1)">conditional</animation>
</control>