Added mouse cursor hidding

This commit is contained in:
2026-01-11 17:50:07 +03:00
parent ff31781087
commit 157fbb9dbc
3 changed files with 8 additions and 0 deletions
+2
View File
@@ -11,6 +11,8 @@ func _ready() -> void:
if OS.get_name() == "Web":
_setup_for_web()
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
SoundManager.play_music_stream(SoundManager.music_stream_main_menu)
start_button.grab_focus()
+1
View File
@@ -35,6 +35,7 @@ func _on_continue_button_pressed() -> void:
SoundManager.play_ui_stream(SoundManager.ui_stream_decline)
get_tree().paused = false
hide()
Input.mouse_mode = Input.MOUSE_MODE_HIDDEN
func _on_main_menu_button_pressed() -> void: