2019-02-07, 17:35
Togglen between 2 states is very easy with "hassetting" and "visible". But togglen between 3 or more states I just have my problems.
I've ever brought together a toggle function between 3 states, but could not reproduce it.
It just does not work, the toggle button does not show anything, it's empty and nothing works. What am I doing wrong?
There are several ways to implement something.
I tried 2 options, none worked.
FIRST TRY
IncludeVariables:
IncludesTopMenu:
SECOND TRY
IncludeVariables:
IncludesTopMenu:
__________________
I would be very grateful if someone could help me what I'm doing wrong, I would also thankful invite you to Teamviewer to help me on the jumps.
I've ever brought together a toggle function between 3 states, but could not reproduce it.
It just does not work, the toggle button does not show anything, it's empty and nothing works. What am I doing wrong?
There are several ways to implement something.
I tried 2 options, none worked.
FIRST TRY
IncludeVariables:
Code:
<variable name="PLCharacterLabel">
<value condition="String.IsEqual(Control.GetLabel(92134),character)">character</value>
<value condition="String.IsEqual(Control.GetLabel(92134),multicharacter)">multicharacter</value>
<value condition="String.IsEqual(Control.GetLabel(92134),nocharacter)">nocharacter</value>
</variable>
IncludesTopMenu:
Code:
<control type="button" id="92129">
<include>TopMenuButton</include>
<label>CHARACTERART:</label>
<label2>$VAR[PLCharacterLabel]</label2>
<onclick condition="Container.Content(tvshows)">SetProperty(Area,TVShows,home)</onclick>
<onclick condition="String.IsEqual(Control.GetLabel(92134),nocharacter)">Skin.SetString(PosterLite$INFO[Window(home).Property(Area)],character)</onclick>
<onclick condition="String.IsEqual(Control.GetLabel(92134),character)">Skin.SetString(PosterLite$INFO[Window(home).Property(Area)],multicharacter)</onclick>
<onclick condition="String.IsEqual(Control.GetLabel(92134),multicharacter)">Skin.SetString(PosterLite$INFO[Window(home).Property(Area)],nocharacter)</onclick>
<visible>Control.IsVisible(69) + Container.Content(tvshows)</visible>
</control>
SECOND TRY
IncludeVariables:
Code:
<variable name="PLCharacterLabel1">
<value condition="Skin.HasSetting(character)">character</value>
<value condition="Skin.HasSetting(multicharacter)">multicharacter</value>
<value condition="Skin.HasSetting(nocharacter)">nocharacter</value>
</variable>
IncludesTopMenu:
Code:
<control type="button" id="92130">
<label>CHARACTERART:</label>
<label2>$VAR[PLCharacterLabel1]</label2>
<include>TopMenuButton</include>
<onclick condition="Skin.HasSetting(nocharacter)">Skin.SetBool(character)</onclick>
<onclick condition="Skin.HasSetting(nocharacter)">Skin.Reset(nocharacter)</onclick>
<onclick condition="Skin.HasSetting(character)">Skin.SetBool(multicharacter)</onclick>
<onclick condition="Skin.HasSetting(character)">Skin.Reset(character)</onclick>
<onclick condition="Skin.HasSetting(multicharacter)">Skin.SetBool(nocharacter)</onclick>
<onclick condition="Skin.HasSetting(multicharacter)">Skin.Reset(multicharacter)</onclick>
<visible>Control.IsVisible(69) + Container.Content(tvshows)</visible>
</control>
__________________
I would be very grateful if someone could help me what I'm doing wrong, I would also thankful invite you to Teamviewer to help me on the jumps.