initial commit

This commit is contained in:
mr0xb 2025-12-27 00:20:33 -05:00
commit 94847a50a2
42 changed files with 2063 additions and 0 deletions

View 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()

View file

@ -0,0 +1 @@
uid://u6qhaped7c3i

View file

@ -0,0 +1,60 @@
[gd_scene load_steps=2 format=3 uid="uid://c0ka24qxbge17"]
[ext_resource type="Script" uid="uid://u6qhaped7c3i" path="res://scenes/ui/main_menu/main_menu.gd" id="1_pxqwl"]
[node name="MainMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_pxqwl")
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 40
theme_override_constants/margin_top = 40
theme_override_constants/margin_right = 40
theme_override_constants/margin_bottom = 40
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2
[node name="Title" type="Label" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 48
text = "Flashcard Thing"
horizontal_alignment = 1
[node name="Spacer" type="Control" parent="MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 60)
layout_mode = 2
[node name="MenuButtons" type="VBoxContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
theme_override_constants/separation = 15
[node name="ManageDecksButton" type="Button" parent="MarginContainer/VBoxContainer/MenuButtons"]
custom_minimum_size = Vector2(300, 60)
layout_mode = 2
theme_override_font_sizes/font_size = 24
text = "Manage Decks"
[node name="ViewProgressButton" type="Button" parent="MarginContainer/VBoxContainer/MenuButtons"]
custom_minimum_size = Vector2(300, 60)
layout_mode = 2
theme_override_font_sizes/font_size = 24
text = "View Progress"
[node name="QuitButton" type="Button" parent="MarginContainer/VBoxContainer/MenuButtons"]
custom_minimum_size = Vector2(300, 60)
layout_mode = 2
theme_override_font_sizes/font_size = 24
text = "Quit"