/// <summary> /// Movees this frame to the top of the focus stack. /// Objects within it will have UI focus. /// </summary> public void TakeFocus() { _menuSystem.RemoveFromFocusStack(this); _menuSystem.AddToTopOfFocusStack(this); }
/// <summary> /// Take focus by creating a new focus frame, unfocusing anything /// presently in focus. /// </summary> public void TakeFocusNewFrame() => menuSystem.AddToTopOfFocusStack(new Frame(menuSystem, this));