2 positions for 1 frame
#1
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
Reply
#2
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.
Reply
#3
yes, thank you for your help !!
Reply

Logout Mark Read Team Forum Stats Members Help
2 positions for 1 frame0