Beispiel #1
0
        public void Update(SAMTime gameTime, InputState istate)
        {
            root.Update(gameTime, istate);

            OnUpdate(gameTime, istate);

            if (FocusedElement != null && !FocusedElement.Alive)
            {
                FocusedElement = null;
            }

            UpdateToasts(gameTime);
        }
Beispiel #2
0
 public void AddElement(HUDElement e)
 {
     root.AddElement(e);
 }
Beispiel #3
0
 public void AddModal(HUDElement e, bool closeOnOutOfBoundsOrBackKey, float dim = 0f, float dimTime = 0f)
 {
     root.AddElement(new HUDModalDialog(root.NonToastChildrenMaxDepth + 1, e, dim, dimTime, closeOnOutOfBoundsOrBackKey));
 }