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
+14
View File
@@ -18,15 +18,29 @@ var _play_sound := false
func _ready() -> void:
_load_current_settings()
_connect_window_factor_buttons()
fullscreen_button.grab_focus()
if OS.get_name() == "Web":
_setup_for_web()
master_slider.grab_focus()
_play_sound = true
get_viewport().gui_focus_changed.connect(_on_gui_focus_changed)
func _setup_for_web() -> void:
$%FullscreenLabel.hide()
$%WindowFactorLabel.hide()
fullscreen_button.hide()
window_factor_buttons.hide()
master_slider.focus_neighbor_top = back_button.get_path()
back_button.focus_neighbor_bottom = master_slider.get_path()
func _connect_window_factor_buttons() -> void:
for child in window_factor_buttons.get_children():
if child is Button: