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>
156 lines
4.9 KiB
Plaintext
156 lines
4.9 KiB
Plaintext
[gd_scene load_steps=3 format=3]
|
||
|
||
[ext_resource type="Script" path="res://scenes/collection/views/decks_view.gd" id="1_dv"]
|
||
[ext_resource type="PackedScene" path="res://scenes/collection/components/DeckEditorPanel.tscn" id="2_dep"]
|
||
|
||
[node name="DecksView" type="VBoxContainer"]
|
||
layout_mode = 2
|
||
script = ExtResource("1_dv")
|
||
|
||
[node name="HeaderMargin" 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="Header" type="HBoxContainer" parent="HeaderMargin"]
|
||
layout_mode = 2
|
||
custom_minimum_size = Vector2(0, 34)
|
||
theme_override_constants/separation = 8
|
||
|
||
[node name="HeaderLabel" type="Label" parent="HeaderMargin/Header"]
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
text = "Decks"
|
||
theme_override_font_sizes/font_size = 16
|
||
|
||
[node name="NewDeckBtn" type="Button" parent="HeaderMargin/Header"]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
custom_minimum_size = Vector2(0, 34)
|
||
text = "+ New Deck"
|
||
theme_override_font_sizes/font_size = 14
|
||
|
||
[node name="NewDeckForm" type="PanelContainer" parent="."]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
visible = false
|
||
|
||
[node name="FormMargin" type="MarginContainer" parent="NewDeckForm"]
|
||
layout_mode = 2
|
||
theme_override_constants/margin_left = 12
|
||
theme_override_constants/margin_right = 12
|
||
theme_override_constants/margin_top = 10
|
||
theme_override_constants/margin_bottom = 10
|
||
|
||
[node name="FormVBox" type="VBoxContainer" parent="NewDeckForm/FormMargin"]
|
||
layout_mode = 2
|
||
theme_override_constants/separation = 10
|
||
|
||
[node name="FormTitle" type="Label" parent="NewDeckForm/FormMargin/FormVBox"]
|
||
layout_mode = 2
|
||
text = "New Deck"
|
||
theme_override_font_sizes/font_size = 15
|
||
|
||
[node name="DeckNameInput" type="LineEdit" parent="NewDeckForm/FormMargin/FormVBox"]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
custom_minimum_size = Vector2(0, 36)
|
||
placeholder_text = "Deck Name"
|
||
theme_override_font_sizes/font_size = 14
|
||
|
||
[node name="ArchSpiritLabel" type="Label" parent="NewDeckForm/FormMargin/FormVBox"]
|
||
layout_mode = 2
|
||
text = "ArchSpirit Card"
|
||
theme_override_font_sizes/font_size = 13
|
||
modulate = Color(0.8, 0.8, 0.85, 1.0)
|
||
|
||
[node name="ArchSpiritScroll" type="ScrollContainer" parent="NewDeckForm/FormMargin/FormVBox"]
|
||
layout_mode = 2
|
||
custom_minimum_size = Vector2(0, 170)
|
||
vertical_scroll_mode = 0
|
||
|
||
[node name="ArchSpiritGrid" type="HBoxContainer" parent="NewDeckForm/FormMargin/FormVBox/ArchSpiritScroll"]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
theme_override_constants/separation = 8
|
||
|
||
[node name="ArchSpiritHint" type="Label" parent="NewDeckForm/FormMargin/FormVBox"]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
text = "Select an ArchSpirit card to continue."
|
||
modulate = Color(1.0, 0.75, 0.3, 1.0)
|
||
theme_override_font_sizes/font_size = 12
|
||
|
||
[node name="FormButtons" type="HBoxContainer" parent="NewDeckForm/FormMargin/FormVBox"]
|
||
layout_mode = 2
|
||
theme_override_constants/separation = 8
|
||
|
||
[node name="CancelNewBtn" type="Button" parent="NewDeckForm/FormMargin/FormVBox/FormButtons"]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
custom_minimum_size = Vector2(0, 36)
|
||
text = "Cancel"
|
||
theme_override_font_sizes/font_size = 14
|
||
|
||
[node name="CreateBtn" type="Button" parent="NewDeckForm/FormMargin/FormVBox/FormButtons"]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
custom_minimum_size = Vector2(0, 36)
|
||
text = "Create"
|
||
disabled = true
|
||
theme_override_font_sizes/font_size = 14
|
||
|
||
[node name="Scroll" type="ScrollContainer" parent="."]
|
||
layout_mode = 2
|
||
size_flags_vertical = 3
|
||
horizontal_scroll_mode = 0
|
||
|
||
[node name="DeckListMargin" 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_top = 4
|
||
theme_override_constants/margin_bottom = 8
|
||
|
||
[node name="DeckList" type="VBoxContainer" parent="Scroll/DeckListMargin"]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
theme_override_constants/separation = 4
|
||
|
||
[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 = "No decks yet. Tap + to create one."
|
||
visible = false
|
||
modulate = Color(0.6, 0.6, 0.65, 1.0)
|
||
theme_override_font_sizes/font_size = 14
|
||
|
||
[node name="DeckEditorPanel" parent="." instance=ExtResource("2_dep")]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
size_flags_vertical = 3
|
||
visible = false
|
||
|
||
[node name="ConfirmDialog" type="ConfirmationDialog" parent="."]
|
||
unique_name_in_owner = true
|
||
title = "Confirm Delete"
|
||
ok_button_text = "Delete"
|