Brotato

Brotato

961 ratings
Mod Options - v0.4.1
3
   
Award
Favorite
Favorited
Unfavorite
GUI
File Size
Posted
Updated
14.839 KB
Mar 9, 2023 @ 3:27pm
Sep 5, 2023 @ 4:59pm
6 Change Notes ( view )

Subscribe to download
Mod Options - v0.4.1

Description
Adds a Mods setting menu under options
This mod does nothing by itself, it only allows other mods to have their options changed


current version : 0.4.1:
- added compatibility with the latest ModLoader. Thanks a lot to Pasha !
- (.1) added tooltips with localization. Thanks again to Pasha !! Simply add a "tooltip" field under your config key and set your localization key there.


0.3:
- added the possibility for color sliders in the options. Use a RGB or ARGB code to make the slider show up in the options. When the color is set by a user, the signal sent will pass a String argument with the color in the ARGB format ( see Color.to_html() )
- added some margin before the scrollbar
- (.1) cleared some error messages for devs


0.2:
- you can now have a "step" for the sliders like this : "your_config_parameter_step"
- for min and max slider values use "your_config_parameter_min" or "your_config_parameter_max"



for modders: check out the code in Elemento or See Player mod to get an idea of how to use it.

if you've got suggestions on features to add let me know in the comments !!!

similarly to Content Loader, you can grab the ModsConfigInterface pseudo singleton via get_node(), then receive its signal with connect(). it sends a "setting_changed" signal whenever a mod setting is changed.

var ModsConfigInterface = get_node("/root/ModLoader/dami-ModOptions/ModsConfigInterface")
ModsConfigInterface.connect("setting_changed", self, "your_modded_function")

currently it can handle numbers booleans and color hex codes (as string)


i will clean up this description soon
Popular Discussions View All (2)
1
Jun 27, 2023 @ 5:35pm
mody
jj.ziembicki
0
Feb 21 @ 2:20am
Bug: Mod Settings Don't Save if Subscribed to More Than 16 Mods in Total (Including This Mod)
KevinLGlory
40 Comments
UnKNowNLoVe EasySkins.com Feb 16 @ 12:53pm 
dont works mod
Kendrid Jan 17 @ 11:55pm 
Saves for me. 3x seems a fun amount. 10x was surviving, but my frames didn't. And I don't have a weak pc lol
test Dec 23, 2023 @ 5:48am 
yeah it wont save
DragN Daemonz Sep 19, 2023 @ 5:55pm 
same...nothing saves
CristoElMago Sep 13, 2023 @ 6:59pm 
The mod options don't save, if I close the game I have to set up all again.
w!ckeD Jul 29, 2023 @ 5:02pm 
Activating this mod makes the game horribly stutter.
Cacato Jul 26, 2023 @ 5:28pm 
I tried various combination of mods and this one alone it cause my game to stutter everytime enemies spawn, anyone else ?
DragN Daemonz Jul 22, 2023 @ 12:46pm 
Same
NudePenguin Jul 14, 2023 @ 9:44pm 
Mod Menu option is there but when you open it up, no options show up, its just a blank menu.
喃嘸佬 Jul 8, 2023 @ 8:38am 
I CANT LAUNCH THE GAME WITH THIS MOD ON