2012-12-19, 09:00
I will add it once i get this one bigger issue sorted. If some skinning expert is reading this here's the problem:
I have a submenu that slides upwards from main menu. Basically the same stock Confluence submenu but reversed vertically (slides upwards).
Just for the reference the stock Confluence submenu looks like this:
So it should show when either movies, tvshows, music or concerts menu item is focused. The menu shows when i start XBMC, but if i play something from recently added, stop/finish the playback and return to the home menu or if i return from any library view back to the home menu the submenu is not visible.
Debugging shows that the container 9000 does have focus but i don't know which id is active. As far as i can tell there's no problem here. If i move left from, let's say id 10 (from movies to pictures) the submenu quickly flashes and then hides it self. When i return to id 10 it shows correctly.
Why won't the submenu show? I have a suspicion it's the animation that's the problem but since i'm bit of an idiot i haven't been able to figure it out.
I have a submenu that slides upwards from main menu. Basically the same stock Confluence submenu but reversed vertically (slides upwards).
PHP Code:
<control type="grouplist" id="9004">
<posy>-60</posy>
<onup>9003</onup>
<ondown>9000</ondown>
<include>HomeSubMenuCommonValues2</include>
<include>HomeSubMenuWidgets</include> <!-- Buttons for the grouplist -->
<visible>Skin.HasSetting(EnableWidgets) + [Container(9000).HasFocus(10) | Container(9000).HasFocus(11) | Container(9000).HasFocus(3) | Container(9000).HasFocus(90)]</visible>
</control>
PHP Code:
<include name="HomeSubMenuCommonValues2">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>35</height>
<align>center</align>
<onup>9003</onup>
<ondown>9000</ondown>
<itemgap>0</itemgap>
<orientation>Horizontal</orientation>
<animation effect="slide" start="0,-40" end="0,0" time="200" tween="quadratic" easing="out">Hidden</animation>
<animation effect="slide" start="0,0" end="0,-40" delay="200" time="200" tween="quadratic" easing="out">Visible</animation>
</include>
Just for the reference the stock Confluence submenu looks like this:
PHP Code:
<include name="HomeSubMenuCommonValues">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>35</height>
<align>center</align>
<onup>9000</onup>
<ondown>9002</ondown>
<itemgap>0</itemgap>
<orientation>Horizontal</orientation>
<animation effect="slide" start="0,-40" end="0,0" delay="200" time="200" tween="quadratic" easing="out">Visible</animation>
<animation effect="slide" start="0,0" end="0,-40" time="200" tween="quadratic" easing="out">Hidden</animation>
</include>
So it should show when either movies, tvshows, music or concerts menu item is focused. The menu shows when i start XBMC, but if i play something from recently added, stop/finish the playback and return to the home menu or if i return from any library view back to the home menu the submenu is not visible.
Debugging shows that the container 9000 does have focus but i don't know which id is active. As far as i can tell there's no problem here. If i move left from, let's say id 10 (from movies to pictures) the submenu quickly flashes and then hides it self. When i return to id 10 it shows correctly.
Why won't the submenu show? I have a suspicion it's the animation that's the problem but since i'm bit of an idiot i haven't been able to figure it out.