mirror of
https://github.com/mr0xb/godot-flashcards.git
synced 2026-08-28 04:54:57 -04:00
19 lines
690 B
GDScript
19 lines
690 B
GDScript
extends Control
|
|
|
|
@onready var manage_decks_btn = $MarginContainer/VBoxContainer/MenuButtons/ManageDecksButton
|
|
@onready var view_progress_btn = $MarginContainer/VBoxContainer/MenuButtons/ViewProgressButton
|
|
@onready var quit_btn = $MarginContainer/VBoxContainer/MenuButtons/QuitButton
|
|
|
|
func _ready() -> void:
|
|
manage_decks_btn.pressed.connect(_on_manage_decks_pressed)
|
|
view_progress_btn.pressed.connect(_on_view_progress_pressed)
|
|
quit_btn.pressed.connect(_on_quit_pressed)
|
|
|
|
func _on_manage_decks_pressed() -> void:
|
|
GameManager.open_deck_manager()
|
|
|
|
func _on_view_progress_pressed() -> void:
|
|
print("View progress - not implemented yet")
|
|
|
|
func _on_quit_pressed() -> void:
|
|
get_tree().quit()
|