Exemplo n.º 1
0
 private void Pause_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(this, "Are you sure you want to pause the process?", "Confirmation required.", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         PauseRequest?.Invoke(this, EventArgs.Empty);
     }
 }
Exemplo n.º 2
0
        private IEnumerator PauseOut()
        {
            m_pauseLock = true;
            m_canvasAnim.SetBool("PauseVisible", false);
            yield return(new WaitForSeconds(1f));

            PauseRequest?.Invoke(this, false);
            m_canvasAnim.SetBool("OverlayPause", false);
            yield return(new WaitForSeconds(1f));

            PauseExit?.Invoke(this, null);
            m_fogCtrl.SetActive(m_retFogEnabled);
            m_pauseLock = false;
        }
Exemplo n.º 3
0
        public void Play_Pause_Video()
        {
            DataReqEventArgs eData = new DataReqEventArgs();

            if (PlayCtrlContent == "Play")
            {
                PlayRequest?.Invoke(this, eData);
                PlayCtrlContent = "Pause";
            }
            else
            {
                PauseRequest?.Invoke(this, eData);
                PlayCtrlContent = "Play";
            }
        }
Exemplo n.º 4
0
        private IEnumerator PauseIn()
        {
            PauseRequest?.Invoke(this, true);
            m_pauseLock     = true;
            m_retFogEnabled = m_fogCtrl.IsActive;
            m_fogCtrl.SetActive(false);
            yield return(new WaitForSeconds(.35f));

            m_canvasAnim.SetBool("OverlayPause", true);
            yield return(new WaitForSeconds(1f));

            PauseEnter?.Invoke(this, null);
            yield return(new WaitForSeconds(1f));

            m_canvasAnim.SetBool("PauseVisible", true);
            m_pauseLock = false;
        }