How to open Settings from mod?

Place to get help with not working mods / modding interface.
User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 184
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

How to open Settings from mod?

Post by moon69 »

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.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: How to open Settings from mod?

Post by eradicator »

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.
User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 184
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

Re: How to open Settings from mod?

Post by moon69 »

Thanks eradicator.

Will look out for it... but does that mean there is no way to open the standard settings UI from a mod?
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: How to open Settings from mod?

Post by eradicator »

moon69 wrote: Sat Nov 03, 2018 12:50 am no way to open the standard settings UI from a 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.
Post Reply

Return to “Modding help”