Build Bazaar: 4 tabs, sort/filter, art images, USD disabled

- Add Boosters, Decks, Cosmetics, Cards (marketplace) tabs
- Sort per-tab: name, price, card count, type, set (boosters)
- Cards tab: filter by rarity and card type, sort by price/rarity/name
- StoreItemRow gets 72x72 art TextureRect with async HTTP image loading;
  falls back to cdn.aeternalisgames.com/sor-assets/cardart/0_No-Card-Art.jpg
- USD prices shown as greyed "$X.XX (coming soon)" — buy disabled
- "Buy OP" button in header present but disabled (USD flow not yet live)
- setup_listing() on StoreItemRow handles marketplace card listings
  with auction bid count, current bid, and Bid/Buy button labels

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-03-06 17:46:07 -05:00
co-authored by Claude Happy
parent 9dadeda7c1
commit c4ef720570
4 changed files with 525 additions and 144 deletions
@@ -9,6 +9,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 0
script = ExtResource("1_bs")
[node name="TopBarMargin" type="MarginContainer" parent="."]
@@ -46,44 +47,135 @@ vertical_alignment = 1
modulate = Color(0.95, 0.85, 0.30, 1.0)
theme_override_font_sizes/font_size = 14
[node name="HSeparator" type="HSeparator" parent="."]
[node name="BuyOpBtn" type="Button" parent="TopBarMargin/TopBar"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(100, 32)
disabled = true
text = "+ Buy OP"
tooltip_text = "Purchase Origin Points with real money — coming soon"
theme_override_font_sizes/font_size = 12
modulate = Color(0.95, 0.85, 0.30, 0.5)
[node name="HSep1" type="HSeparator" parent="."]
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_bottom = 6
theme_override_constants/margin_left = 12
theme_override_constants/margin_right = 12
theme_override_constants/margin_top = 4
theme_override_constants/margin_bottom = 4
[node name="TabBar" type="HBoxContainer" parent="TabBarMargin"]
layout_mode = 2
custom_minimum_size = Vector2(0, 36)
theme_override_constants/separation = 8
custom_minimum_size = Vector2(0, 34)
theme_override_constants/separation = 6
[node name="PacksTabBtn" type="Button" parent="TabBarMargin/TabBar"]
[node name="BoostersTabBtn" type="Button" parent="TabBarMargin/TabBar"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
custom_minimum_size = Vector2(0, 36)
text = "Packs"
theme_override_font_sizes/font_size = 14
custom_minimum_size = Vector2(0, 34)
text = "Boosters"
theme_override_font_sizes/font_size = 13
[node name="DecksTabBtn" type="Button" parent="TabBarMargin/TabBar"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
custom_minimum_size = Vector2(0, 36)
custom_minimum_size = Vector2(0, 34)
text = "Decks"
theme_override_font_sizes/font_size = 14
theme_override_font_sizes/font_size = 13
[node name="CosmeticsTabBtn" type="Button" parent="TabBarMargin/TabBar"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
custom_minimum_size = Vector2(0, 36)
custom_minimum_size = Vector2(0, 34)
text = "Cosmetics"
theme_override_font_sizes/font_size = 14
theme_override_font_sizes/font_size = 13
[node name="CardsTabBtn" type="Button" parent="TabBarMargin/TabBar"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
custom_minimum_size = Vector2(0, 34)
text = "Cards"
theme_override_font_sizes/font_size = 13
[node name="HSep2" type="HSeparator" parent="."]
layout_mode = 2
[node name="FilterBarMargin" type="MarginContainer" parent="."]
layout_mode = 2
theme_override_constants/margin_left = 12
theme_override_constants/margin_right = 12
theme_override_constants/margin_top = 4
theme_override_constants/margin_bottom = 4
[node name="FilterBar" type="HBoxContainer" parent="FilterBarMargin"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(0, 30)
theme_override_constants/separation = 8
[node name="SortLabel" type="Label" parent="FilterBarMargin/FilterBar"]
layout_mode = 2
text = "Sort:"
vertical_alignment = 1
theme_override_font_sizes/font_size = 12
modulate = Color(0.7, 0.7, 0.75, 1.0)
[node name="SortOption" type="OptionButton" parent="FilterBarMargin/FilterBar"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(130, 28)
theme_override_font_sizes/font_size = 12
[node name="FilterSep" type="VSeparator" parent="FilterBarMargin/FilterBar"]
unique_name_in_owner = true
layout_mode = 2
visible = false
[node name="RarityLabel" type="Label" parent="FilterBarMargin/FilterBar"]
unique_name_in_owner = true
layout_mode = 2
text = "Rarity:"
vertical_alignment = 1
visible = false
theme_override_font_sizes/font_size = 12
modulate = Color(0.7, 0.7, 0.75, 1.0)
[node name="RarityOption" type="OptionButton" parent="FilterBarMargin/FilterBar"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(110, 28)
visible = false
theme_override_font_sizes/font_size = 12
[node name="TypeLabel" type="Label" parent="FilterBarMargin/FilterBar"]
unique_name_in_owner = true
layout_mode = 2
text = "Type:"
vertical_alignment = 1
visible = false
theme_override_font_sizes/font_size = 12
modulate = Color(0.7, 0.7, 0.75, 1.0)
[node name="TypeOption" type="OptionButton" parent="FilterBarMargin/FilterBar"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(110, 28)
visible = false
theme_override_font_sizes/font_size = 12
[node name="FilterSpacer" type="Control" parent="FilterBarMargin/FilterBar"]
layout_mode = 2
size_flags_horizontal = 3
[node name="HSep3" type="HSeparator" parent="."]
layout_mode = 2
[node name="Scroll" type="ScrollContainer" parent="."]
layout_mode = 2
@@ -93,8 +185,8 @@ horizontal_scroll_mode = 0
[node name="ItemListMargin" type="MarginContainer" parent="Scroll"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/margin_left = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_left = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_top = 8
theme_override_constants/margin_bottom = 8