Hide "circuit connection" side gui

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Osmo
Inserter
Inserter
Posts: 48
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Hide "circuit connection" side gui

Post by Osmo »

изображение.png
изображение.png (13.75 KiB) Viewed 275 times
Mods often want to add a relative gui to the right side of a game gui. It works, but if the entity is connected to a circuit network, the "Circuit connection" window appears, and as it is a built in gui, modded gui will appear to the right of it. This looks ugly! It leaves a gap between two parts of the "same" gui and also increases the overall width.
Ugly
Ugly
изображение.png (679.44 KiB) Viewed 275 times

This window already doesn't appear if the entity prototype has circuit_wire_max_distance set to 0 (even if it is connected by script), but that means wire connections will have to be handled by script, which is a lot of work.
I propose adding a boolean field field to every entity prototype that supports circuit connections: show_circuit_connection_window
Alternatively, a runtime option, for example on LuaPlayer (write-only is fine) to show/hide this window on the currently opened gui.
curiosity
Filter Inserter
Filter Inserter
Posts: 637
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Hide "circuit connection" side gui

Post by curiosity »

It would be better if the two sidebars were combined into one: show both base game and modded anchored GUIs in the same column.
Osmo
Inserter
Inserter
Posts: 48
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Hide "circuit connection" side gui

Post by Osmo »

curiosity wrote: Thu Apr 24, 2025 4:29 pm It would be better if the two sidebars were combined into one: show both base game and modded anchored GUIs in the same column.
Not sure whether it would be better as some mods may like to hide circuit gui entirely and remake it on their own.
It also is likely to be much harder to implement since they are on a different backend and mixing them might cause issues.
I would still much prefer that over how it is right now
curiosity
Filter Inserter
Filter Inserter
Posts: 637
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Hide "circuit connection" side gui

Post by curiosity »

Osmo wrote: Thu Apr 24, 2025 5:13 pm Not sure whether it would be better as some mods may like to hide circuit gui entirely and remake it on their own.
It also is likely to be much harder to implement since they are on a different backend and mixing them might cause issues.
I would still much prefer that over how it is right now
Specifically to address the problem "it looks like crap". Because there can be other things there, like logistic connection. If you want to hide the circuit connection frame specifically (because it's useless, like in your example, or because you have other plans), that's different.

And yes, it will be hard. But who knows how hard allowing to hide the circuit connection frame is.
Puke
Burner Inserter
Burner Inserter
Posts: 14
Joined: Mon Jun 13, 2016 7:00 pm
Contact:

Re: Hide "circuit connection" side gui

Post by Puke »

I'm gonna play the devil's advocate here, as someone who also mods guis attached to the right and has the same issue :

You can hide the circuit connection window by clicking its widget.
Sure, when it's opened, it doesn't look great. But you still can, currently, hide this window.
So the question isn't to have an option to hide it, really, but to make it appear somewhere else. (At the right of a modded attachment ? above ? to be able to detach it ?)

Point being : you can, as for now, hide it.
04-30-2025, 15-04-50.png
04-30-2025, 15-04-50.png (7.79 KiB) Viewed 100 times
Click the yellow button here.
Osmo
Inserter
Inserter
Posts: 48
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Hide "circuit connection" side gui

Post by Osmo »

Puke wrote: Wed Apr 30, 2025 1:04 pm You can hide the circuit connection window by clicking its widget.
I am perfectly aware of this. The problem is that it defaults to being shown and mods can't control it. And most players wont bother clicking that button every time they open that gui. All i want is for mods to be able to control it.
Post Reply

Return to “Modding interface requests”