Is there a way for a mod to open the settings dialog (esc - Options - Mod Settings)?
Even better would be to open direct to the "Per player" tab, scrolled to the required mod!
I'm moving some settings to settings.lua "runtime-per-user" and want to provide a shortcut from the mod gui.
How to open Settings from mod?
- eradicator
- Smart Inserter

- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: How to open Settings from mod?
In 0.17 you will be able to directly write per-map and per-user settings from the API. I.e. you can implement your own gui for it. (And i just searched 5 minutes but can't find the original thread where this was discussed...)
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: How to open Settings from mod?
Thanks eradicator.
Will look out for it... but does that mean there is no way to open the standard settings UI from a mod?
Will look out for it... but does that mean there is no way to open the standard settings UI from a mod?
- eradicator
- Smart Inserter

- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: How to open Settings from mod?
Yes. Not possible.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
