Kodi Community Forum
2 positions for 1 frame - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Skin Archive (https://forum.kodi.tv/forumdisplay.php?fid=179)
+----- Forum: reFocus (https://forum.kodi.tv/forumdisplay.php?fid=72)
+----- Thread: 2 positions for 1 frame (/showthread.php?tid=198880)



2 positions for 1 frame - Reynald - 2014-06-29

Hello, I'm stuck on this problem, I would like to create a condition on <top> but that does not seem to work. I do not see what should be done, it seems very simple yet, but the first line is taken into account, not the next!


PHP Code:
<control type="group">
            <
top condition="Skin.HasSetting(topframe.enable) + !Skin.HasSetting(downframe.enable)">350</top>
            <
top condition="Skin.HasSetting(downframe.enable) + !Skin.HasSetting(topframe.enable)">550</top>
            <
left>50</left

Thx very much

EDIT :
I do that, it's a little barbaric, but it works! have you better?

PHP Code:
<control type="group">
            <
top>550</top>
            <
animation type="Conditional" condition="Skin.HasSetting(topframe.enable)" reversible="false">
                <
effect type="Slide"  center="auto" start="0,0" end="0,-200" easing="Out" tween="Cubic"/>
            </
animation



RE: 2 positions for 1 frame - Jeroen - 2014-06-29

you can't apply conditions to <top>, <bottom>, etc.

There is new stuff coming in xbmc that will make this more flexible, but right now using animations is the best way to achieve this yes.


RE: 2 positions for 1 frame - Reynald - 2014-06-29

yes, thank you for your help !!