10 static Color colorNormal = Color.Green;
11 static Color colorWarning = Color.Yellow;
12 static Color colorError = Color.Red;
26 Debug.Error(
"Invalid color selected");
32 static string GetColorString(Color color)
34 return "0.5 0.5 0.5 0.5";
40 return GetColorString(GetColorFromEnum(colorStyle));
48 protected bool m_bUseStyleValue;
50 [
Attribute(
"0", UIWidgets.ComboBox,
"Color style to be applied",
"", ParamEnumArray.FromEnum(
UiStyleColors) )]
53 protected Widget m_wRoot;
56 override void HandlerAttached(Widget w)
64 protected void ApplyColorization()
66 Color c =
SCR_UIStyle.GetColorFromEnum(m_eColorValue);
71 bool IsUsingSyleValue()
73 return m_bUseStyleValue;
77 void SetUsingStyleValue(
bool enable)
79 m_bUseStyleValue = enable;
91 if (style == m_eColorValue)
94 m_bUseStyleValue = style;