OptionToggle
Toggle between two values
Usage
Recommended
Adds a toggle to the UI
SettingsPage.AddOptionToggle("Toggle: ", UIToggleUpdated);
//elsewhere
public void UIToggleUpdated(bool newValue){
//handel changing values
}
Overloads : Start State & Text
Recommended
Sets custom text and the starting state
//Defaults to false
//Shows "It's so Over"
SettingsPage.AddOptionToggle(
"Label: ",
UIBoolTest,
false,
"We're So Back",
"It's so Over"
);
Last updated