Panel contents position based on number of items
#1
Hi,

Is it possible to have the contents of a panel display in different places based on the number of items being displayed.

I have a wall view that is 9X3 when small posters are selected and it starts in top left i.e. row 1 column 1 but I was wondering if it's possible to say start in row 2 column 1 when number items < 18 and row 3 column 1 when < 9 items

Here's some screeshots:
watch gallery


Screen 1 shows the wall with >= 27 items i.e. standard viewing.
Screen 2 shows the wall for films in 1939, only 2
Screen 3 shows the wall for films in 1979 with 14 items
Screen 4 shows the wall for films in 1980 with 23 items.

If possible I'd like screen 1 to re-position to same position as '24' in screen 1 i.e. row 3 column 1 and screen 2 to re-position to where 10,000 BC is and then populate rows 2 and 3 with the items in the list

Hope it makes sense, if not just let me know.

TIA,

Mike.
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
#2
You could add conditional slide animations based on IntegerGreaterThan(Container(YOUR_PANEL_CONTAINER_ID).NumItems, xxx).
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
Thanks again Phil Laugh, it's working and looking good, just some fine tuning with the various positions.
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply

Logout Mark Read Team Forum Stats Members Help
Panel contents position based on number of items0