thank you I was afraid that it was about strings ;(
only strings work in labels conditions ?
well I guess its time to sit down an learn how strings work
thank you
----------------many hours later----------------------
thank you I was afraid that it was about strings ;(
only strings work in labels conditions ?
well I guess its time to sit down an learn how strings work
thank you
Thank you both
@
Sranshaft
nice tip on conditions I will use this in the future, I had looked at the toggle button but as I said it dident remember state individualy but maybe that is because of the wrong conditions.
@
MassIV
Thank you for that link that was really helpfull so finally managed to make the label text into a toggle text with the use of strings and my onclick "macro" so it basicly toggle fanart and extrafanart
PHP Code:
<control type="button" id="111">
<texturenofocus colordiffuse="44FFFFFF">settingB.png</texturenofocus>
<include>SettingsButton</include>
<label2>$INFO[Skin.String(DarknessPercentage),,%]</label2>
<label> - $LOCALIZE[31257]</label>
<onclick condition="Stringcompare(Skin.String(BackgroundDarkness),FFFFFFFF) | IsEmpty(Skin.String(BackgroundDarkness))">Skin.SetString(BackgroundDarkness,FFE5E5E5)</onclick>
<onclick condition="Stringcompare(Skin.String(BackgroundDarkness),FFE5E5E5)">Skin.SetString(BackgroundDarkness,FFCCCCCC)</onclick>
<onclick condition="Stringcompare(Skin.String(BackgroundDarkness),FFCCCCCC)">Skin.SetString(BackgroundDarkness,FFB3B3B3)</onclick>
<onclick condition="Stringcompare(Skin.String(BackgroundDarkness),FFB3B3B3)">Skin.SetString(BackgroundDarkness,FF999999)</onclick>
<onclick condition="Stringcompare(Skin.String(BackgroundDarkness),FF999999)">Skin.SetString(BackgroundDarkness,FF7F7F7F)</onclick>
<onclick condition="Stringcompare(Skin.String(BackgroundDarkness),FF7F7F7F)">Skin.SetString(BackgroundDarkness,FFFFFFFF)</onclick>
<!-- only user feedback -->
<onclick condition="Stringcompare(Skin.String(DarknessPercentage),0) | IsEmpty(Skin.String(DarknessPercentage))">Skin.SetString(DarknessPercentage,10)</onclick>
<onclick condition="Stringcompare(Skin.String(DarknessPercentage),10)">Skin.SetString(DarknessPercentage,20)</onclick>
<onclick condition="Stringcompare(Skin.String(DarknessPercentage),20)">Skin.SetString(DarknessPercentage,30)</onclick>
<onclick condition="Stringcompare(Skin.String(DarknessPercentage),30)">Skin.SetString(DarknessPercentage,40)</onclick>
<onclick condition="Stringcompare(Skin.String(DarknessPercentage),40)">Skin.SetString(DarknessPercentage,50)</onclick>
<onclick condition="Stringcompare(Skin.String(DarknessPercentage),50)">Skin.SetString(DarknessPercentage,0)</onclick>
</control>
this is something i see myself using in the future WAAAAYYYYY future, I can see what it does but I cant see how it does it
do u use colordifuse somewhere else with stringcompare(BackgroundDarkness)?
could I somehow do the same with Skin.ToggleSetting(MovieExtraFanart) so the label actually followed the setting instead of just a toggle ?
Arh I had it working perfectly but it stopped working out of the blue for tvshow and now the label get stuck on labels that dont exits anymore it feel like it has something cached and it refuses to get rid of it