Brotato

Brotato

2,543 ratings
Mod Options
2
3
   
Award
Favorite
Favorited
Unfavorite
GUI
File Size
Posted
Updated
54.368 KB
Mar 9, 2023 @ 3:27pm
Nov 2 @ 10:44am
12 Change Notes ( view )

Subscribe to download
Mod Options

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.
- (.2) updated for DLC release (game version 1.1.0.0-rc14)


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 (trust)
Popular Discussions View All (3)
5
Aug 18 @ 12:30pm
crashing
Digitale9
2
Dec 25, 2024 @ 10:23pm
mody
jj.ziembicki
1
Aug 4, 2024 @ 8:22am
Bug: Mod Settings Don't Save if Subscribed to More Than 16 Mods in Total (Including This Mod)
KevinLGlory
83 Comments
今晚打老虎 Nov 3 @ 12:12am 
你是我的神
KANA  [author] Nov 2 @ 2:07am 
@toomeybd thanks for reporting! Should be fixed now.
toomeybd Nov 1 @ 5:49pm 
Hey, this seems to work okay, but i get a weird crash only when going into mod options with a controller by pressing RB
Megusaka Oct 30 @ 3:05pm 
tried the updated version, panel works but some of materials get converted to the saved materials each wave with this mod
Eramar0b Oct 28 @ 11:39am 
Confirming Theoran's bug; the bug report displayed on startup points directly to this mod.
The game crashes on startup.
Theoran Oct 27 @ 9:56am 
Sadly, this mod does not work with the New Dawn update.
GlitchLinkOne Oct 22 @ 5:42pm 
update for da new beta!! now!! plz
test Oct 19 @ 3:35am 
where is the BUTTON!
eltoro0815 Oct 15 @ 1:47pm 
has a conflict with the current beta
chemicalvamp Sep 24 @ 8:27pm 
this is crashing my game on boot, is there...., am i missing a dependency? Is this supposed to work RN or is it just broken, i dont know..