Does LuaGuiElement.location not work in simulations?

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
i142857
Inserter
Inserter
Posts: 24
Joined: Mon Nov 04, 2024 9:56 am
Contact:

Does LuaGuiElement.location not work in simulations?

Post by i142857 »

In my experiments it seems that LuaGuiElements under screen do not respect the location property in simulations. They are always displayed at the top-left, as if location was { 0, 0 }.

Is this intentional or am I mistaken? If intentional, could you please document it ("this has no effect in simulations")? If it's not intentional, it would be nice to fix. My mod features some custom on-screen HUDs that would be nice to demonstrate in tips and tricks. (workarounds are probably possible, I'll explore that)
User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 324
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: Does LuaGuiElement.location not work in simulations?

Post by Therenas »

Moved to interface requests, seems sensible to support this.
Post Reply

Return to “Modding interface requests”