mirror of
https://github.com/mr0xb/godot-flashcards.git
synced 2026-08-27 20:44:56 -04:00
initial commit
This commit is contained in:
commit
94847a50a2
42 changed files with 2063 additions and 0 deletions
19
scenes/ui/main_menu/main_menu.gd
Normal file
19
scenes/ui/main_menu/main_menu.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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()
|
||||
Loading…
Reference in a new issue