Files
sor/Client/origin-client/scenes/collection/components/CardDetailPopup.tscn
T
b1a51cb862 Standardize programmatic UI to scene-based instantiation (Phases 1-5)
Convert all screens that built UI nodes in GDScript into proper .tscn
scene files. Each component gets its own scene; parent screens use
preload + instantiate; data flows through setup() methods; actions use
signals. Eliminates ~1000 lines of boilerplate node-creation code.

Phase 1 — Simple row components (6 new scenes):
  LeaderboardRow, NotificationRow, StarterDeckCard, DeckPickerButton,
  StatRow, AbilityRow
  Modifies: leaderboard_screen, account_screen, starter_deck_screen,
            matchmaking_screen, card_detail_popup (GridContainer→VBox)

Phase 2 — Lobby browser rows (2 new scenes):
  LobbyBrowserRow (signal join_requested), ActiveGameRow (signal spectate_requested)
  Modifies: free_play_screen

Phase 3 — RulesEditorDialog (1 new scene):
  Replaces 150+ line _open_rules_editor() in lobby_room_screen with
  4-line instantiate pattern; signal confirmed(overrides)

Phase 4 — DeckEditorPanel.tscn:
  Moves split-pane deck editor into scene file; removes _setup_ui(),
  _make_left_pane(), _make_right_pane(); switches to @onready refs;
  DecksView.tscn updated to instance the scene

Phase 5 — ChatOverlay.tscn:
  Fully populates ChatPanel with header, 7 tab buttons, 7 content panes
  (FriendsPane/PresencePane/GlobalPane/LobbyPane/GamePane/PartyPane/DmsPane),
  and InputBar; removes _build_panel() and all _make_*/_build_*_tab()
  functions from chat_overlay.gd; replaces with @onready refs and
  _ready() wiring from scene children

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-21 12:33:15 -04:00

141 lines
4.2 KiB
Plaintext

[gd_scene load_steps=2 format=3 uid="uid://dinmbgl2jwppv"]
[ext_resource type="Script" uid="uid://bbs4g6f1ax4er" path="res://scenes/collection/components/card_detail_popup.gd" id="1_cdp"]
[node name="CardDetailPopup" type="Control"]
visible = false
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_cdp")
[node name="Overlay" type="ColorRect" parent="."]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0.72)
[node name="Center" type="CenterContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
[node name="Panel" type="PanelContainer" parent="Center"]
custom_minimum_size = Vector2(310, 0)
layout_mode = 2
[node name="Scroll" type="ScrollContainer" parent="Center/Panel"]
layout_mode = 2
horizontal_scroll_mode = 0
[node name="Inner" type="MarginContainer" parent="Center/Panel/Scroll"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/margin_left = 14
theme_override_constants/margin_top = 14
theme_override_constants/margin_right = 14
theme_override_constants/margin_bottom = 14
[node name="VBox" type="VBoxContainer" parent="Center/Panel/Scroll/Inner"]
layout_mode = 2
theme_override_constants/separation = 10
[node name="HeaderRow" type="HBoxContainer" parent="Center/Panel/Scroll/Inner/VBox"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="AffinityIcon" type="TextureRect" parent="Center/Panel/Scroll/Inner/VBox/HeaderRow"]
unique_name_in_owner = true
custom_minimum_size = Vector2(28, 28)
layout_mode = 2
expand_mode = 1
stretch_mode = 5
[node name="NameLabel" type="Label" parent="Center/Panel/Scroll/Inner/VBox/HeaderRow"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 18
text = "Card Name"
vertical_alignment = 1
[node name="FoilBadge" type="Label" parent="Center/Panel/Scroll/Inner/VBox/HeaderRow"]
unique_name_in_owner = true
visible = false
modulate = Color(0.95, 0.85, 0.3, 1)
layout_mode = 2
theme_override_font_sizes/font_size = 12
text = "✦ Foil"
vertical_alignment = 1
[node name="CloseBtn" type="Button" parent="Center/Panel/Scroll/Inner/VBox/HeaderRow"]
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
theme_override_font_sizes/font_size = 16
text = "✕"
[node name="TagRow" type="HBoxContainer" parent="Center/Panel/Scroll/Inner/VBox"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="TypeLabel" type="Label" parent="Center/Panel/Scroll/Inner/VBox/TagRow"]
unique_name_in_owner = true
modulate = Color(0.7, 0.7, 0.8, 1)
layout_mode = 2
theme_override_font_sizes/font_size = 13
[node name="TagFill" type="Control" parent="Center/Panel/Scroll/Inner/VBox/TagRow"]
layout_mode = 2
size_flags_horizontal = 3
[node name="AffinityLabel" type="Label" parent="Center/Panel/Scroll/Inner/VBox/TagRow"]
unique_name_in_owner = true
layout_mode = 2
theme_override_font_sizes/font_size = 13
[node name="TagFill2" type="Control" parent="Center/Panel/Scroll/Inner/VBox/TagRow"]
layout_mode = 2
size_flags_horizontal = 3
[node name="RarityLabel" type="Label" parent="Center/Panel/Scroll/Inner/VBox/TagRow"]
unique_name_in_owner = true
layout_mode = 2
theme_override_font_sizes/font_size = 13
[node name="StatsSep" type="HSeparator" parent="Center/Panel/Scroll/Inner/VBox"]
layout_mode = 2
[node name="StatsGrid" type="VBoxContainer" parent="Center/Panel/Scroll/Inner/VBox"]
unique_name_in_owner = true
layout_mode = 2
theme_override_constants/separation = 4
[node name="AbilitiesSep" type="HSeparator" parent="Center/Panel/Scroll/Inner/VBox"]
unique_name_in_owner = true
visible = false
layout_mode = 2
[node name="AbilitiesTitle" type="Label" parent="Center/Panel/Scroll/Inner/VBox"]
unique_name_in_owner = true
visible = false
layout_mode = 2
theme_override_font_sizes/font_size = 14
text = "Abilities"
[node name="AbilitiesList" type="VBoxContainer" parent="Center/Panel/Scroll/Inner/VBox"]
unique_name_in_owner = true
layout_mode = 2
theme_override_constants/separation = 6