Skip to content

M_MSCLoader_Settings_AddCheckBoxGroup

piotrulos edited this page Apr 7, 2023 · 4 revisions

Settings.AddCheckBoxGroup Method

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

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

Syntax

C#

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

View Source

Parameters

 

mod
Type: MSCLoader.Mod
Your mod instance
settingID
Type: System.String
Unique settings ID for your mod
name
Type: System.String
Name of the setting
value (Optional)
Type: System.Boolean
Default Value for this setting
group (Optional)
Type: System.String
Group name (all checkboxes should have same group)
onValueChanged (Optional)
Type: System.Action
Function to execute when checkbox value change

Return Value

Type: SettingsCheckBoxGroup
SettingsCheckBoxGroup

See Also

Reference

Settings Class
MSCLoader Namespace

Clone this wiki locally