Adding padding to mod settings window

Discuss coding questions, pull requests, and implementation details.
Post Reply
User avatar
DunnyOfPenwick
Posts: 275
Joined: Wed Apr 14, 2021 1:58 am
Location: Southeast US

Adding padding to mod settings window

Post by DunnyOfPenwick »

Is there some way to skip the rest of a panel (Page break) when displaying settings in the mod settings window?

I have several mod settings, and I want to prevent sections from being split across panels.

(Edit: right now I'm just adding several Reserved for future use sections to accomplish this)

User avatar
DunnyOfPenwick
Posts: 275
Joined: Wed Apr 14, 2021 1:58 am
Location: Southeast US

Re: Adding padding to mod settings window

Post by DunnyOfPenwick »

I've simplified things and removed some options from my mod, so I don't need this at the moment.

However, I still think a mod settings page break mechanism would be useful in the future.

User avatar
Ralzar
Posts: 2211
Joined: Mon Oct 07, 2019 4:11 pm
Location: Norway

Re: Adding padding to mod settings window

Post by Ralzar »

I solved the layout problem by inserting blank sections where the name was just one more blank space for each.

https://github.com/Ralzar81/LevelUp/blo ... tings.json

User avatar
Hazelnut
Posts: 3015
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Adding padding to mod settings window

Post by Hazelnut »

Nice, I wish I'd thought of that. Instead I've spent quite a bit of time moving section order around to get everything to fit as neatly as possible. Well now I know, I can apply a bit more control. :)
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

Post Reply