Files
sor/Client/origin-client/scenes/bazaar/BazaarScreen.tscn
T
c4ef720570 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>
2026-03-06 17:46:07 -05:00

227 lines
6.6 KiB
Plaintext

[gd_scene load_steps=2 format=3]
[ext_resource type="Script" path="res://scenes/bazaar/bazaar_screen.gd" id="1_bs"]
[node name="BazaarScreen" type="VBoxContainer"]
layout_mode = 3
anchors_preset = 15
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="."]
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_bottom = 8
[node name="TopBar" type="HBoxContainer" parent="TopBarMargin"]
layout_mode = 2
custom_minimum_size = Vector2(0, 40)
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 = "←"
tooltip_text = "Back"
theme_override_font_sizes/font_size = 18
[node name="TitleLabel" type="Label" parent="TopBarMargin/TopBar"]
layout_mode = 2
size_flags_horizontal = 3
text = "Bazaar"
vertical_alignment = 1
theme_override_font_sizes/font_size = 18
[node name="BalanceLabel" type="Label" parent="TopBarMargin/TopBar"]
unique_name_in_owner = true
layout_mode = 2
text = "◆ — OP"
vertical_alignment = 1
modulate = Color(0.95, 0.85, 0.30, 1.0)
theme_override_font_sizes/font_size = 14
[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 = 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, 34)
theme_override_constants/separation = 6
[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, 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, 34)
text = "Decks"
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, 34)
text = "Cosmetics"
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
size_flags_vertical = 3
horizontal_scroll_mode = 0
[node name="ItemListMargin" type="MarginContainer" parent="Scroll"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/margin_left = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_top = 8
theme_override_constants/margin_bottom = 8
[node name="ItemList" type="VBoxContainer" parent="Scroll/ItemListMargin"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 6
[node name="StatusRow" type="HBoxContainer" parent="."]
layout_mode = 2
custom_minimum_size = Vector2(0, 44)
alignment = 1
[node name="LoadingLabel" type="Label" parent="StatusRow"]
unique_name_in_owner = true
layout_mode = 2
text = "Loading…"
modulate = Color(0.75, 0.75, 0.8, 1.0)
theme_override_font_sizes/font_size = 14
[node name="EmptyLabel" type="Label" parent="StatusRow"]
unique_name_in_owner = true
layout_mode = 2
text = "Nothing available right now."
visible = false
modulate = Color(0.6, 0.6, 0.65, 1.0)
theme_override_font_sizes/font_size = 14
[node name="ConfirmDialog" type="ConfirmationDialog" parent="."]
unique_name_in_owner = true
title = "Confirm Purchase"
ok_button_text = "Buy"
[node name="ResultDialog" type="AcceptDialog" parent="."]
unique_name_in_owner = true
title = "Result"