3 protected int m_SelectorType = 0;
35 override bool OnMouseEnter(
Widget w,
int x,
int y)
42 m_ParentClass.OnFocus(
m_Root.GetParent(), -1, m_SelectorType);
43 #ifndef PLATFORM_CONSOLE
44 m_ParentClass.OnMouseEnter(
m_Root.GetParent().GetParent(),
x,
y);
50 if (menu && menu.IsInherited(CharacterCreationMenu))
52 menu.OnFocus(
m_Root.GetParent(), -1, m_SelectorType);
53 menu.OnMouseEnter(
m_Root.GetParent().GetParent(),
x,
y);
56 #ifndef PLATFORM_CONSOLE
59 ColorHighlightConsole(w);
62 m_ParentClass.OnFocus(
m_Root.GetParent(), -1, m_SelectorType);
71 #ifdef PLATFORM_CONSOLE
72 if (IsFocusable(enterW))
78 m_ParentClass.OnFocus(
null,
x,
y);
79 #ifndef PLATFORM_CONSOLE
80 m_ParentClass.OnMouseLeave(
m_Root.GetParent().GetParent(), enterW,
x,
y);
86 if (menu && menu.IsInherited(CharacterCreationMenu))
88 menu.OnFocus(
null,
x,
y);
89 menu.OnMouseLeave(
m_Root.GetParent().GetParent(), enterW,
x,
y);
92 #ifndef PLATFORM_CONSOLE
95 ColorNormalConsole(w);
98 m_ParentClass.OnFocusLost(w,
x,
y);
105 override bool OnFocus(
Widget w,
int x,
int y)
109 ColorHighlightConsole(w);
112 m_ParentClass.OnFocus(
m_Root.GetParent(), -1, m_SelectorType);
119 override bool OnFocusLost(
Widget w,
int x,
int y)
121 ColorNormalConsole(w);
124 m_ParentClass.OnFocusLost(w,
x,
y);
131 #ifndef PLATFORM_CONSOLE
144 #ifdef PLATFORM_CONSOLE
157 #ifdef PLATFORM_CONSOLE
164 void ColorHighlight(
Widget w)
169 ButtonSetColor(w,
ARGB(255, 255, 0, 0));
172 void ColorNormal(
Widget w)
177 int color_pnl =
ARGB(255, 255, 255, 255);
178 int color_lbl =
ARGB(255, 255, 255, 255);
180 ButtonSetColor(w, color_pnl);
182 Widget title_label = w.FindAnyWidget(w.GetName() +
"_label");
183 Widget option_label = w.FindAnyWidget(
"option_label");
187 title_label.SetColor(color_lbl);
192 option_label.SetColor(color_lbl);
196 void ColorDisabled(
Widget w)
201 int color_pnl =
ARGB(0, 0, 0, 0);
202 int color_lbl =
ARGB(120, 255, 255, 255);
204 ButtonSetColor(w, color_pnl);
206 Widget title_label = w.FindAnyWidget(w.GetName() +
"_label");
207 Widget option_label = w.FindAnyWidget(
"option_label");
211 title_label.SetColor(color_lbl);
216 option_label.SetColor(color_lbl);
220 void ButtonSetColor(
Widget w,
int color)
222 Widget option = w.FindAnyWidget(w.GetName() +
"_image");
226 option.SetColor(color);
230 void ColorHighlightConsole(
Widget w)
235 int color_pnl =
ARGB(255, 200, 0, 0);
236 int color_lbl =
ARGB(255, 255, 255, 255);
238 ButtonSetColorConsole(w, color_pnl);
239 ButtonSetAlphaAnimConsole(
null);
240 ButtonSetTextColorConsole(w, color_lbl);
243 void ColorNormalConsole(
Widget w)
248 int color_pnl =
ARGB(0, 0, 0, 0);
249 int color_lbl =
ARGB(255, 255, 255, 255);
251 ButtonSetColorConsole(w, color_pnl);
252 ButtonSetAlphaAnimConsole(
null);
253 ButtonSetTextColorConsole(w, color_lbl);
256 void ColorDisabledConsole(
Widget w)
261 int color_pnl =
ARGB(0, 0, 0, 0);
262 int color_lbl =
ARGB(120, 255, 255, 255);
264 ButtonSetColorConsole(w, color_pnl);
265 ButtonSetAlphaAnimConsole(
null);
266 ButtonSetTextColorConsole(w, color_lbl);
269 void ButtonSetColorConsole(
Widget w,
int color)
274 void ButtonSetAlphaAnimConsole(
Widget w)
279 Widget panel = w.FindAnyWidget(w.GetName() +
"_panel");
287 void ButtonSetTextColorConsole(
Widget w,
int color)
298 label.SetColor(color);
303 text.SetColor(color);
308 text2.SetColor(color);