2021-04-03, 21:27
Hello, I would like to know how to make something visible only if the number of episodes in a season is equal to 1 ?
Thanks
Thanks
(2021-04-03, 21:27)Bungee_G Wrote: Hello, I would like to know how to make something visible only if the number of episodes in a season is equal to 1 ?
Thanks
xml:Container.Content(seasons) + Integer.IsEqual(ListItem.Property(TotalEpisodes),1)
xml:Container.Content(episodes) + Integer.IsEqual(Container.NumItems,1)
(2021-04-04, 12:13)Chillbo Wrote:(2021-04-03, 21:27)Bungee_G Wrote: Hello, I would like to know how to make something visible only if the number of episodes in a season is equal to 1 ?
Thanks
Depends on whether you'd like to get that value for a season highlighted in e.g. a list (content of a focused list item) or for a container you're currently in (content of a season/TV show currently opened).
The first would be something like this:xml:Container.Content(seasons) + Integer.IsEqual(ListItem.Property(TotalEpisodes),1)
... the second would be something like this:xml:Container.Content(episodes) + Integer.IsEqual(Container.NumItems,1)
(2021-04-04, 13:57)Bungee_G Wrote: Thanks @Chillbo what you said helped me !
Also do you know how to make something visible but only we are IN a movie set ?
xml:Container.Content(sets)
(2021-04-04, 16:57)Chillbo Wrote:(2021-04-04, 13:57)Bungee_G Wrote: Thanks @Chillbo what you said helped me !
Also do you know how to make something visible but only we are IN a movie set ?
That would require a visible condition containing this condition:xml:Container.Content(sets)
(2021-04-04, 18:39)Bungee_G Wrote:I think what you need is the boolean:(2021-04-04, 16:57)Chillbo Wrote:(2021-04-04, 13:57)Bungee_G Wrote: Thanks @Chillbo what you said helped me !
Also do you know how to make something visible but only we are IN a movie set ?
That would require a visible condition containing this condition:xml:Container.Content(sets)
Thanks for your answer but it didn't work, I added <visible>Container.Content(sets)</visible> but the thing is not visible anywhere (nor in the movie set) so I think I will open a new thread
(2021-04-04, 19:01)manfeed Wrote:Thanks for your answer, I also tried <visible>ListItem.IsCollection</visible> but it only works if I am ON the movie set but IN the movie set(2021-04-04, 18:39)Bungee_G Wrote:I think what you need is the boolean:(2021-04-04, 16:57)Chillbo Wrote: That would require a visible condition containing this condition:xml:Container.Content(sets)
Thanks for your answer but it didn't work, I added <visible>Container.Content(sets)</visible> but the thing is not visible anywhere (nor in the movie set) so I think I will open a new thread
ListItem.IsCollection
(2021-04-05, 14:23)Bungee_G Wrote: Hello @manfeed I have another question please... When I want to add a setting and select one between multiple skin setting options, I can use Skin.SelectBool(header, label1|setting1, label2|setting2)AFAIK you need a button/radiobutton for each option... If you mean that one option must appear only if another one is activated, then you have to play with <visible> conditions, but always one button for each option.
But if I want to select multiple options and not only one, what have I to use ?
Thanks
(2021-04-05, 19:17)manfeed Wrote:I mean I would to add a new setting like the one in estuary, when you go Settings>interface>Regional then Keyboard layouts, you can select multiple options :(2021-04-05, 14:23)Bungee_G Wrote: Hello @manfeed I have another question please... When I want to add a setting and select one between multiple skin setting options, I can use Skin.SelectBool(header, label1|setting1, label2|setting2)AFAIK you need a button/radiobutton for each option... If you mean that one option must appear only if another one is activated, then you have to play with <visible> conditions, but always one button for each option.
But if I want to select multiple options and not only one, what have I to use ?
Thanks