Page 1 of 1

[1.0] on_gui_closed doesnt get triggered when leaving editor mode

Posted: Wed Nov 04, 2020 7:46 pm
by LuziferSenpai
Hey,

how to reproduce it:

1. Have a mod that adds a custom gui, when opening a entity. I used CTL
2. Go into editor mode
3. Open a cargo wagon(when using CTL)
4. exist editor mode

Now the side gui for ctl is still open, but it shouldnt because the cargo wagon is not open.
factorio_ZEAoMVwNtW.png
factorio_ZEAoMVwNtW.png (284.2 KiB) Viewed 1987 times
factorio_0K96GcOJfc.png
factorio_0K96GcOJfc.png (1.27 MiB) Viewed 1987 times
Greetz,

Luzifer

Re: [1.0] on_gui_closed doesnt get triggered when leaving editor mode

Posted: Wed Nov 04, 2020 7:57 pm
by Loewchen
Note: This is only called if the player explicitly closed the GUI.
Sounds like this is working correctly.

Re: [1.0] on_gui_closed doesnt get triggered when leaving editor mode

Posted: Wed Nov 04, 2020 8:01 pm
by LuziferSenpai
Yea, then editor mode shouldnt close a entity gui ...

Something is defently going wrong and it can break mods fast and easy.

Re: [1.0] on_gui_closed doesnt get triggered when leaving editor mode

Posted: Wed Nov 04, 2020 8:02 pm
by Rseding91

Re: [1.0] on_gui_closed doesnt get triggered when leaving editor mode

Posted: Wed Nov 04, 2020 8:05 pm
by LuziferSenpai
Rseding91 wrote: Wed Nov 04, 2020 8:02 pm Duplicate of viewtopic.php?f=48&t=88294&p=508185&hil ... ed#p508185

The behavior is specifically documented on the event: https://lua-api.factorio.com/latest/eve ... gui_closed
Uff