Posts: 17,405
Joined: Aug 2007
Reputation:
586
Hitcher
Team-Kodi Member
Posts: 17,405
If your background colour is constant I'd just hide the first row's reflections by adding a texture matching the background to the top of the item layout.
Posts: 17,405
Joined: Aug 2007
Reputation:
586
Hitcher
Team-Kodi Member
Posts: 17,405
8x8 is the smallest you can go, any smaller and it gets messed up when packed in an XBT.
Posts: 35
Joined: Sep 2013
Reputation:
0
Ok, thanks! That's good to know.
Posts: 35
Joined: Sep 2013
Reputation:
0
Think I'm going to give up on his one. The workaround you came up with works really well but only when the container has an even number of items. Otherwise it ends with a single item at the top row, and since there's no item below it, there's no texture to cover the reflection.
So I came up with a solution that's comparing the strings of Container.NumItems, Container.CurrentPage, Container.NumPages and Container.Position to determine the visibility of a texture outside the item layout for covering the reflection. Then I realized that this worked only when the panel consisted of more than one page. So I think it becomes too much ugly code just for the sake of these reflections.
I'll try a different layout keeping these things in mind instead. Though first I'm going to try and fix some things in the way the container displays the items that are partly out of screen. There are some glitches in the animations were some posters start blinking when moving. Might be just on my mac... have to test in on my OE build.
Posts: 201
Joined: May 2010
Reputation:
4
Does Container(id).Position honor pages? I.e. does the counter reset when you navigate to a new page?
Posts: 17,405
Joined: Aug 2007
Reputation:
586
Hitcher
Team-Kodi Member
Posts: 17,405
Position is based only on the items you can see on a page.
Posts: 201
Joined: May 2010
Reputation:
4
Then can't you set up the reflections with Container(id).Position and Container(id).ListItem(offset).Thumb?
Container(id).Position = 1 (top left)
Container(id).ListItem(1).Thumb, Container(id).ListItem(3).Thumb, Container(id).ListItem(5).Thumb, ...
Container(id).Position = 2 (bottom left)
Container(id).ListItem(0).Thumb, Container(id).ListItem(2).Thumb, Container(id).ListItem(4).Thumb, ...
Container(id).Position = 3 (2nd item from the left, first row)
Container(id).ListItem(-1).Thumb, Container(id).ListItem(1).Thumb, Container(id).ListItem(3).Thumb, ...
It's super ugly, I know, but it should get the job done if I'm not missing something crucial.
Posts: 17,405
Joined: Aug 2007
Reputation:
586
Hitcher
Team-Kodi Member
Posts: 17,405
It's possible that way but will need a lot of code as you're basically making a coverflow view - a group scrolling left, a group for scrolling right and a group for static items.