Posts: 50
Joined: Jul 2009
Reputation:
0
i would like to add an icon to show that an entry in the movie library is a movie set. does anyone know if this is possible, and if so, how?. Obviously a visible tag on the image control, but what is the parameter to use? i couldnt find it in the wiki or by searching.
thanks.
Posts: 569
Joined: Jun 2008
Reputation:
0
Yeah snap as i cant find anything to display an image or label based on it being a collection.
Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
>ListItem.IsFolder + Container.Content(movies)<
Posts: 50
Joined: Jul 2009
Reputation:
0
Nice, thanks. I assumed that refered to an actual folder but I guess that's how xbmc treats movie sets. I'll give it a shot later.
Posts: 15,276
Joined: Jan 2009
Reputation:
734
ronie
Team-Kodi Member
Posts: 15,276
in case it results in a false positive when the 'up/back' enrty is selected, you can extend the visible condition to:
>ListItem.IsFolder + Container.Content(movies) + !stringcompare(ListItem.Label,..)<
Posts: 50
Joined: Jul 2009
Reputation:
0
Thanks for the help. I've given it a try but it's not quite working as expected.
I've added an image control to each of the itemlayout and focused section of a panel view. The visible condition is as above (i've also tried variations). The focus image works fine, you focus on a movie set and the image shows up, no problem. The image is not there when you focus on an item that isn't a movie set.
However, the itemlayout (i.e. the non-focused items) image only shows up when the focused item is a movie set. I.e. The rest of the panel items don't have the image (even movie sets), until you focus on a movie set, then they all have the image. Obviously the ListItem.IsFolder property is being populated from the currently selected item, not the item in whose itemlayout section the image is located.
As a bit of a noob, I've blindly tried various things, such as adding INFO$[...] around the listitem, but since I don't know what half of this stuff does, it didn't work.
Is the Listitem.IsFolder only usable on the currently selected item in a list? Or is there some way to switch it to use the listitem.isfolder condition of the unfocused item?
If I'm not explaining myself properly, apologies. i'm away from my computer at the moment, so can't post screenshots. I can when I get home tonight though.
Thanks in advance.
Posts: 50
Joined: Jul 2009
Reputation:
0
The only reason that stringcompare is there is to avoid a false positive on the parent folder icon. So I took it out when I was testing and it still happened. I took the visible condition right back to just listitem.isfolder and it still happened. So the listitem.isfolder must only apply to the selected item, same as the stringcompare. Weird, because other listitem objects work on the non-focused items, e.g. Listitem.label. Is it because it's a Boolean, not a string?
Has anyone got this to work elsewhere? Or has anyone seen a skin or mod where this works?
If not I guess an icon that pops up when the set is focused is ok, but not as nice as having it there when unfocused too.
Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
Isfolder also only works on the focused item
Posts: 50
Joined: Jul 2009
Reputation:
0
Thanks, that works a treat.