Skip to content
Conner Olsen edited this page Jun 25, 2026 · 7 revisions

CMM Slider

You can create a slider using cmm_register_slider_setting:

cmm_example_register_mod = {
	cmm_register_slider_setting = {
		mod_id = cmm_example
		setting_id = example_slider
		tab_id = general
		group_id = general_values
		default_value = 50
		min_value = 0
		max_value = 100
		step_value = 1
	}
}

The parameters are the same as numeric settings. Players can click on the track to jump to a position, double click to drag, or use the - / + buttons on either side.

That's it. The slider works automatically.

To run custom logic when the value changes, see Reacting to Changes.

Clone this wiki locally