private void Pulse_Click(object sender, EventArgs e) { pulse = !pulse; if (pulse) { Pulse.ForeColor = Color.DodgerBlue; if (this.ModeBox.SelectedIndex == 0) { PulseTimer.Interval = 1; } if (this.ModeBox.SelectedIndex == 1) { PulseTimer.Interval = 1; } PulseTimer.Start(); light = false; Light.ForeColor = Color.Gray; } else { Pulse.ForeColor = Color.Gray; if (usb.colortimer.Enabled) { usb.colortimer.Stop(); } if (usb.colorchanger.Enabled) { usb.colorchanger.Stop(); } if (PulseTimer.Enabled) { PulseTimer.Stop(); } } }
public override void Initialize() { API.KeypressDelay = 333; API.PrintLine(" ------------------------------------------------------------"); API.PrintLine(" ------------ Welcome to HMonk v1.0.0 by Hivro --------------"); API.PrintLine(" ----- Please let me know if you have any suggestions -------"); API.PrintLine(" --- and I will work on them as best as I can, thank you! ---"); API.PrintLine(" ------------------------------------------------------------"); API.PrintLine(" ------------ WW = 30% --- BrM = 20% --- MW = N/A -----------"); PulseTimer.Start(); }
private void Pulsed(bool success) { Action action = () => Utilities.Radar.RefreshScreen(this, tp); if (success) { BeginInvoke(action); } action = () => PulseTimer.Start(); BeginInvoke(action); }