Files
sor/Client/origin-client/scenes/collection/views/CardsView.tscn
T
6a33e26237 Godot client: Collection screen — cards grid, deck management, card widget
- CardWidget (146×204px): affinity-coloured border + art placeholder,
  stats with tooltips, foil/serial indicators, selection highlight
- DeckListItem: inline rename, clone/delete signals to parent
- CardsView: paginated + filterable grid (search debounce, type/affinity
  filters, responsive columns, Load More pagination)
- DecksView: deck list with New Deck form (ArchSpirit card picker),
  clone/rename/delete wired to API, ConfirmationDialog for delete
- CollectionScreen: pill-tab container (Cards / Decks), background
  incremental content sync, back button → MainScreen
- MainScreen: wire CollectionBtn → CollectionScreen
- ContentCache: expose is_syncing() public method

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-02-28 07:48:07 -05:00

91 lines
2.7 KiB
Plaintext

[gd_scene load_steps=2 format=3]
[ext_resource type="Script" path="res://scenes/collection/views/cars_view.gd" id="1_cv"]
[node name="CardsView" type="VBoxContainer"]
layout_mode = 2
script = ExtResource("1_cv")
[node name="FilterBar" type="VBoxContainer" parent="."]
layout_mode = 2
theme_override_constants/separation = 6
theme_override_constants/margin_left = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_top = 8
theme_override_constants/margin_bottom = 8
[node name="SearchInput" type="LineEdit" parent="FilterBar"]
unique_name_in_owner = true
layout_mode = 2
placeholder_text = "Search cards…"
theme_override_font_sizes/font_size = 14
[node name="FilterRow" type="HBoxContainer" parent="FilterBar"]
layout_mode = 2
theme_override_constants/separation = 6
[node name="TypeOption" type="OptionButton" parent="FilterBar/FilterRow"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 13
[node name="AffinityOption" type="OptionButton" parent="FilterBar/FilterRow"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 13
[node name="Scroll" type="ScrollContainer" parent="."]
layout_mode = 2
size_flags_vertical = 3
horizontal_scroll_mode = 0
[node name="ScrollInner" type="VBoxContainer" parent="Scroll"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 0
[node name="CardGridMargin" type="MarginContainer" parent="Scroll/ScrollInner"]
layout_mode = 2
theme_override_constants/margin_left = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_top = 8
theme_override_constants/margin_bottom = 8
[node name="CardGrid" type="GridContainer" parent="Scroll/ScrollInner/CardGridMargin"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
columns = 2
theme_override_constants/h_separation = 8
theme_override_constants/v_separation = 8
[node name="StatusRow" type="HBoxContainer" parent="Scroll/ScrollInner"]
layout_mode = 2
custom_minimum_size = Vector2(0, 44)
alignment = 1
[node name="LoadingLabel" type="Label" parent="Scroll/ScrollInner/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="Scroll/ScrollInner/StatusRow"]
unique_name_in_owner = true
layout_mode = 2
text = "No cards found."
visible = false
modulate = Color(0.6, 0.6, 0.65, 1.0)
theme_override_font_sizes/font_size = 14
[node name="LoadMoreBtn" type="Button" parent="Scroll/ScrollInner/StatusRow"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(120, 36)
text = "Load More"
visible = false
theme_override_font_sizes/font_size = 14