Page 1 of 1

[1.0.0] on_gui_switch_state_changed not fires as expected after loading save

Posted: Sun Aug 30, 2020 4:22 am
by x2605
Bug summary :
on_gui_switch_state_changed will not fires after loading game when clicking the switch that has left visible when saved before.

I made an scenario to help you reproduce bug.
Extract contents in scenario folder and try to play it.

Reproducing procedure with custom scenario :
1. Open switch window and click switch few times to see message.
2. Save the game while leaving switch window opened
3. Load the game and try to click switch
4. Toggle to refresh switch window, and try again. Then, it will become normal.

Other GUI elements are working as normal, as expected. I found only this one is not working as expected, I think it is bugged.
It also affect to multiplay guests. Leaving and rejoining while leaving switch on screen will produce bug.

test-on_gui_switch_state_changed.zip
(59.78 KiB) Downloaded 140 times

Re: [1.0.0] on_gui_switch_state_changed not fires as expected after loading save

Posted: Sun Aug 30, 2020 5:52 am
by Rseding91
Thanks for the report. It's now fixed for the next release.