New mod setting type: nil-setting

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

New mod setting type: nil-setting

Post by eradicator »

What?

A fake setting type that has no input field/box/etc. Used for visual purposes only.

Why?

If a mod has lots of settings or several categories of settings it would be nice to be able to add a header (with tooltip) inbetween different categories of settings. This would allow a layout similar to the tips&tricks screen indented levels.

I've also already seen other mods use bool-settings that don't do anything for this kind of thing. But the checkbox is confusing to the user.

nilsetting.png
nilsetting.png (13.62 KiB) Viewed 420 times

(I thought I'd seen a similar thread once but can't find it. Moderators please feel free to merge.)
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 interface requests”