Solved Positioning with grouplist and his conditions
#1
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
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
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.
PHP Code:
<onleft>Skin.SetBool(HomeMenuDirection)</onleft>
<
onright>Skin.Reset(HomeMenuDirection)</onright
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?
Reply
#2
You have to put every item of the grouplist in a group, then their onleft/onright controls will work.

Another tip: If you need temporary information such as direction info, use window properties instead of skin settings because skin settings will be read and written from file which causes a noticeable lag.
Image
Reply

Logout Mark Read Team Forum Stats Members Help
Positioning with grouplist and his conditions0