Class TooltipColors
Centralized color strings for tooltip rich text. Colors are runtime-configurable via Initialize(string, string, string, string) and default to sensible fallback values. All hex color values include # prefix and alpha, compatible with Unity's rich text system.
public static class TooltipColors
- Inheritance
-
TooltipColors
- Inherited Members
Fields
DEFAULT_LABEL
Default fallback: purple (#a66ef5FF).
public const string DEFAULT_LABEL = "#a66ef5FF"
Field Value
DEFAULT_STAT
Default fallback: white (#FFFFFFFF).
public const string DEFAULT_STAT = "#FFFFFFFF"
Field Value
DEFAULT_TITLE
Default fallback: orange (#f5ad6eFF).
public const string DEFAULT_TITLE = "#f5ad6eFF"
Field Value
DEFAULT_VALUE
Default fallback: green (#32a879FF).
public const string DEFAULT_VALUE = "#32a879FF"
Field Value
Properties
Label
Purple color for labels, descriptions, and secondary text.
public static string Label { get; }
Property Value
Stat
White color for stat values and general numeric display.
public static string Stat { get; }
Property Value
Title
Orange color for titles, names, and headers.
public static string Title { get; }
Property Value
Value
Green color for attribute values and positive numbers.
public static string Value { get; }
Property Value
Methods
Initialize(string, string, string, string)
Initializes tooltip colors from hex strings (e.g., "#RRGGBBAA"). Call after loading the UI theme. Null or empty values keep the current color.
public static void Initialize(string titleColor, string labelColor, string valueColor, string statColor)