Пример #1
0
 ////////////////////////////////////////////////////////////////////////
 ///
 /// @fn public void toggleDebugOutput()
 /// @brief Bloque ou debloque l'affichage global.
 /// @return Aucune.
 ///
 ////////////////////////////////////////////////////////////////////////
 public void toggleDebugOutput()
 {
     if (FonctionsNatives.obtenirAffichageGlobal() == 0)
     {
         FonctionsNatives.WriteLine("Affichage bloque. On debloque");
         FonctionsNatives.bloquerAffichageGlobal(1);
         Program.myCustomConsole.Show();
         if (Program.mMenu.modeJeuMain != null)
         {
             Program.myCustomConsole.Show();
             Program.mMenu.modeJeuMain.Focus();
         }
     }
     else
     {
         FonctionsNatives.WriteLine("Affichage permis. On bloque");
         FonctionsNatives.bloquerAffichageGlobal(0);
         Program.myCustomConsole.Hide();
     }
 }