コード例 #1
0
 /// <summary>
 /// Turn off all effects from selected mode
 /// </summary>
 public static void offLightAlgs()
 {
     if (effects)
     {
         if (Equalizer.getState())
         {
             Equalizer.stop();
         }
         else if (Volume.getState())
         {
             Volume.stop();
         }
         else if (Effects.Random.getState())
         {
             Effects.Random.stop();
         }
     }
     else if (animations)
     {
         if (Animations.Timer.getState())
         {
             Animations.Timer.stop();
         }
         else if (Smiles.getState())
         {
             Smiles.stop();
         }
         else if (Waterfall.getState())
         {
             Waterfall.stop();
         }
         else if (NyanCat.getState())
         {
             NyanCat.stop();
         }
     }
     Thread.Sleep(100);
 }
コード例 #2
0
 /// <summary>
 /// Turn on specified effect from selected mode
 /// </summary>
 public static void onLightAlg()
 {
     if (effects)
     {
         if (ei == 0)
         {
             Equalizer.start();
         }
         else if (ei == 1)
         {
             Volume.start();
         }
         else if (ei == 2)
         {
             Effects.Random.start();
         }
     }
     else if (animations)
     {
         if (ai == 0)
         {
             Animations.Timer.start();
         }
         else if (ai == 1)
         {
             Smiles.start();
         }
         else if (ai == 2)
         {
             Waterfall.start();
         }
         else if (ai == 3)
         {
             NyanCat.start();
         }
     }
 }