Kodi Community Forum

Full Version: 2 positions for 1 frame
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
yes, thank you for your help !!