Skip to content
Conner Olsen edited this page Jun 8, 2026 · 9 revisions

CMM Dropdown

You can create a dropdown using cmm_register_dropdown_setting:

cmm_example_register_mod = {
	cmm_register_dropdown_setting = {
		mod_id = cmm_example
		setting_id = example_dropdown
		tab_id = general
		group_id = general_values
		default_index = 1  # The default selected option (starting from 1)
		option_count = 3   # The total number of options
	}
}

That's it - the dropdown works automatically.

Individual dropdown options can have aliases that set a variable when selected, and optional description tooltips.

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

Multiselector Layout

Call cmm_set_dropdown_multiselector after registering a dropdown to swap the dropdown control for a row of side-by-side buttons (one per option, the currently-selected button disabled). Best suited to dropdowns with up to 4 options.

cmm_register_dropdown_setting = {
	mod_id = cmm_example
	setting_id = example_position
	tab_id = general
	group_id = layout
	default_index = 1
	option_count = 3
}
cmm_set_dropdown_multiselector = { setting = cmm_example__example_position }

The stored value, default index, and on-changed callback all behave the same as a regular dropdown - only the row UI changes.

Clone this wiki locally