internal static void ShowIndicator(ref SCMT_Traction.Indicator i, double elapsedTime) { if (i.Timer.TimerActive == true) { i.Timer.TimeElapsed += elapsedTime; if (i.Timer.TimeElapsed > i.Value * 1000) { i.Active = !i.Active; } } }
internal void SetIndicator(ref SCMT_Traction.Indicator i, int x) { i.Value = x; i.Timer.TimerActive = false; i.Timer.TimeElapsed = 0; }
internal static void BlinkIndicator(ref SCMT_Traction.Indicator i, int x) { i.Value = x; i.Timer.TimeElapsed = 0; i.Active = true; }