Removed exit button and video settings for web build

This commit is contained in:
2026-01-09 22:13:08 +03:00
parent ffdf0b0403
commit f7197d8f2a
4 changed files with 31 additions and 0 deletions
+9
View File
@@ -8,10 +8,19 @@ extends Control
func _ready() -> void:
if OS.get_name() == "Web":
_setup_for_web()
start_button.grab_focus()
get_viewport().gui_focus_changed.connect(_on_gui_focus_changed)
func _setup_for_web() -> void:
quit_button.hide()
start_button.focus_neighbor_top = options_button.get_path()
options_button.focus_neighbor_bottom = start_button.get_path()
func _on_gui_focus_changed(_node: Control) -> void:
SoundManager.play_ui_stream(SoundManager.ui_stream_select)