Conditional position?
#1
i'd like to make a position coordinate conditional, but it doesn't seem to work, the skin always uses the first coordinate i give, like the condition wasn't there. is this possible to do?
Code:
<posy condition="Skin.HasSetting(ShowMusicMusicIconTopBar)">MenuBarOffsetY</posy>    
<posy condition="!Skin.HasSetting(ShowMusicMusicIconTopBar)">0</posy>
Reply
#2
Yes Alaska does what you are trying:
Quote:<include condition="Skin.HasSetting(novideos) + Skin.HasSetting(nopictures)">pos1400</include>
<include condition="Skin.HasSetting(novideos) + !Skin.HasSetting(nopictures)">pos1750</include>

Which then references these includes:
Quote:<include name="pos1400">
<posx>1400</posx>
</include>
<include name="pos1750">
<posx>1750</posx>
</include>
Reply
#3
you could also use a conditional slide animation (includes have their disadvantages)
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#4
thank you both, that slide animation is a great advice
Reply

Logout Mark Read Team Forum Stats Members Help
Conditional position?0