icon + no quit button on web
This commit is contained in:
parent
45e9b99f80
commit
720466f136
5 changed files with 44 additions and 4 deletions
|
@ -12,11 +12,15 @@ var forest = preload(\"res://levels/forest/level.tscn\")
|
|||
var night = preload(\"res://levels/night/level.tscn\")
|
||||
|
||||
func _ready() -> void:
|
||||
var os_name = OS.get_name()
|
||||
if os_name == \"Web\": ## we can't quit the game on web
|
||||
$PauseMenu/VBoxContainer/Btn_Quit.hide()
|
||||
|
||||
$VictoryScreen.hide()
|
||||
$Informations.hide()
|
||||
$PauseMenu.hide()
|
||||
## Add the version of the game and the name of the OS to the footer of the start menu
|
||||
$StartMenu/VBoxContainer/MarginContainer2/Notice.text += \" - build \" + ProjectSettings.get_setting(\"application/config/version\") + \" (\" + OS.get_name() + \")\"
|
||||
$StartMenu/VBoxContainer/MarginContainer2/Notice.text += \" - build \" + ProjectSettings.get_setting(\"application/config/version\") + \" (\" + os_name + \")\"
|
||||
|
||||
func start_level(level_scene: PackedScene) -> void:
|
||||
$VictoryScreen.hide()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue