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>
163 lines
5.0 KiB
Plaintext
163 lines
5.0 KiB
Plaintext
[gd_scene load_steps=2 format=3]
|
|
|
|
[ext_resource type="Script" path="res://scenes/collection/components/deck_editor_panel.gd" id="1_dep"]
|
|
|
|
[node name="DeckEditorPanel" type="VBoxContainer"]
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
theme_override_constants/separation = 0
|
|
script = ExtResource("1_dep")
|
|
|
|
[node name="TopPanel" type="PanelContainer" parent="."]
|
|
layout_mode = 2
|
|
|
|
[node name="TopMargin" type="MarginContainer" parent="TopPanel"]
|
|
layout_mode = 2
|
|
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="TopBar" type="HBoxContainer" parent="TopPanel/TopMargin"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="BackBtn" type="Button" parent="TopPanel/TopMargin/TopBar"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
custom_minimum_size = Vector2(80, 32)
|
|
text = "◄ Back"
|
|
|
|
[node name="TitleLabel" type="Label" parent="TopPanel/TopMargin/TopBar"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Editing deck"
|
|
text_overrun_behavior = 3
|
|
theme_override_font_sizes/font_size = 15
|
|
|
|
[node name="CountLabel" type="Label" parent="TopPanel/TopMargin/TopBar"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "0 / 40"
|
|
modulate = Color(0.75, 0.75, 0.8, 1)
|
|
theme_override_font_sizes/font_size = 13
|
|
|
|
[node name="Split" type="HBoxContainer" parent="."]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="Left" type="VBoxContainer" parent="Split"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="LeftMargin" type="MarginContainer" parent="Split/Left"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
theme_override_constants/margin_left = 8
|
|
theme_override_constants/margin_right = 8
|
|
theme_override_constants/margin_top = 6
|
|
theme_override_constants/margin_bottom = 6
|
|
|
|
[node name="LeftInner" type="VBoxContainer" parent="Split/Left/LeftMargin"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="LeftHeader" type="Label" parent="Split/Left/LeftMargin/LeftInner"]
|
|
layout_mode = 2
|
|
text = "Deck Contents"
|
|
modulate = Color(0.8, 0.8, 0.85, 1)
|
|
theme_override_font_sizes/font_size = 13
|
|
|
|
[node name="DeckLoadingLabel" type="Label" parent="Split/Left/LeftMargin/LeftInner"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
visible = false
|
|
text = "Loading…"
|
|
modulate = Color(0.65, 0.65, 0.7, 1)
|
|
theme_override_font_sizes/font_size = 12
|
|
|
|
[node name="DeckScroll" type="ScrollContainer" parent="Split/Left/LeftMargin/LeftInner"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="DeckCardList" type="VBoxContainer" parent="Split/Left/LeftMargin/LeftInner/DeckScroll"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 2
|
|
|
|
[node name="VSep" type="VSeparator" parent="Split"]
|
|
layout_mode = 2
|
|
|
|
[node name="Right" type="VBoxContainer" parent="Split"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="RightMargin" type="MarginContainer" parent="Split/Right"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
theme_override_constants/margin_left = 8
|
|
theme_override_constants/margin_right = 8
|
|
theme_override_constants/margin_top = 6
|
|
theme_override_constants/margin_bottom = 6
|
|
|
|
[node name="RightInner" type="VBoxContainer" parent="Split/Right/RightMargin"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="RightHeader" type="Label" parent="Split/Right/RightMargin/RightInner"]
|
|
layout_mode = 2
|
|
text = "Add Cards"
|
|
modulate = Color(0.8, 0.8, 0.85, 1)
|
|
theme_override_font_sizes/font_size = 13
|
|
|
|
[node name="SearchBar" type="HBoxContainer" parent="Split/Right/RightMargin/RightInner"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="SearchInput" type="LineEdit" parent="Split/Right/RightMargin/RightInner/SearchBar"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
custom_minimum_size = Vector2(0, 30)
|
|
placeholder_text = "Search…"
|
|
theme_override_font_sizes/font_size = 13
|
|
|
|
[node name="TypeOption" type="OptionButton" parent="Split/Right/RightMargin/RightInner/SearchBar"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
custom_minimum_size = Vector2(110, 30)
|
|
theme_override_font_sizes/font_size = 12
|
|
|
|
[node name="CollLoadingLabel" type="Label" parent="Split/Right/RightMargin/RightInner"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
visible = false
|
|
text = "Loading…"
|
|
modulate = Color(0.65, 0.65, 0.7, 1)
|
|
theme_override_font_sizes/font_size = 12
|
|
|
|
[node name="CollScroll" type="ScrollContainer" parent="Split/Right/RightMargin/RightInner"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="CollList" type="VBoxContainer" parent="Split/Right/RightMargin/RightInner/CollScroll"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 2
|
|
|
|
[node name="LoadMoreBtn" type="Button" parent="Split/Right/RightMargin/RightInner"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
visible = false
|
|
text = "Load More"
|