Skip to content

M_MSCLoader_Settings_AddCheckBoxGroup

piotrulos edited this page Jan 15, 2026 · 9 revisions

AddCheckBoxGroup Method

Add checkbox group (radio buttons) to settings menu Can execute action when its value is changed.

Definition

Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.4.0.388

C#

public static <a href="T_MSCLoader_SettingsCheckBoxGroup">SettingsCheckBoxGroup</a> AddCheckBoxGroup(
	string settingID,
	string name,
	bool value = false,
	string group = null,
	Action onValueChanged = null,
	bool visibleByDefault = true
)

View Source

Parameters

  String
Unique settings ID for your mod
  String
Name of the setting
  Boolean  (Optional)
Default Value for this setting
  String  (Optional)
Group name (all checkboxes should have same group)
  Action  (Optional)
Function to execute when checkbox value change
  Boolean  (Optional)
Visible by default (default=true)

Return Value

SettingsCheckBoxGroup
SettingsCheckBoxGroup

See Also

Reference

Settings Class
MSCLoader Namespace

Clone this wiki locally