コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <summary>
 /// Take focus by creating a new focus frame, unfocusing anything
 /// presently in focus.
 /// </summary>
 public void TakeFocusNewFrame() => menuSystem.AddToTopOfFocusStack(new Frame(menuSystem, this));