public override bool Update() { if (!base.Update()) { return(false); } if (m_needLayout) { Relayout(); } if (m_labels != null) { foreach (LabelObject label in m_labels) { 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_imageInited) { PrepareImage(); } if (m_imageObject != null) { m_imageObject.Update(); } return(true); }