Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 public override void Remove()
 {
     WidgetManager.UpdateFocus(this, false);
     base.Remove();
 }