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.
Greetz,
Luzifer
[1.0] on_gui_closed doesnt get triggered when leaving editor mode
- LuziferSenpai
- Filter Inserter
- Posts: 339
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: [1.0] on_gui_closed doesnt get triggered when leaving editor mode
Sounds like this is working correctly.Note: This is only called if the player explicitly closed the GUI.
- LuziferSenpai
- Filter Inserter
- Posts: 339
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: [1.0] on_gui_closed doesnt get triggered when leaving editor mode
Yea, then editor mode shouldnt close a entity gui ...
Something is defently going wrong and it can break mods fast and easy.
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
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
The behavior is specifically documented on the event: https://lua-api.factorio.com/latest/eve ... gui_closed
If you want to get ahold of me I'm almost always on Discord.
- LuziferSenpai
- Filter Inserter
- Posts: 339
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: [1.0] on_gui_closed doesnt get triggered when leaving editor mode
UffRseding91 wrote: ↑Wed Nov 04, 2020 8:02 pmDuplicate 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