Page 1 of 1
Hide "circuit connection" side gui
Posted: Thu Apr 24, 2025 3:15 pm
by Osmo

- изображение.png (13.75 KiB) Viewed 276 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
- изображение.png (679.44 KiB) Viewed 276 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.
Re: Hide "circuit connection" side gui
Posted: Thu Apr 24, 2025 4:29 pm
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.
Re: Hide "circuit connection" side gui
Posted: Thu Apr 24, 2025 5:13 pm
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
Re: Hide "circuit connection" side gui
Posted: Thu Apr 24, 2025 8:12 pm
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.
Re: Hide "circuit connection" side gui
Posted: Wed Apr 30, 2025 1:04 pm
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 (7.79 KiB) Viewed 101 times
Click the yellow button here.
Re: Hide "circuit connection" side gui
Posted: Thu May 01, 2025 8:30 am
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.