Class OptionItem
The common abstract class to all items in the mod options page.
public abstract class OptionItem
- Inheritance
-
OptionItem
- Derived
- Inherited Members
- Extension Methods
Constructors
OptionItem(string, string)
Base constructor for all items in the options.
public OptionItem(string label, string id)
Parameters
label
string- The display text to show on the in-game menus.
id
string- The internal ID if this option.
Fields
parentOptions
Parent ModOptions for this option
protected ModOptions parentOptions
Field Value
Properties
AdjusterComponent
The Adjuster for this OptionItem.
public abstract Type AdjusterComponent { get; }
Property Value
Id
The internal ID that identifies this option.
public string Id { get; }
Property Value
Label
The display text to be shown for this option in the in-game menus.
public string Label { get; }
Property Value
OptionGameObject
UI GameObject for this option
public GameObject OptionGameObject { get; protected set; }
Property Value
- GameObject
Methods
AddToPanel(uGUI_TabbedControlsPanel, int)
The base method for adding an object to the options panel
public virtual 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.