Class ModToggleOption
A mod option class for handling an option that can be either ON or OFF.
public class ModToggleOption : ModOption<bool, ToggleChangedEventArgs>
- Inheritance
-
ModToggleOption
- Inherited Members
- Extension Methods
Properties
AdjusterComponent
The Adjuster for this OptionItem.
public override Type AdjusterComponent { get; }
Property Value
Tooltip
The tooltip to show when hovering over the option.
public string Tooltip { get; }
Property Value
Methods
AddToPanel(uGUI_TabbedControlsPanel, int)
The base method for adding an object to the options panel
public override void AddToPanel(uGUI_TabbedControlsPanel panel, int tabIndex)
Parameters
panel
uGUI_TabbedControlsPanel- The panel to add the option to.
tabIndex
int- Where in the panel to add the option.
Create(string, string, bool, string)
Adds a new ModToggleOption to this instance.
public static ModToggleOption Create(string id, string label, bool value, string tooltip = null)
Parameters
id
string- The internal ID for the toggle option.
label
string- The display text to use in the in-game menu.
value
bool- The starting value.
tooltip
string- The tooltip to show when hovering over the option. defaults to no tooltip.