Brotato

Brotato

1,747 ratings
Mod Options - v0.4.2
3
   
Award
Favorite
Favorited
Unfavorite
GUI
File Size
Posted
Updated
14.332 KB
9 Mar, 2023 @ 3:27pm
26 Oct, 2024 @ 7:00am
8 Change Notes ( view )

Subscribe to download
Mod Options - v0.4.2

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)
2
25 Dec, 2024 @ 10:23pm
mody
jj.ziembicki
1
4 Aug, 2024 @ 8:22am
Bug: Mod Settings Don't Save if Subscribed to More Than 16 Mods in Total (Including This Mod)
KevinLGlory
0
16 Feb @ 1:20pm
crashing
digitale
61 Comments
3SBD 24 Jan @ 3:01pm 
how install
ZSJ 28 Dec, 2024 @ 11:30pm 
需要更新了,滴滴滴滴滴滴滴,作者,谢谢。
ZSJ 28 Dec, 2024 @ 11:15pm 
不起作用了,希望作者可以百忙之中抽空更新,非常感谢,
叮当喵喵喵~ 25 Dec, 2024 @ 6:13pm 
Please update
Dark Magician of Chaos 5 Dec, 2024 @ 9:43am 
Still got problems with this mod . Please update , thanks .
mamaligno32 1 Dec, 2024 @ 5:36am 
I'm trying to install mods but whenever I add one, when I open the game an error appears at the bottom of the screen and says that the mods are disabled, what can I do to make them work again? can you help me?
eltoro0815 24 Nov, 2024 @ 9:48am 
Hi:) The actual behaviour of this mod is:

- if you change the options of a mod, they are correctly saved in the file VERSION.json
- if you close the game and re-entry the mod options the displayed data is not synchron with your VERSION.json.

@Dami: can you verify this?
Xandrobe 8 Nov, 2024 @ 1:54pm 
update please!
就爱笑 1 Nov, 2024 @ 7:55pm 
The mod does not work
Lex Looter 31 Oct, 2024 @ 5:56am 
Hey dami,
Great job on the update! I've just made this an optional dep for Shared Loot Boxes
Cheers