Page 1 of 1

Is there any way to modify existing GUI?

Posted: Mon Aug 14, 2023 4:11 am
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?

Re: Is there any way to modify existing GUI?

Posted: Mon Aug 14, 2023 6:27 am
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 992 times

Re: Is there any way to modify existing GUI?

Posted: Mon Aug 14, 2023 11:11 am
by Xorimuth

Re: Is there any way to modify existing GUI?

Posted: Tue Aug 15, 2023 12:57 am
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

Re: Is there any way to modify existing GUI?

Posted: Tue Aug 15, 2023 12:58 am
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