Ejemplo n.º 1
0
 public void Hide()
 {
     DebugMenu.OnDoneFunc onDoneFunc = this.onDone;
     this.onDone = null;
     this.ClearListeners();
     this.menuRoot.Hide(null);
     if (onDoneFunc != null)
     {
         onDoneFunc();
     }
 }
Ejemplo n.º 2
0
 public void Show(GuiWindow prev, DebugMenu.OnDoneFunc onDone)
 {
     if (this.menuRoot == null)
     {
         this.Setup();
     }
     this.onDone = onDone;
     this.ignoreFirstFramesDestroyUnity = 2;
     this.currentText = string.Empty;
     this.dirListener = this._input.RegisterMoveDir(new MappedInput.MoveDirEventFunc(this.GotKeyDir), -1);
     this.menuRoot.Show(null, prev);
     this.UpdateValue(true);
     this.blinkTimer = this._blinkTime;
     this.ShowTextInput();
 }