2013-11-30, 20:01
Hi
i have a problem with the homepage menus in the aTV Skin.
i had 6 submenus (6xlist container) on fixed positions and it works ok
But now the user can hide 5 of the 6 menus.
Now i need to reposition the visible menus.
I did this what works great:
i include different <itemgapes> for different number of items, so that the visible items spread evenly.
But in the old version i used a skin setting to know in which direction i move.
it's important for an animation, to know which direction.
But now the grouplist ignores the <onleft> <onright> tags of the sub controls (list containers).
One solution would be to have the Boolean Conditions Container.OnNext and Container.OnPrevious for the <grouplist> control, or a second solution would be to allow the subitems in the grouplist to have functional <onleft> <onright> tags.
Otherwise i had to do dozens of slide animations for every possibility
So my question is, is it posible to get the Boolean Conditions (OnNext, OnPrevious) or functional <onleft> etc. tags for the subitems in a <grouplist> control?
or maybe some experienced skinners has another solution/tip for me?
i have a problem with the homepage menus in the aTV Skin.
i had 6 submenus (6xlist container) on fixed positions and it works ok
PHP Code:
<control type="group" description="Submenus">
<control type="list" description="Submenu: Movies" id="301">
<onleft>Skin.SetBool(HomeMenuDirection)</onleft>
<onright>Skin.Reset(HomeMenuDirection)</onright>
...
</control>
<control type="list" description="Submenu: TVShows" id="302">
<onleft>Skin.SetBool(HomeMenuDirection)</onleft>
<onright>Skin.Reset(HomeMenuDirection)</onright>
...
</control>
</control>
But now the user can hide 5 of the 6 menus.
Now i need to reposition the visible menus.
I did this what works great:
PHP Code:
<control type="grouplist" description="Submenus" id="9000">
<posx>60</posx>
<posy>591</posy>
<height>420</height>
<width>1800</width>
<include condition="IsEmpty(Skin.String(NumberOfMenuitems))">HomeMenu_Gap6</include>
<include condition="StringCompare(Skin.String(NumberOfMenuitems),1)">HomeMenu_Gap1</include>
...
<include condition="StringCompare(Skin.String(NumberOfMenuitems),6)">HomeMenu_Gap6</include>
<align>center</align>
<aligny>top</aligny>
<orientation>horizontal</orientation>
<control type="list" description="Submenu: Movies" id="301">
...
</control>
<control type="list" description="Submenu: TVShows" id="302">
...
</control>
</control>
But in the old version i used a skin setting to know in which direction i move.
PHP Code:
<onleft>Skin.SetBool(HomeMenuDirection)</onleft>
<onright>Skin.Reset(HomeMenuDirection)</onright>
But now the grouplist ignores the <onleft> <onright> tags of the sub controls (list containers).
One solution would be to have the Boolean Conditions Container.OnNext and Container.OnPrevious for the <grouplist> control, or a second solution would be to allow the subitems in the grouplist to have functional <onleft> <onright> tags.
Otherwise i had to do dozens of slide animations for every possibility
So my question is, is it posible to get the Boolean Conditions (OnNext, OnPrevious) or functional <onleft> etc. tags for the subitems in a <grouplist> control?
or maybe some experienced skinners has another solution/tip for me?