2016-02-22, 22:52
(2016-02-22, 22:05)marcelveldt Wrote:(2016-02-22, 18:58)tomer953 Wrote: 1. clearing the properties from the skinshortcuts dialog is not working. http://pastebin.com/K4yHm0RD
i'm clicking on the "none" button, the picker closed, and the property is stay. (I check with labels for easy debugging)
2. in strings case, the none button seems to work, but is setting "None" to the string, and in my skin I check for IsEmpty, and not comparing to None.
is it possible to reset the string? will save me a lot of coding.Code:<setting id="list_bg_color" type="string">None</setting>
10Q
1. Should now be fixed on Git, please test.
2. Clearing the skin will be a terrible wrong idea because it will collide with any defaults you set in your skin when it's empty. Better to check against None
1. working! thanks
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..