public void Update(SAMTime gameTime, InputState istate) { root.Update(gameTime, istate); OnUpdate(gameTime, istate); if (FocusedElement != null && !FocusedElement.Alive) { FocusedElement = null; } UpdateToasts(gameTime); }
public void AddElement(HUDElement e) { root.AddElement(e); }
public void AddModal(HUDElement e, bool closeOnOutOfBoundsOrBackKey, float dim = 0f, float dimTime = 0f) { root.AddElement(new HUDModalDialog(root.NonToastChildrenMaxDepth + 1, e, dim, dimTime, closeOnOutOfBoundsOrBackKey)); }