7 m_Root =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/option_editbox.layout", parent);
8 #ifdef PLATFORM_CONSOLE
9 m_Parent = parent.GetParent().GetParent();
11 #ifdef PLATFORM_WINDOWS
17 m_ParentClass = parent_menu;
26 void ~OptionSelectorEditbox()
38 override void Disable()
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);
61 menu.OnMouseEnter(
m_Root.GetParent().GetParent(),
x,
y);
76 m_ParentClass.OnFocus(
null,
x,
y);
77 m_ParentClass.OnMouseLeave(
m_Root.GetParent().GetParent(), enterW,
x,
y);
82 if (menu && menu.IsInherited(CharacterCreationMenu))
84 menu.OnFocus(
null,
x,
y);
85 menu.OnMouseLeave(
m_Root.GetParent().GetParent(), enterW,
x,
y);
107 return (w ==
m_Parent || w == m_EditBox);
133 void SetValue(
string value,
bool update =
true)
135 m_EditBox.SetText(value);
142 return m_EditBox.GetText();
153 m_EditBox.SetColor(
ARGB(255, 200, 0, 0));
156 super.ColorHighlight(w);
166 m_EditBox.SetColor(
ARGB(140, 255, 255, 255));
169 super.ColorNormal(w);