土豆兄弟(Brotato)

土豆兄弟(Brotato)

2,412 个评价
Mod Options - v0.4.2
2
3
   
奖励
收藏
已收藏
取消收藏
GUI
文件大小
发表于
更新日期
14.332 KB
2023 年 3 月 9 日 下午 3:27
2024 年 10 月 26 日 上午 7:00
8 项改动说明 ( 查看 )

订阅以下载
Mod Options - v0.4.2

描述
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)
热门讨论 查看全部(3)
5
8 月 18 日 下午 12:30
crashing
Digitale9
2
2024 年 12 月 25 日 下午 10:23
mody
jj.ziembicki
1
2024 年 8 月 4 日 上午 8:22
Bug: Mod Settings Don't Save if Subscribed to More Than 16 Mods in Total (Including This Mod)
KevinLGlory
74 条留言
chemicalvamp 9 月 24 日 下午 8:27 
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..
Grimes 9 月 20 日 下午 11:42 
is there a way for mods to be enabled and disabled without exiting and reloading the game?
最佳老铁 9 月 16 日 上午 6:02 
It doesn't work.I can't find 'Mods' in settings menu
半山居雾 8 月 31 日 上午 3:17 
very good
pumpkinharp8804 8 月 11 日 上午 10:00 
mine just does not show how to fix?
Spidna 7 月 16 日 上午 10:03 
@ninja_red15 it's in the vanilla Options menu > Mods.
Ninja_red15 6 月 9 日 下午 3:21 
how do i use it
test 5 月 30 日 上午 7:19 
what do you mean by update this MOD when it works fine
The 4 月 26 日 上午 10:07 
I don't think this will be updated unless someone else picks it up tbh
_listd 4 月 13 日 下午 5:56 
please update