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
AdvancedExposeAlphaChannel
When using Advanced UI, whether to show the Alpha controls
public bool AdvancedExposeAlphaChannel { 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
paneluGUI_TabbedControlsPanel- The panel to add the option to.
tabIndexint- 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
idstring- The internal ID for the Color option.
labelstring- The display text to use in the in-game menu.
Returns
Create(string, string, Color, bool, string, bool)
Creates a new ModColorOption instance.
public static ModColorOption Create(string id, string label, Color value, bool advanced = false, string tooltip = null, bool advancedExposeAlphaChannel = true)
Parameters
idstring- The internal ID for the Color option.
labelstring- The display text to use in the in-game menu.
valueColor- The starting value.
advancedbool- Whether to use an advanced display.
tooltipstring- The tooltip to show when hovering over the options.
advancedExposeAlphaChannelbool- When using advanced display. Whether to expose alpha channel control.