public void DoTerop(string msg, InputActionHandler endTeropCallback)
 {
     if(!m_isShowing) {
         m_endTeropCallback = endTeropCallback;
         StartCoroutine(_DoTerop(msg));
     }
 }
Example #2
0
        private InputActionHandler GetInputAction(Key key)
        {
            if(!KeyHandlers.ContainsKey(key))
                KeyHandlers[key] = new InputActionHandler();

            return KeyHandlers[key];
        }
 public void DoQuestClear(string questName, InputActionHandler endTeropCallback)
 {
     if(!m_isShowing) {
         m_endTeropCallback = endTeropCallback;
         StartCoroutine(_DoQuestClear(questName));
     }
 }
 public void DoCutsceneWithMessages(List<string> msgs, InputActionHandler endCutSceneConfirmAction)
 {
     if(!m_isShowing) {
         m_endCutSceneConfirmAction = endCutSceneConfirmAction;
         StartCoroutine(_ShowWindow(msgs));
     } else {
         foreach(string m in msgs) {
             m_msgQueue.Enqueue(m);
         }
     }
 }
Example #5
0
    public void DoCutsceneWithMessages(List<string> msgs, InputActionHandler h)
    {
        if(m_cutScene.IsOpen() ) {
            m_cutScene.DoCutsceneWithMessages(msgs, h);
        } else {
            // push stack to prevent getting multiple show window event
            UserInput.GetUserInput().PushActionEventStack();
            m_cutScene.ShowWindow();

        //			foreach(WindowController w in m_windowStack) {
                // TODO: hide
        //			}
            m_windowStack.Push(m_cutScene);
            m_cutScene.DoCutsceneWithMessages(msgs, h);
        }
    }
 public void SetDelegateConfirmAction(InputActionHandler h)
 {
     m_delegateConfirmAction = h;
 }
 public void HideWindow()
 {
     m_delegateConfirmAction = null;
     m_indicator.setEnabled(false);
 }
 private void Awake()
 {
     inputActionHandler = GetComponent <InputActionHandler>();
 }
Example #9
0
 public void DoTerop(string msg, InputActionHandler h)
 {
     m_terop.DoTerop(msg, h);
 }
 public void AddToJumpEvent(InputActionHandler h)
 {
     EnsureActionStackReady();
     m_actionStack.Peek ().jumpButtonEvent += h;
 }
 public void AddToConformCancelEvent(InputActionHandler confirm, InputActionHandler cancel)
 {
     EnsureActionStackReady();
     m_actionStack.Peek ().confirmButtonEvent += confirm;
     m_actionStack.Peek ().cancelButtonEvent += cancel;
 }
 public void RemoveFromStatusMenuEvent(InputActionHandler h)
 {
     EnsureActionStackReady();
     m_actionStack.Peek ().statusMenuButtonEvent -= h;
 }
 public void RemoveFromMoveEvent(InputActionHandler h)
 {
     EnsureActionStackReady();
     m_actionStack.Peek ().moveButtonEvent -= h;
 }
 public void DoTerop(string msg,InputActionHandler h)
 {
     menuGui.DoTerop(msg,h);
 }
 public void DoCutsceneWithMessages(List<string> msgs,InputActionHandler h)
 {
     menuGui.DoCutsceneWithMessages(msgs,h);
 }
 public void MessageAndWait(string msg, InputActionHandler h = null)
 {
     messageGui.AppendMessage(msg);
     menuGui.ShowIndicatorAndWait(h);
     // pbcontrol.show&wait
 }
Example #17
0
 public void DoQuestClear(string questName, InputActionHandler h)
 {
     m_questClear.DoQuestClear(questName, h);
 }
 public void AddToMoveEvent(InputActionHandler h)
 {
     EnsureActionStackReady();
     m_actionStack.Peek ().moveButtonEvent += h;
 }
Example #19
0
 public void ShowIndicatorAndWait(InputActionHandler h = null)
 {
     // push stack to prevent getting multiple show window event
     if( !m_pbControl.IsOpen() ) {
         m_pbControl.SetDelegateConfirmAction(h);
         UserInput.GetUserInput().PushActionEventStack();
         m_pbControl.ShowWindow();
         m_windowStack.Push(m_pbControl);
     }
 }
 public void AddToStatusMenuEvent(InputActionHandler h)
 {
     EnsureActionStackReady();
     m_actionStack.Peek ().statusMenuButtonEvent += h;
 }