2016-02-23, 09:15
(2016-02-23, 01:01)marcelveldt Wrote:I get it, and I used that way in my old mods, but in Phenomenal I wanted to give up all the massive "onloads"..(2016-02-22, 22:52)tomer953 Wrote: 2. mmm, actually my defaults values is come to play when the string IsEmpty, for example:
Code:<variable name="main_color">
<value condition="!IsEmpty(Skin.String(main_color))">$INFO[Skin.String(main_color)]</value>
<value>FFE66A4F</value>
</variable>
now with the "None" option, I will need to add !StringCompare(...,None) to the first condition.. and do that in all my skin variable.. so In my case, it won't collide.
If you\other skinners, made it differently from my way - so I'll fix my code, but just wanted to show you that no problem in my code to reset the string..
You can drop the extra variable and call the skin string directly.
Just it's default somewhere in the onload of your home window for example:
<onload condition="IsEmpty(Skin.String(main_color))">Skin.SetString(main_color,FFE66A4F)</onload>
Get what I mean ?
but ok, leave it for me, I will add the None check... one last question - it is always "None" in English or the translated string?