public void SetFocused(bool value) { if (IsFocused == value) { return; } IsFocused = value; //UpdateColor(); m_cursorPosition = m_text.Length; UpdateCursor(0, 0); WidgetManager.UpdateFocus(this, value); //WidgetManager.UpdateFocus(this, true); }
public void SetFocused(bool value) { if (IsFocused == value) { return; } if (!Enabled) { return; } IsFocused = value; m_cursorPosition = m_text.Length; UpdateCursor(0); WidgetManager.UpdateFocus(this, value); }
public void SetFocused(bool value) { if (m_focused == value) { return; } m_focused = value; if (!string.IsNullOrEmpty(m_focusImage)) { BackgroundTexture = value ? m_focusImage : Style.BackgroundTexture; } //UpdateColor(); m_cursorPosition = m_text.Length; UpdateCursor(0); UpdateColor(); WidgetManager.UpdateFocus(this, value); //WidgetManager.UpdateFocus(this, true); }
public override void Remove() { WidgetManager.UpdateFocus(this, false); base.Remove(); }