2015-10-04, 13:19
Hi,
Odd bool behaviour, Isengard.
For condition Skin.HasSetting(ShowControls),
In button, this line does absolutely nothing:
<onfocus>Skin.Reset(ShowControls)</onfocus>
but these two works as expected:
<onfocus>Skin.SetBool(ShowControls)</onfocus>
<onfocus>Skin.ToggleSetting(ShowControls)</onfocus>
Reset should force a bool to false, and work in a button onfocus, right?
Assuming yes, and finding it hard to believe that this is a bug since this assumingly is a very used functionality:
What could be wrong?
Odd bool behaviour, Isengard.
For condition Skin.HasSetting(ShowControls),
In button, this line does absolutely nothing:
<onfocus>Skin.Reset(ShowControls)</onfocus>
but these two works as expected:
<onfocus>Skin.SetBool(ShowControls)</onfocus>
<onfocus>Skin.ToggleSetting(ShowControls)</onfocus>
Reset should force a bool to false, and work in a button onfocus, right?
Assuming yes, and finding it hard to believe that this is a bug since this assumingly is a very used functionality:
What could be wrong?