Example #1
0
 private void HideAll()
 {
     ui.Hide();
     menu.Hide();
     winScreen.Hide();
     DeathScreen.Hide();
 }
Example #2
0
 //Hides all the ui elements that are in the ui scen
 public void HideAllUI()
 {
     //Hide all the ui elements, used when transitioning from one scene to another
     menu.Hide();
     wait.Hide();
     programming.Hide();
     run.Hide();
     win.Hide();
     lose.Hide();
 }
Example #3
0
 public void StartGame()
 {
     LoadHighScore();
     _waveTimer.Start();
     GUI.InGame();
     GUI.UpdateHighScore(highScore);
     GUI.ShowGetReady(score);
     _world = (World)_worldScene.Instance();
     AddChild(_world);
     _world.Connect("OnGameOver", this, nameof(GameOver));
     _world.Connect("OnWaveWon", this, nameof(WaveWon));
     _world.Hide();
     _victoryAudio.Play();
     GetTree().Paused = true;
 }
Example #4
0
 private void HideAll()
 {
     //Hide all the UI screens
     menuPanel.Hide();
     winPanel.Hide();
     losePanel.Hide();
     creditsPanel.Hide();
     uiPanel.Hide();
     //Hide the background
     background.Hide();
     //Hide all the buttons
     startBtn.Hide();
     exitBtn.Hide();
     menuBtn.Hide();
     smallExitBtn.Hide();
     creditsBtn.Hide();
 }
Example #5
0
 public static void HideForSeconds(float sec, Node2D node2D, SceneTree sceneTree)
 {
     node2D.Hide();
     sceneTree.CreateTimer(sec).Connect("timeout", node2D, "show");
 }
Example #6
0
 public void HideBlood()
 {
     _bloodParticlesHolder.Hide();
 }