[1.0] on_gui_closed doesnt get triggered when leaving editor mode

Things that has been reported already before.
Post Reply
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 333
Joined: Tue Jul 08, 2014 10:06 am
Contact:

[1.0] on_gui_closed doesnt get triggered when leaving editor mode

Post 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 1421 times
factorio_0K96GcOJfc.png
factorio_0K96GcOJfc.png (1.27 MiB) Viewed 1421 times
Greetz,

Luzifer
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

Loewchen
Global Moderator
Global Moderator
Posts: 8319
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

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

Post by Loewchen »

Note: This is only called if the player explicitly closed the GUI.
Sounds like this is working correctly.

User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 333
Joined: Tue Jul 08, 2014 10:06 am
Contact:

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

Post by LuziferSenpai »

Yea, then editor mode shouldnt close a entity gui ...

Something is defently going wrong and it can break mods fast and easy.
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

If you want to get ahold of me I'm almost always on Discord.

User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 333
Joined: Tue Jul 08, 2014 10:06 am
Contact:

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

Post 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
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

Post Reply

Return to “Duplicates”