示例#1
0
 /// <summary>
 /// Set focus from this parent menu item
 /// </summary>
 /// <param name="menuItem">Menu item.</param>
 /// <param name="OnExit">Action to do when dialog exits</param>
 public void SetFocus(IParentItem menuItem, Action <DialogType> OnExit = null)
 {
     this.OnExit = OnExit;
     Parent      = menuItem;
     hasFocus    = true;
     Parent.SetFocus(this);
 }
示例#2
0
 public void OnEnterPressed()
 {
     if (show)
     {
         dialog.OnEnterPressed();
     }
     else
     {
         show = true;
         Parent.SetFocus(this);
     }
 }
		public void Start(IParentItem parent)
		{
			Parent = parent;
			Parent.SetFocus (this);
			StartProgram ();
		}
 public void Start(IParentItem parent)
 {
     Parent = parent;
     Parent.SetFocus(this);
     StartProgram();
 }