2013-07-29, 14:07
I want the background to change when a button on the home screen is focused.
I know how to do this for the buttons on the main menu, but I haven't been able to figure out how to do this for a separate button.
Please find my home.xml code below.
And then I have:
What do I do wrong?
I very much enjoy skin "modding" but I'm only a beginner so pls bear with me
Your help is much appreciated!
I know how to do this for the buttons on the main menu, but I haven't been able to figure out how to do this for a separate button.
Please find my home.xml code below.
Code:
<control type="multiimage">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<imagepath background="true">$INFO[Container(9000).ListItem.Icon]</imagepath>
<timeperimage>8000</timeperimage>
<randomize>true</randomize>
<fadetime>1000</fadetime>
</control>
<control type="multiimage">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<imagepath background="true">$INFO[Container(10).ListItem.Icon]</imagepath>
<timeperimage>8000</timeperimage>
<randomize>true</randomize>
<fadetime>1000</fadetime>
</control>
And then I have:
Code:
<control type="group" id="10">
<posx>0</posx>
<posy>42r</posy>
<include>Window_OpenClose_Animation</include>
<control type="button" id="21">
<description>Settings button</description>
<posx>12</posx>
<posy>0</posy>
<width>35</width>
<height>35</height>
<label>1036</label>
<onclick>ActivateWindow(Settings)</onclick>
<texturenofocus border="5">floor_button.png</texturenofocus>
<icon>C:\Program Files (x86)\XBMC\addons\skin.confluence\backgrounds\settings.jpg</icon>
<onleft>9000</onleft>
<onright>9000</onright>
<onup>9000</onup>
<ondown>9000</ondown>
</control>
<control type="image">
<description>Settings Icon</description>
<posx>12</posx>
<posy>0</posy>
<width>35</width>
<height>35</height>
<aspectratio>keep</aspectratio>
<texture>icon_system.png</texture>
</control>
</control>
What do I do wrong?
I very much enjoy skin "modding" but I'm only a beginner so pls bear with me
Your help is much appreciated!