on_gui_center_changed

Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

on_gui_center_changed

Post by eradicator »

What?
An event that tells me if another mod created a new element in player.gui.center (children excluded).

What exactly?
I don't care for their children or left/right, i just want to know if some mod just put an extra element in the center which causes my center element to be in the wrong position. Because i'd like to close my element before it's pushed off-screen or whereever by some mean bully other-mod-center-gui :p.

If center wasn't a shared resource anymore like suggested here that would probably solve it too.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Bilka
Factorio Staff
Factorio Staff
Posts: 3128
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: on_gui_center_changed

Post by Bilka »

I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Implemented mod requests”