Is there any way to modify existing GUI?

Looking for a mod? Have a review on a mod you'd like to share?
Post Reply
peterwy22
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Feb 02, 2023 8:33 am
Contact:

Is there any way to modify existing GUI?

Post by peterwy22 »

I'm trying to add a checkbox to the train schedule GUI, but I don't see any documentation on modifying it, is it even possible at the moment?

Pi-C
Smart Inserter
Smart Inserter
Posts: 1654
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: Is there any way to modify existing GUI?

Post by Pi-C »

peterwy22 wrote:
Mon Aug 14, 2023 4:11 am
[…] is it even possible at the moment?
Not really. I suppose that's a protection against buggy mods making the vanilla GUIs unusable. The best thing you can do is using a relative GUI which will be anchored to some other GUI. Custom Color is an example for a mod that attaches its own GUI to vanilla GUIs:
relative-gui.png
relative-gui.png (105.38 KiB) Viewed 638 times
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!

Xorimuth
Filter Inserter
Filter Inserter
Posts: 625
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

Re: Is there any way to modify existing GUI?

Post by Xorimuth »

My mods
Content: Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Remote Configuration | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings

peterwy22
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Feb 02, 2023 8:33 am
Contact:

Re: Is there any way to modify existing GUI?

Post by peterwy22 »

Pi-C wrote:
Mon Aug 14, 2023 6:27 am
peterwy22 wrote:
Mon Aug 14, 2023 4:11 am
[…] is it even possible at the moment?
Not really. I suppose that's a protection against buggy mods making the vanilla GUIs unusable. The best thing you can do is using a relative GUI which will be anchored to some other GUI. Custom Color is an example for a mod that attaches its own GUI to vanilla GUIs:

relative-gui.png
Thanks, that was quite helpful

peterwy22
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Feb 02, 2023 8:33 am
Contact:

Re: Is there any way to modify existing GUI?

Post by peterwy22 »

Xorimuth wrote:
Mon Aug 14, 2023 11:11 am
Yes, relative GUIs are the way: https://github.com/ClaudeMetz/UntitledG ... nilla-GUIs
That's a really nice tut, thx a bunch

Post Reply

Return to “Questions, reviews and ratings”