breadwinner/scenes/ui/in_game_menu/in_game_menu_manager.gd
Balogh Krisztián 18d9a149a3 added main menu
when you quit the game, it basically crashes and the audio lags for now.
changable audio is still not fixed, the child spatial_audio3d still plays too loud.
2026-08-16 22:38:23 +02:00

21 lines
510 B
GDScript

extends Control
func toggle_menu():
if Console.toggled:
visible = !visible
func _on_exit_pressed() -> void:
get_tree().change_scene_to_file("res://scenes/main_menu/main_menu.tscn")
visible = false
func _on_options_pressed() -> void:
%Selections.visible = false
%Options.visible = true
func _on_options_visibility_changed() -> void:
if not %Options.visible:
%Selections.visible = true
func _on_resume_button_pressed() -> void:
self.visible = false
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED