Jump to content

Recommended Posts

What ways are available to make a mod configuration with more than a couple of settings more organized? For example, is a way have a blank line between groups of related settings, or a header/title for a group of settings, or even different tabs or pages or something similar? For the moment, I'm using a dummy setting for an empty line or a title to help a bit, as I saw done in other mods, which of course isn't really ideal, but it works, and is better than nothing:

configuration_options = {
{...}, --various options here...
{name = "blank", label ="              === Misc settings", options = { {description = "===", data = 0}, }, default = 0,},
{...}, --various options here...

It appears there's no way to do these sorts of things, but I could be wrong, or there could be some clever way (perhaps related to overriding something in modstab.lua, even?). Could there also be a way to nest options, or make options dependent on other options? In other words, make an option only show up or be accessible/editable if a different option is currently set to a specific setting.

I'm interested to hear about any techniques in general for making a mod configuration with many settings tidier or more organized.
Also, what in general is available and unavailable to access/do within modinfo.lua? And is there a documentation for these things anywhere?

Thanks.

edit:
Oh I just saw you already do the trick with the "empty" setting. That is all I know and also use :D

And since none of the more experienced modders did it different in their mods, I assume there is no better way =/

Edited by Serpens

Ah, and you can add your own interface for settings. But this is of course for experienced modders only. I have no clue how to do this.
But you could check following mods:
Waypoints, Geometric Placement

Edited by Serpens

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...