hide exit button on web

This commit is contained in:
Arnaud Vergnet 2021-04-25 00:09:42 +02:00
parent c1d28ea050
commit 488e3e818e

View file

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