Class ModColorOption
A basic mod option class for handling an option that can be any UnityEngine.Color.
public class ModColorOption : ModOption<Color, ColorChangedEventArgs>
- Inheritance
-
ModColorOption
- Inherited Members
- Extension Methods
Properties
AdjusterComponent
The Adjuster for this OptionItem.
public override Type AdjusterComponent { get; }
Property Value
Advanced
Whether to use an advanced UI
public bool Advanced { get; set; }
Property Value
Tooltip
The tooltip to show when hovering over the option's items.
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)
Creates a new ModColorOption instance.
public static ModColorOption Create(string id, string label)
Parameters
id
string- The internal ID for the Color option.
label
string- The display text to use in the in-game menu.
Returns
Create(string, string, Color, bool, string)
Creates a new ModColorOption instance.
public static ModColorOption Create(string id, string label, Color value, bool advanced = false, string tooltip = null)
Parameters
id
string- The internal ID for the Color option.
label
string- The display text to use in the in-game menu.
value
Color- The starting value.
advanced
bool- Whether to use an advanced display.
tooltip
string- The tooltip to show when hovering over the options.