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,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