7 m_Root =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/option_editbox.layout", parent);
9 m_Parent = parent.GetParent().GetParent();
11#ifdef PLATFORM_WINDOWS
52 m_ParentClass.OnFocus(
m_Root.GetParent(), -1, m_SelectorType);
53 m_ParentClass.OnMouseEnter(
m_Root.GetParent().GetParent(),
x,
y);
58 if (
menu &&
menu.IsInherited(CharacterCreationMenu))
60 menu.OnFocus(
m_Root.GetParent(), -1, m_SelectorType);
76 m_ParentClass.OnFocus(
null,
x,
y);
77 m_ParentClass.OnMouseLeave(
m_Root.GetParent().GetParent(),
enterW,
x,
y);
82 if (
menu &&
menu.IsInherited(CharacterCreationMenu))
133 m_EditBox.SetText(
value);
140 return m_EditBox.GetText();
151 m_EditBox.SetColor(
ARGB(255, 200, 0, 0));
163 m_EditBox.SetColor(
ARGB(140, 255, 255, 255));
void ~OptionSelectorEditbox()
override bool OnFocus(Widget w, int x, int y)
override bool OnChange(Widget w, int x, int y, bool finished)
override bool IsFocusable(Widget w)
override bool OnFocusLost(Widget w, int x, int y)
override void ColorHighlight(Widget w)
void OptionSelectorEditbox(Widget parent, string value, ScriptedWidgetEventHandler parent_menu, bool disabled)
override bool OnMouseEnter(Widget w, int x, int y)
override void ColorNormal(Widget w)
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
void SetValue(string value, bool update=true)
proto native CGame GetGame()
int ARGB(int a, int r, int g, int b)