M_MSCLoader_Settings_AddCheckBoxGroup - piotrulos/MSCModLoader GitHub Wiki

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.3.1.346

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

⚠️ **GitHub.com Fallback** ⚠️