Пример #1
0
        private void debugger_Paused(object sender, PausedEventArgs e)
        {
            if (_isFirstDebugStop)
            {
                // ignore first pause
                _isFirstDebugStop = false;
                return;
            }

            ScriptView view = null;

            view = OpenFile(Debugger.FileName) as ScriptView;
            if (view != null)
            {
                view.ActiveLine = Debugger.LineNumber;
                if (e.Reason == PauseReason.Exception)
                {
                    view.ErrorLine = Debugger.LineNumber;
                }
            }
            if (!Debugger.Running)
            {
                Activate();
            }
            UpdateControls();
        }
Пример #2
0
 private void m_Template_TemplatePaused(object sender, PausedEventArgs e)
 {
     if (vlcControl.IsPlaying)
     {
         vlcControl.Pause();
     }
 }
Пример #3
0
 private void _template_TemplatePaused(object sender, PausedEventArgs e)
 {
     if (_mediaPlayer.IsPlaying)
     {
         _mediaPlayer.Pause();
     }
 }
 private void HandleSubmachinePausableNodeEntered(object sender, PausedEventArgs args)
 {
     if (SubmachinePausableNodeEntered != null)
     {
         SubmachinePausableNodeEntered(this, args);
     }
 }
Пример #5
0
 private void OnSubmachinePausableNodeEntered(PausedEventArgs args)
 {
     if (SubmachinePausableNodeEntered != null)
     {
         SubmachinePausableNodeEntered(this, args);
     }
 }
Пример #6
0
        protected virtual void HandleMachinePaused(object sender, PausedEventArgs args)
        {
            IsPaused = true;
            StopTiming();

            OnSubmachinePaused(args);
        }
Пример #7
0
    private void HandleGamePaused(PausedEventArgs isPaused)
    {
        EventHandler handler = GamePaused;

        if (handler != null)
        {
            handler(this, isPaused);
        }
    }
Пример #8
0
 private void OnSubmachinePaused(PausedEventArgs args)
 {
     if (SubmachinePaused != null)
     {
         SubmachinePaused(this, new SubmachineEventArgs()
         {
             Machine = Machine
         });
     }
 }
        protected override void OnPaused(PausedEventArgs args)
        {
            var pausableNode = CurrentNode as PausableNode;

            if (args == null && pausableNode != null)
            {
                args = new PausedEventArgs();
                args.PausedActivityNumber = pausableNode.Index;
            }
            base.OnPaused(args);
        }
 public override void PausedHandler(PausedEventArgs e)
 {
     if (e.IsPaused)
     {
         component.Pause();
     }
     else
     {
         component.Play();
     }
 }
Пример #11
0
 private static void OnPausedHandler(PausedEventArgs e)
 {
     if (e.IsPaused)
     {
         _playTimer.Stop();
     }
     else
     {
         _playTimer.Start();
     }
 }
 public override void PausedHandler(PausedEventArgs e)
 {
     if (e.IsPaused)
     {
         previousVelocity   = component.velocity;
         component.velocity = Vector3.zero;
     }
     else
     {
         component.velocity = previousVelocity;
     }
 }
Пример #13
0
 private void PausedHandler(PausedEventArgs e)
 {
     if (GameState.IsPaused)
     {
         img.sprite = playSprite;
         img.rectTransform.Rotate(0, 0, -90);
     }
     else
     {
         img.sprite = pauseSprite;
         img.rectTransform.Rotate(0, 0, 90);
     }
 }
 protected virtual void OnPaused(PausedEventArgs args)
 {
     if (Paused != null)
     {
         try
         {
             Paused(this, args);
         }
         catch (Exception e)
         {
             LogService.Log(LogType, LogMessageType.Error, GetType().Name,
                            e.GetType().Name + " while raising Paused event. (" + Name + "): " + e.Message, e);
         }
     }
 }
Пример #15
0
 private void OnPausedHandler(PausedEventArgs e)
 {
     // Toggle the visibility of the Pause GUI.
     transform.FindChild("Pause").gameObject.SetActive(e.IsPaused);
 }
 private void HandleSubmachinePausableNodeEntered(object sender, PausedEventArgs args)
 {
     OnPausableNodeEntered(args.PausedActivityNumber);
 }
Пример #17
0
 public abstract void PausedHandler(PausedEventArgs e);
Пример #18
0
 private void HandlePausableNodeEntered(object sender, PausedEventArgs args)
 {
     OnSubmachinePausableNodeEntered(args);
 }