Beispiel #1
0
 public override void HandleDialog(ref InputResult result)
 {
     if (Input.GetMouseButtonUp(0))
     {
         this.delegateInputHandler.LastActiveInputHandler = InputDelegatorHandler.InputType.Mouse;
         Vector3 worldPos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
         if (QuadMistConfirmDialog.IsShowing && QuadMistConfirmDialog.MessageSelect(worldPos))
         {
             result.Used();
         }
     }
 }
Beispiel #2
0
 public override void HandleDialog(ref InputResult result)
 {
     if (UIManager.Input.GetKeyTrigger(Control.Right))
     {
         this.delegateInputHandler.LastActiveInputHandler = InputDelegatorHandler.InputType.Keyboard;
         if (QuadMistConfirmDialog.IsOK)
         {
             QuadMistConfirmDialog.MessageSelect(false);
         }
     }
     if (UIManager.Input.GetKeyTrigger(Control.Left))
     {
         this.delegateInputHandler.LastActiveInputHandler = InputDelegatorHandler.InputType.Keyboard;
         if (!QuadMistConfirmDialog.IsOK)
         {
             QuadMistConfirmDialog.MessageSelect(true);
         }
     }
     if (UIManager.Input.GetKeyTrigger(Control.Confirm))
     {
         this.delegateInputHandler.LastActiveInputHandler = InputDelegatorHandler.InputType.Keyboard;
         result.Used();
     }
 }