Exemple #1
0
 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;
         }
     }
 }
Exemple #2
0
 internal void SetIndicator(ref SCMT_Traction.Indicator i, int x)
 {
     i.Value             = x;
     i.Timer.TimerActive = false;
     i.Timer.TimeElapsed = 0;
 }
Exemple #3
0
 internal static void BlinkIndicator(ref SCMT_Traction.Indicator i, int x)
 {
     i.Value             = x;
     i.Timer.TimeElapsed = 0;
     i.Active            = true;
 }