This commit is contained in:
dingo
2026-04-12 14:44:37 -04:00
parent d5fa790ccc
commit c3a39fd7a1
35 changed files with 1169 additions and 314 deletions
@@ -1,11 +1,10 @@
[gd_scene load_steps=4 format=3]
[gd_scene load_steps=4 format=3 uid="uid://b6p3xap0lllom"]
[ext_resource type="Script" path="res://scenes/collection/collection_screen.gd" id="1_cs"]
[ext_resource type="PackedScene" path="res://scenes/collection/views/CardsView.tscn" id="2_cv"]
[ext_resource type="PackedScene" path="res://scenes/collection/views/DecksView.tscn" id="3_dv"]
[ext_resource type="Script" uid="uid://va08baxglyg5" path="res://scenes/collection/collection_screen.gd" id="1_cs"]
[ext_resource type="PackedScene" uid="uid://ca8qmqtdwyt1s" path="res://scenes/collection/views/CardsView.tscn" id="2_cv"]
[ext_resource type="PackedScene" uid="uid://rgeaiwwgwhli" path="res://scenes/collection/views/DecksView.tscn" id="3_dv"]
[node name="CollectionScreen" type="VBoxContainer"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
@@ -16,36 +15,35 @@ script = ExtResource("1_cs")
[node name="TopBarMargin" type="MarginContainer" parent="."]
layout_mode = 2
theme_override_constants/margin_left = 12
theme_override_constants/margin_right = 12
theme_override_constants/margin_top = 8
theme_override_constants/margin_right = 12
theme_override_constants/margin_bottom = 8
[node name="TopBar" type="HBoxContainer" parent="TopBarMargin"]
layout_mode = 2
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
theme_override_constants/separation = 8
[node name="BackBtn" type="Button" parent="TopBarMargin/TopBar"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(40, 40)
text = "←"
layout_mode = 2
tooltip_text = "Back"
theme_override_font_sizes/font_size = 18
text = "←"
[node name="TitleLabel" type="Label" parent="TopBarMargin/TopBar"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 18
text = "Collection"
vertical_alignment = 1
theme_override_font_sizes/font_size = 18
[node name="SyncLabel" type="Label" parent="TopBarMargin/TopBar"]
unique_name_in_owner = true
layout_mode = 2
text = ""
visible = false
modulate = Color(0.65, 0.65, 0.80, 1.0)
modulate = Color(0.65, 0.65, 0.8, 1)
layout_mode = 2
theme_override_font_sizes/font_size = 12
[node name="HSeparator" type="HSeparator" parent="."]
@@ -54,30 +52,30 @@ layout_mode = 2
[node name="TabBarMargin" type="MarginContainer" parent="."]
layout_mode = 2
theme_override_constants/margin_left = 16
theme_override_constants/margin_right = 16
theme_override_constants/margin_top = 6
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 6
[node name="TabBar" type="HBoxContainer" parent="TabBarMargin"]
layout_mode = 2
custom_minimum_size = Vector2(0, 36)
layout_mode = 2
theme_override_constants/separation = 8
[node name="CardsTabBtn" type="Button" parent="TabBarMargin/TabBar"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 36)
layout_mode = 2
size_flags_horizontal = 3
custom_minimum_size = Vector2(0, 36)
text = "Cards"
theme_override_font_sizes/font_size = 14
text = "Cards"
[node name="DecksTabBtn" type="Button" parent="TabBarMargin/TabBar"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 36)
layout_mode = 2
size_flags_horizontal = 3
custom_minimum_size = Vector2(0, 36)
text = "Decks"
theme_override_font_sizes/font_size = 14
text = "Decks"
[node name="ContentArea" type="Control" parent="."]
layout_mode = 2
@@ -94,10 +92,10 @@ grow_vertical = 2
[node name="DecksView" parent="ContentArea" instance=ExtResource("3_dv")]
unique_name_in_owner = true
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
visible = false
@@ -1,20 +1,23 @@
[gd_scene load_steps=2 format=3]
[gd_scene load_steps=3 format=3 uid="uid://beig2rhm3ke2p"]
[ext_resource type="Script" path="res://scenes/collection/components/ability_row.gd" id="1_ar"]
[ext_resource type="Script" uid="uid://ci4kls86gx7tt" path="res://scenes/collection/components/ability_row.gd" id="1_ar"]
[sub_resource type="Theme" id="Theme_s626m"]
[node name="AbilityRow" type="VBoxContainer"]
theme = SubResource("Theme_s626m")
theme_override_constants/separation = 2
script = ExtResource("1_ar")
[node name="NameLabel" type="Label" parent="."]
unique_name_in_owner = true
modulate = Color(0.9, 0.8, 0.5, 1)
layout_mode = 2
theme_override_font_sizes/font_size = 13
modulate = Color(0.90, 0.80, 0.50, 1)
[node name="DescLabel" type="Label" parent="."]
unique_name_in_owner = true
modulate = Color(0.8, 0.8, 0.85, 1)
layout_mode = 2
autowrap_mode = 2
modulate = Color(0.80, 0.80, 0.85, 1)
theme_override_font_sizes/font_size = 12
autowrap_mode = 2
@@ -1,7 +1,9 @@
[gd_scene load_steps=2 format=3 uid="uid://dinmbgl2jwppv"]
[gd_scene load_steps=3 format=3 uid="uid://dinmbgl2jwppv"]
[ext_resource type="Script" uid="uid://bbs4g6f1ax4er" path="res://scenes/collection/components/card_detail_popup.gd" id="1_cdp"]
[sub_resource type="Theme" id="Theme_jr2be"]
[node name="CardDetailPopup" type="Control"]
visible = false
layout_mode = 3
@@ -10,6 +12,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = SubResource("Theme_jr2be")
script = ExtResource("1_cdp")
[node name="Overlay" type="ColorRect" parent="."]
@@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=3]
[gd_scene load_steps=2 format=3 uid="uid://bae5tlynmnhs1"]
[ext_resource type="Script" path="res://scenes/collection/components/deck_editor_panel.gd" id="1_dep"]
[ext_resource type="Script" uid="uid://bxbvry7ph16jy" path="res://scenes/collection/components/deck_editor_panel.gd" id="1_dep"]
[node name="DeckEditorPanel" type="VBoxContainer"]
size_flags_horizontal = 3
@@ -14,8 +14,8 @@ layout_mode = 2
[node name="TopMargin" type="MarginContainer" parent="TopPanel"]
layout_mode = 2
theme_override_constants/margin_left = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_top = 8
theme_override_constants/margin_right = 10
theme_override_constants/margin_bottom = 8
[node name="TopBar" type="HBoxContainer" parent="TopPanel/TopMargin"]
@@ -24,24 +24,24 @@ theme_override_constants/separation = 8
[node name="BackBtn" type="Button" parent="TopPanel/TopMargin/TopBar"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(80, 32)
layout_mode = 2
text = "◄ Back"
[node name="TitleLabel" type="Label" parent="TopPanel/TopMargin/TopBar"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 15
text = "Editing deck"
text_overrun_behavior = 3
theme_override_font_sizes/font_size = 15
[node name="CountLabel" type="Label" parent="TopPanel/TopMargin/TopBar"]
unique_name_in_owner = true
layout_mode = 2
text = "0 / 40"
modulate = Color(0.75, 0.75, 0.8, 1)
layout_mode = 2
theme_override_font_sizes/font_size = 13
text = "0 / 40"
[node name="Split" type="HBoxContainer" parent="."]
layout_mode = 2
@@ -57,8 +57,8 @@ theme_override_constants/separation = 4
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/margin_left = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_top = 6
theme_override_constants/margin_right = 8
theme_override_constants/margin_bottom = 6
[node name="LeftInner" type="VBoxContainer" parent="Split/Left/LeftMargin"]
@@ -67,18 +67,18 @@ size_flags_vertical = 3
theme_override_constants/separation = 4
[node name="LeftHeader" type="Label" parent="Split/Left/LeftMargin/LeftInner"]
layout_mode = 2
text = "Deck Contents"
modulate = Color(0.8, 0.8, 0.85, 1)
layout_mode = 2
theme_override_font_sizes/font_size = 13
text = "Deck Contents"
[node name="DeckLoadingLabel" type="Label" parent="Split/Left/LeftMargin/LeftInner"]
unique_name_in_owner = true
layout_mode = 2
visible = false
text = "Loading…"
modulate = Color(0.65, 0.65, 0.7, 1)
layout_mode = 2
theme_override_font_sizes/font_size = 12
text = "Loading…"
[node name="DeckScroll" type="ScrollContainer" parent="Split/Left/LeftMargin/LeftInner"]
layout_mode = 2
@@ -103,8 +103,8 @@ theme_override_constants/separation = 4
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/margin_left = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_top = 6
theme_override_constants/margin_right = 8
theme_override_constants/margin_bottom = 6
[node name="RightInner" type="VBoxContainer" parent="Split/Right/RightMargin"]
@@ -113,10 +113,10 @@ size_flags_vertical = 3
theme_override_constants/separation = 4
[node name="RightHeader" type="Label" parent="Split/Right/RightMargin/RightInner"]
layout_mode = 2
text = "Add Cards"
modulate = Color(0.8, 0.8, 0.85, 1)
layout_mode = 2
theme_override_font_sizes/font_size = 13
text = "Add Cards"
[node name="SearchBar" type="HBoxContainer" parent="Split/Right/RightMargin/RightInner"]
layout_mode = 2
@@ -124,25 +124,25 @@ theme_override_constants/separation = 4
[node name="SearchInput" type="LineEdit" parent="Split/Right/RightMargin/RightInner/SearchBar"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 30)
layout_mode = 2
size_flags_horizontal = 3
custom_minimum_size = Vector2(0, 30)
placeholder_text = "Search…"
theme_override_font_sizes/font_size = 13
placeholder_text = "Search…"
[node name="TypeOption" type="OptionButton" parent="Split/Right/RightMargin/RightInner/SearchBar"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(110, 30)
layout_mode = 2
theme_override_font_sizes/font_size = 12
[node name="CollLoadingLabel" type="Label" parent="Split/Right/RightMargin/RightInner"]
unique_name_in_owner = true
layout_mode = 2
visible = false
text = "Loading…"
modulate = Color(0.65, 0.65, 0.7, 1)
layout_mode = 2
theme_override_font_sizes/font_size = 12
text = "Loading…"
[node name="CollScroll" type="ScrollContainer" parent="Split/Right/RightMargin/RightInner"]
layout_mode = 2
@@ -157,6 +157,6 @@ theme_override_constants/separation = 2
[node name="LoadMoreBtn" type="Button" parent="Split/Right/RightMargin/RightInner"]
unique_name_in_owner = true
layout_mode = 2
visible = false
layout_mode = 2
text = "Load More"
@@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=3]
[gd_scene load_steps=2 format=3 uid="uid://bqrlirkiqqpox"]
[ext_resource type="Script" path="res://scenes/collection/components/deck_list_item.gd" id="1_di"]
[ext_resource type="Script" uid="uid://dd5u354cto2ia" path="res://scenes/collection/components/deck_list_item.gd" id="1_di"]
[node name="DeckListItem" type="PanelContainer"]
custom_minimum_size = Vector2(0, 64)
@@ -30,16 +30,16 @@ theme_override_constants/separation = 0
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 14
text = "Deck Name"
text_overrun_behavior = 3
theme_override_font_sizes/font_size = 14
[node name="NameEdit" type="LineEdit" parent="Margin/HBox/Info/NameRow"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
visible = false
custom_minimum_size = Vector2(0, 28)
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 14
[node name="SubRow" type="HBoxContainer" parent="Margin/HBox/Info"]
@@ -50,23 +50,23 @@ theme_override_constants/separation = 8
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 11
text = "No ArchSpirit"
text_overrun_behavior = 3
theme_override_font_sizes/font_size = 11
[node name="CountLabel" type="Label" parent="Margin/HBox/Info/SubRow"]
unique_name_in_owner = true
modulate = Color(0.65, 0.65, 0.7, 1)
layout_mode = 2
text = "0 cards"
modulate = Color(0.65, 0.65, 0.70, 1.0)
theme_override_font_sizes/font_size = 11
text = "0 cards"
[node name="ValidLabel" type="Label" parent="Margin/HBox/Info/SubRow"]
unique_name_in_owner = true
modulate = Color(1, 0.75, 0.2, 1)
layout_mode = 2
text = "⚠"
modulate = Color(1.0, 0.75, 0.2, 1.0)
theme_override_font_sizes/font_size = 11
text = "⚠"
[node name="Actions" type="HBoxContainer" parent="Margin/HBox"]
layout_mode = 2
@@ -74,50 +74,50 @@ theme_override_constants/separation = 4
[node name="EditBtn" type="Button" parent="Margin/HBox/Actions"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(60, 36)
text = "Edit"
layout_mode = 2
tooltip_text = "Edit deck contents"
theme_override_font_sizes/font_size = 13
text = "Edit"
[node name="RenameBtn" type="Button" parent="Margin/HBox/Actions"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(36, 36)
text = "✏"
layout_mode = 2
tooltip_text = "Rename"
theme_override_font_sizes/font_size = 14
text = "✏"
[node name="CloneBtn" type="Button" parent="Margin/HBox/Actions"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(36, 36)
text = "⧉"
layout_mode = 2
tooltip_text = "Clone deck"
theme_override_font_sizes/font_size = 14
text = "⧉"
[node name="DeleteBtn" type="Button" parent="Margin/HBox/Actions"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(36, 36)
text = "🗑"
layout_mode = 2
tooltip_text = "Delete deck"
theme_override_font_sizes/font_size = 14
text = "🗑"
[node name="ConfirmRenameBtn" type="Button" parent="Margin/HBox/Actions"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(36, 36)
text = "✓"
tooltip_text = "Save name"
visible = false
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
tooltip_text = "Save name"
theme_override_font_sizes/font_size = 14
text = "✓"
[node name="CancelRenameBtn" type="Button" parent="Margin/HBox/Actions"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(36, 36)
text = "✕"
tooltip_text = "Cancel rename"
visible = false
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
tooltip_text = "Cancel rename"
theme_override_font_sizes/font_size = 14
text = "✕"
@@ -1,16 +1,19 @@
[gd_scene load_steps=2 format=3]
[gd_scene load_steps=3 format=3 uid="uid://csxvfsdroxml1"]
[ext_resource type="Script" path="res://scenes/collection/components/stat_row.gd" id="1_sr"]
[ext_resource type="Script" uid="uid://cqckgl1qcf4ig" path="res://scenes/collection/components/stat_row.gd" id="1_sr"]
[sub_resource type="Theme" id="Theme_7pfs8"]
[node name="StatRow" type="HBoxContainer"]
theme = SubResource("Theme_7pfs8")
theme_override_constants/separation = 8
script = ExtResource("1_sr")
[node name="KeyLabel" type="Label" parent="."]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(72, 0)
modulate = Color(0.65, 0.65, 0.72, 1)
custom_minimum_size = Vector2(72, 0)
layout_mode = 2
[node name="ValueLabel" type="Label" parent="."]
unique_name_in_owner = true
@@ -1,47 +1,46 @@
[gd_scene load_steps=3 format=3]
[gd_scene load_steps=3 format=3 uid="uid://rgeaiwwgwhli"]
[ext_resource type="Script" path="res://scenes/collection/views/decks_view.gd" id="1_dv"]
[ext_resource type="Script" uid="uid://vbuabpoyb47" path="res://scenes/collection/views/decks_view.gd" id="1_dv"]
[ext_resource type="PackedScene" path="res://scenes/collection/components/DeckEditorPanel.tscn" id="2_dep"]
[node name="DecksView" type="VBoxContainer"]
layout_mode = 2
script = ExtResource("1_dv")
[node name="HeaderMargin" type="MarginContainer" parent="."]
layout_mode = 2
theme_override_constants/margin_left = 12
theme_override_constants/margin_right = 12
theme_override_constants/margin_top = 8
theme_override_constants/margin_right = 12
theme_override_constants/margin_bottom = 8
[node name="Header" type="HBoxContainer" parent="HeaderMargin"]
layout_mode = 2
custom_minimum_size = Vector2(0, 34)
layout_mode = 2
theme_override_constants/separation = 8
[node name="HeaderLabel" type="Label" parent="HeaderMargin/Header"]
layout_mode = 2
size_flags_horizontal = 3
text = "Decks"
theme_override_font_sizes/font_size = 16
text = "Decks"
[node name="NewDeckBtn" type="Button" parent="HeaderMargin/Header"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(0, 34)
text = "+ New Deck"
layout_mode = 2
theme_override_font_sizes/font_size = 14
text = "+ New Deck"
[node name="NewDeckForm" type="PanelContainer" parent="."]
unique_name_in_owner = true
layout_mode = 2
visible = false
layout_mode = 2
[node name="FormMargin" type="MarginContainer" parent="NewDeckForm"]
layout_mode = 2
theme_override_constants/margin_left = 12
theme_override_constants/margin_right = 12
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 12
theme_override_constants/margin_bottom = 10
[node name="FormVBox" type="VBoxContainer" parent="NewDeckForm/FormMargin"]
@@ -50,25 +49,25 @@ theme_override_constants/separation = 10
[node name="FormTitle" type="Label" parent="NewDeckForm/FormMargin/FormVBox"]
layout_mode = 2
text = "New Deck"
theme_override_font_sizes/font_size = 15
text = "New Deck"
[node name="DeckNameInput" type="LineEdit" parent="NewDeckForm/FormMargin/FormVBox"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(0, 36)
placeholder_text = "Deck Name"
layout_mode = 2
theme_override_font_sizes/font_size = 14
placeholder_text = "Deck Name"
[node name="ArchSpiritLabel" type="Label" parent="NewDeckForm/FormMargin/FormVBox"]
modulate = Color(0.8, 0.8, 0.85, 1)
layout_mode = 2
text = "ArchSpirit Card"
theme_override_font_sizes/font_size = 13
modulate = Color(0.8, 0.8, 0.85, 1.0)
text = "ArchSpirit Card"
[node name="ArchSpiritScroll" type="ScrollContainer" parent="NewDeckForm/FormMargin/FormVBox"]
layout_mode = 2
custom_minimum_size = Vector2(0, 170)
layout_mode = 2
vertical_scroll_mode = 0
[node name="ArchSpiritGrid" type="HBoxContainer" parent="NewDeckForm/FormMargin/FormVBox/ArchSpiritScroll"]
@@ -78,10 +77,10 @@ theme_override_constants/separation = 8
[node name="ArchSpiritHint" type="Label" parent="NewDeckForm/FormMargin/FormVBox"]
unique_name_in_owner = true
modulate = Color(1, 0.75, 0.3, 1)
layout_mode = 2
text = "Select an ArchSpirit card to continue."
modulate = Color(1.0, 0.75, 0.3, 1.0)
theme_override_font_sizes/font_size = 12
text = "Select an ArchSpirit card to continue."
[node name="FormButtons" type="HBoxContainer" parent="NewDeckForm/FormMargin/FormVBox"]
layout_mode = 2
@@ -89,20 +88,20 @@ theme_override_constants/separation = 8
[node name="CancelNewBtn" type="Button" parent="NewDeckForm/FormMargin/FormVBox/FormButtons"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 36)
layout_mode = 2
size_flags_horizontal = 3
custom_minimum_size = Vector2(0, 36)
text = "Cancel"
theme_override_font_sizes/font_size = 14
text = "Cancel"
[node name="CreateBtn" type="Button" parent="NewDeckForm/FormMargin/FormVBox/FormButtons"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 36)
layout_mode = 2
size_flags_horizontal = 3
custom_minimum_size = Vector2(0, 36)
text = "Create"
disabled = true
theme_override_font_sizes/font_size = 14
disabled = true
text = "Create"
[node name="Scroll" type="ScrollContainer" parent="."]
layout_mode = 2
@@ -113,8 +112,8 @@ horizontal_scroll_mode = 0
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/margin_left = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_top = 4
theme_override_constants/margin_right = 8
theme_override_constants/margin_bottom = 8
[node name="DeckList" type="VBoxContainer" parent="Scroll/DeckListMargin"]
@@ -124,30 +123,29 @@ size_flags_horizontal = 3
theme_override_constants/separation = 4
[node name="StatusRow" type="HBoxContainer" parent="."]
layout_mode = 2
custom_minimum_size = Vector2(0, 44)
layout_mode = 2
alignment = 1
[node name="LoadingLabel" type="Label" parent="StatusRow"]
unique_name_in_owner = true
modulate = Color(0.75, 0.75, 0.8, 1)
layout_mode = 2
text = "Loading…"
modulate = Color(0.75, 0.75, 0.8, 1.0)
theme_override_font_sizes/font_size = 14
text = "Loading…"
[node name="EmptyLabel" type="Label" parent="StatusRow"]
unique_name_in_owner = true
layout_mode = 2
text = "No decks yet. Tap + to create one."
visible = false
modulate = Color(0.6, 0.6, 0.65, 1.0)
modulate = Color(0.6, 0.6, 0.65, 1)
layout_mode = 2
theme_override_font_sizes/font_size = 14
text = "No decks yet. Tap + to create one."
[node name="DeckEditorPanel" parent="." instance=ExtResource("2_dep")]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 3
visible = false
layout_mode = 2
[node name="ConfirmDialog" type="ConfirmationDialog" parent="."]
unique_name_in_owner = true