breadwinner/scenes/ui/in_game_menu/in_game_menu_manager.gd
Hellie-xd 900f5eb6c3 kinda working options menu, but needs work
also audio lags on my pc, probably the cpu cant keep up with the audio
2026-08-12 01:47:15 +02:00

20 lines
438 B
GDScript

extends Control
func toggle_menu():
if Console.toggled:
visible = !visible
func _on_exit_pressed() -> void:
get_tree().quit()
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