Browse Source

hide exit button on web

Arnaud Vergnet 2 years ago
parent
commit
488e3e818e
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      scenes/MainMenu.gd

+ 4
- 0
scenes/MainMenu.gd View File

@@ -2,8 +2,12 @@ extends Control
2 2
 
3 3
 var MAIN_MENU_MUSIC = "res://music/menu_principal.ogg"
4 4
 
5
+onready var exit_button = $MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/MarginContainer2/ExitButton
6
+
5 7
 func _ready():
6 8
 	BackgroundMusic.crossfade_to(MAIN_MENU_MUSIC, -10, 1)
9
+	if OS.get_name() == "HTML5":
10
+		exit_button.hide()
7 11
 
8 12
 
9 13
 func load_main_game():

Loading…
Cancel
Save