Page 1 of 1

[2.0.76] Power switch GUI is not like all the other GUIs

Posted: Mon Apr 20, 2026 1:39 am
by hgschmie
Most (All?) GUIs have a maximum limit from which a player can open their GUI. The outline turns red if the GUI can not be opened:
Screenshot 2026-04-19 at 18.37.24.png
Screenshot 2026-04-19 at 18.37.24.png (194.83 KiB) Viewed 288 times
Screenshot 2026-04-19 at 18.37.32.png
Screenshot 2026-04-19 at 18.37.32.png (188.59 KiB) Viewed 288 times
Except the power switch. I tried zooming out on a big screen and even at max zoom, I can open the power switch GUI (still showing a yellow outline).

Here it is at the same distance as the GUIs above:
Screenshot 2026-04-19 at 18.37.39.png
Screenshot 2026-04-19 at 18.37.39.png (186.53 KiB) Viewed 288 times
This seems to be a bug to me. :-)

-h

Re: [2.0.76] Power switch GUI is not like all the other GUIs

Posted: Mon Apr 20, 2026 1:54 am
by Rseding91
Thanks for the report however that is fully intended. They along with electric poles have no distance limit on them since version 0.16 released in 2017.

Re: [2.0.76] Power switch GUI is not like all the other GUIs

Posted: Mon Apr 20, 2026 2:25 am
by hgschmie
Rseding91 wrote: Mon Apr 20, 2026 1:54 am Thanks for the report however that is fully intended. They along with electric poles have no distance limit on them since version 0.16 released in 2017.
Hm,

I half-expected something like this. Lamps do have a distance limit. Power-switches sit at a weird intersection; they are only useful for the power network (or not? See below) but they open a GUi that is not like the power network gui but more like the GUI of a lamp (connections to circuit and logistic network, functionality). And yet they behave like they are part of a power network (there is nothing in the power GUI that can be controlled or switched).

I am using a power switch as part of a larger entity (and clicking on it opens my custom GUI. Now I have an entity where I have inconsistent behavior depending on which I/O pin (data or power) a user clicks.

Would it be possible to add a boolean to the prototype that makes the power switch behave like "all the other GUis" ?