Possible to change a viewtype's position based on number of items? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Possible to change a viewtype's position based on number of items? (/showthread.php?tid=55949) |
Possible to change a viewtype's position based on number of items? - Hitcher - 2009-08-06 I'm trying (unsuccessfully) to use a single row panel view for TV Seasons and Episodes but have it position the icons centrally if there aren't enough to cover the entire width. I've tried to use a conditional slide using stringcompare(NumItems,n) but it's not doing anything. Is it even possible? Thanks. - `Black - 2009-08-06 Try something like this (working here with wraplist position): Code: <animation effect="slide" start="0" end="-100" condition="Container.Content(episodes) + stringcompare(Container(52).NumItems,3)">Conditional</animation> - Hitcher - 2009-08-06 Doh, I left out the Container.Content(). Hangs head in shame. |