Kodi Community Forum

Full Version: Panel contents position based on number of items
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
You could add conditional slide animations based on IntegerGreaterThan(Container(YOUR_PANEL_CONTAINER_ID).NumItems, xxx).
Thanks again Phil Laugh, it's working and looking good, just some fine tuning with the various positions.