2011-03-27, 04:38
First section is my Home Menu, then the <ondown> is the Recent added type sections
Which references:
This setup worked when I was using a container and hard coded <ondown>'s for the each and every button but I need a <grouplist> as I let users uncheck videos/movies/pictures/etc so I need the auto navigation and I'm using the auto-sizing GetLabel() trickery thats why I'm not using a Container...Thx
PHP Code:
<control type="grouplist" id="9000">
<onleft></onleft>
<onright></onright>
<onup>3001</onup>
<ondown>90050</ondown>
<orientation>horizontal</orientation>
<control type="button" id="101">
<description>music</description>
<width>1</width>
<height>1</height>
<label>2</label>
<textcolor>xxxxx</textcolor>
<onclick>XBMC.ActivateWindow(MyMusic,return)</onclick>
<visible>!Skin.HasSetting(HomeMenuNoMusicButton)</visible>
</control>
<control type="button" id="103">
<description>movies</description>
<width>1</width>
<height>1</height>
<label>$LOCALIZE[20342]</label>
<textcolor>xxxxx</textcolor>
<onclick>XBMC.ActivateWindow(MyVideoLibrary,movietitles,return)</onclick>
<visible>!Skin.HasSetting(HomeMenuNoMoviesButton)</visible>
</control>
<control type="button" id="104">
<description>hdmovies</description>
<width>1</width>
<height>1</height>
<label>$LOCALIZE[30000]</label>
<textcolor>xxxxx</textcolor>
<onclick>XBMC.ActivateWindow(10025,special://skin/playlists/HDMovies.xsp,return)</onclick>
<visible>!Skin.HasSetting(HomeMenuNoHDMoviesButton)</visible>
</control>
etc...
Which references:
PHP Code:
<control type="group" id="90050">
<control type="button">
<description>movies</description>
<width>1</width>
<height>1</height>
<onfocus>SetFocus(8000)</onfocus>
<font>-</font>
<visible>Control.HasFocus(103) | Control.HasFocus(104)</visible>
</control>
<control type="button">
<description>movies</description>
<width>1</width>
<height>1</height>
<onfocus>SetFocus(8001)</onfocus>
<font>-</font>
<visible>Control.HasFocus(105)</visible>
</control>
</control>
This setup worked when I was using a container and hard coded <ondown>'s for the each and every button but I need a <grouplist> as I let users uncheck videos/movies/pictures/etc so I need the auto navigation and I'm using the auto-sizing GetLabel() trickery thats why I'm not using a Container...Thx