Icons Depending on Settings
#1
I'm currently trying to show different icons depending on certain settings, for example order is ascending or descending or shown videos are set to all, watched or unwatched.

I've found the condition for the sort order...

Code:
<visible>(Container.SortDirection(ascending))</visible>
<visible>(Container.SortDirection(descending))</visible>

but am unsure what to use for the watched/unwatched/all videos option. I'm currently using..

Code:
<visible>String.IsEqual(Control.GetLabel(10),watched</visible>

which works but obviously if the language isn't english this wouldn't.

Is there a boolean condition I can use so I don't have to rely on a string comparison?
 
Reply
#2
If you use the localized strings it will work on all languages. No boolean for that filter afaik.
Reply
#3
(2017-01-09, 00:36)BigNoid Wrote: If you use the localized strings it will work on all languages. No boolean for that filter afaik.

As in find the string for "watched" then use (assuming the string is 1234)...

Code:
<visible>String.IsEqual(Control.GetLabel(10),$LOCALIZE[1234]</visible>
 
Reply
#4
Yup, all three states should all be in the kodi language file.
Reply
#5
Awesome, thanks BigNoid. I'll give that a go tomorrow!
 
Reply
#6
For ID14 Show only unwatched or all videos

System.Setting(hidewatched) works - no stringcompares but only the to states.

Regards
Reply
#7
Yeah but that only works for either watched or unwatched. Button 10 has 3 states; all videos/watched/unwatched.
Reply
#8
I know - therefore, the point to ID14..
For me two states makes more sence especially in tvshows or moviesets and easier to handle with System.Setting(hidewatched) and !System.Setting(hidewatched).
Maybe I did not get of the Button id10 solutionWink..

Regards
Reply

Logout Mark Read Team Forum Stats Members Help
Icons Depending on Settings0