M_MSCLoader_Settings_AddCheckBox - piotrulos/MSCModLoader GitHub Wiki

AddCheckBox Method

Add checkbox 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_SettingsCheckBox">SettingsCheckBox</a> AddCheckBox(
	string settingID,
	string name,
	bool value = false,
	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
  Action  (Optional)
Function to execute when checkbox value change
  Boolean  (Optional)
Visible by default (default=true)

Return Value

SettingsCheckBox
SettingsCheckBox

See Also

Reference

Settings Class
MSCLoader Namespace

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