 | OptionsMenuRegisterOptionsToggle Method |
Registers a new toggle button. It will be placed below all others that
are currently registered.
Namespace: spaar.ModLoaderAssembly: SpaarModLoader (in SpaarModLoader.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static void RegisterOptionsToggle(
string text,
OptionsToggle cb,
bool defaultValue = false,
int fontSize = 0
)
Parameters
- text
- Type: SystemString
The text to display on the button - cb
- Type: spaar.ModLoaderOptionsToggle
Callback to call when the button is clicked - defaultValue (Optional)
- Type: SystemBoolean
Starting state of the toggle - fontSize (Optional)
- Type: SystemInt32
Font size of the text on the button
See Also