public static void Play(Macro m) { if (m_Current != null) { if (m_Current.Playing && m_Current.Loop && !m.Loop) { m_PrevPlay = m_Current; } else { m_PrevPlay = null; } m_Current.Stop(); } else { m_PrevPlay = null; } LiftAction.LastLift = null; m_Current = m; m_Current.Play(); m_Timer.Macro = m_Current; m_Timer.Start(); if (Engine.MainWindow.WaitDisplay != null) { Engine.MainWindow.WaitDisplay.Text = ""; } }
public static void Play(Macro m) { ScriptManager.StopScript(); if (m_Current != null) { if (m_Current.Playing && m_Current.Loop && !m.Loop) { m_PrevPlay = m_Current; } else { m_PrevPlay = null; } m_Current.Stop(); } else { m_PrevPlay = null; } LiftAction.LastLift = null; m_Current = m; m_Current.Play(); m_Timer.Macro = m_Current; if (!Config.GetBool("StepThroughMacro")) { m_Timer.Start(); } if (Engine.MainWindow.WaitDisplay != null) { Engine.MainWindow.SafeAction(s => s.WaitDisplay.Text = ""); } }
public static void Play( Macro m ) { if ( m_Current != null ) { if ( m_Current.Playing && m_Current.Loop && !m.Loop ) m_PrevPlay = m_Current; else m_PrevPlay = null; m_Current.Stop(); } else { m_PrevPlay = null; } LiftAction.LastLift = null; m_Current = m; m_Current.Play(); m_Timer.Macro = m_Current; m_Timer.Start(); if ( Engine.MainWindow.WaitDisplay != null ) Engine.MainWindow.WaitDisplay.Text = ""; }