Page 1 of 1

How to achieve volume slider

Posted: Thu Mar 26, 2026 6:05 pm
by MateuszCOMPANY
My mod have volume adjustment and I can't achieve slider in mod menu settings.
I only can get box to write digits or opening pop menu with defined values

Re: How to achieve volume slider

Posted: Fri Mar 27, 2026 12:03 pm
by Osmo
You cannot.

Re: How to achieve volume slider

Posted: Fri Mar 27, 2026 1:38 pm
by MateuszCOMPANY
:cry:

Re: How to achieve volume slider

Posted: Fri Mar 27, 2026 8:03 pm
by quyxkh
You can, you can hook on_gui_opened so it instead does whatever you want under any conditions you want, the end of that thread is where we arrived at the way we liked, adapting that looks easy.

Basically it's just when a gui opens, if it's one of your special items immediately close it and start watching whatever you want, here you could start watching on_player_selection_changed and stop watching as soon as they move away from one of your slider boxes or lamps or whatever.

Re: How to achieve volume slider

Posted: Sat Mar 28, 2026 11:22 am
by Osmo
quyxkh wrote: Fri Mar 27, 2026 8:03 pm You can, you can hook on_gui_opened so it instead does whatever you want under any conditions you want, the end of that thread is where we arrived at the way we liked, adapting that looks easy.
This doesn't work for mod settings, settings menu is not a gui you can interact with in control stage. Mod settings are either boolean, a number, a color or a string. For numbers and strings, its either a textfield or a dropdown with predefined values. It cannor be a slider, but you can make an interface request for it, it will be a good feature.

Re: How to achieve volume slider

Posted: Sun Mar 29, 2026 6:25 am
by quyxkh
You can't override the mod settings gui, that's true, but you can supplement it. Last I checked it takes six? seven? separate steps to change even the simplest mod settings through the generic mod-settings gui, or you could provide a hotkey that gets it done a different way.