public override bool Update() { if (!base.Update()) { return(false); } if (m_needLayout) { Relayout(); } if (m_label != null) { m_label.Update(); } if (m_cursor != null) { m_cursor.Alpha = (int)(Math.Sin(WindowController.Instance.GetTime() / 1000.0f) * 255 + 128.5f); // blinks every 2 seconds m_cursor.Update(); } return(true); }
public override bool Update() { if (!base.Update()) { return(false); } if (m_needLayout) { Relayout(); } if (m_label != null) { m_label.Update(); } if (m_cursor != null) { m_cursor.Sprite.Alpha = (byte)(Math.Sin(WindowController.Instance.GetTime() / 1000.0f) * 64 + 191); // blinks every 2 seconds from 127 to 255 m_cursor.Update(); } return(true); }
public override bool Update() { if (!base.Update()) { return(false); } if (m_needLayout) { Relayout(); } if (m_label != null) { m_label.Update(); } if (m_needAnimate) { DoAnimateAppear(m_needAnimateRandom); } return(true); }