M_MSCLoader_Settings_AddCheckBox - piotrulos/MSCModLoader GitHub Wiki
Add checkbox to settings menu Can execute action when its value is changed.
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
- 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)
SettingsCheckBox
SettingsCheckBox