2023-04-06, 10:41
@ronie @enen92 I'm trying the new Control.SetVisible and SetHidden functions but they don't seem to trigger Visible / Hidden animations. Is my code wrong or is it a bug?
The image appears and disappears fine, but the Visible/Hidden animations are never triggered.
I've also tried
Code:
<control type="button">
<onleft>Control.SetHidden(100)</onleft>
<onright>Control.SetVisible(100)</onright>
</control>
<control type="image" id="100">
<animation effect="fade" start="0" end="100" time="1000">Visible</animation>
<animation effect="fade" start="100" end="0" time="1000">Hidden</animation>
<texture>my_texture.png</texture>
</control>
The image appears and disappears fine, but the Visible/Hidden animations are never triggered.
I've also tried
<animation effect="fade" time="1000">VisibleChange</animation>
which also doesn't work.