Server (Phase A): - CustomLobby: +HostReady/GuestReady/HostFirstTurnPref/GuestFirstTurnPref/MaxPlayers - Migration: AddReadyUpSystem — applied to prod DB - GameJoinCustomLobbyHandler: no longer auto-creates session; sets Full status, resets readiness, pushes CustomLobbyGuestJoinedPush to host - GameLobbyReadyHandler (NEW): game.custom.lobby.ready — marks caller ready, resolves first-turn, creates session + pushes game.custom.started when all ready - GameUnreadyHandler (NEW): game.custom.lobby.unready - GameChangeLobbyDeckHandler (NEW): game.custom.lobby.change_deck - GameUpdateLobbyRulesHandler (NEW): game.custom.update_rules (host only) - GameListActiveLobbiesHandler (NEW): game.custom.list_active (Status==Started) - GameListCustomLobbiesHandler: now batch-loads host/guest display names - GameMessages: +LobbyReadyRequest/Response, UnreadyInLobbyRequest/Response, ChangeLobbyDeckRequest/Response, UpdateLobbyRulesRequest/Response, ListActiveLobbiesRequest/Response, LobbyReadyStatusPush, LobbyDeckChangedPush, ActiveLobbyDto; CustomLobbyDto +HostDisplayName/GuestDisplayName - ServiceRegistration: register 5 new handlers Client (Phase B): - CustomLobby.gd: new autoload for Free Play lobby state + all server calls - project.godot: register CustomLobby autoload - MainScreen: +Free Play button → FreePlayScreen.tscn - FreePlayScreen (NEW): Open Lobbies tab + Active Games tab + Create dialog - LobbyRoomScreen (NEW): ready-up UI, first-turn selector, preset voting - Game.gd: +is_spectating, +start_spectating(), +stop_spectating() - game_screen.gd: spectator mode — SPECTATING label, hidden action buttons, neutral HUD labels, stop_spectating() on exit 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>
203 lines
6.5 KiB
Plaintext
203 lines
6.5 KiB
Plaintext
[gd_scene load_steps=3 format=3]
|
|
|
|
[ext_resource type="Script" path="res://scenes/main/main_screen.gd" id="1_main"]
|
|
[ext_resource type="PackedScene" path="res://scenes/bug_report/BugReportDialog.tscn" id="2_brd"]
|
|
|
|
[node name="MainScreen" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_main")
|
|
|
|
[node name="Background" type="ColorRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.094, 0.094, 0.137, 1.0)
|
|
|
|
[node name="Layout" type="VBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="TopBar" type="HBoxContainer" parent="Layout"]
|
|
layout_mode = 2
|
|
custom_minimum_size = Vector2(0, 56)
|
|
theme_override_constants/separation = 12
|
|
|
|
[node name="TopBarMargin" type="MarginContainer" parent="Layout/TopBar"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/margin_left = 16
|
|
theme_override_constants/margin_right = 16
|
|
|
|
[node name="TopBarInner" type="HBoxContainer" parent="Layout/TopBar/TopBarMargin"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="BrandLabel" type="Label" parent="Layout/TopBar/TopBarMargin/TopBarInner"]
|
|
layout_mode = 2
|
|
text = "ORIGIN"
|
|
theme_override_font_sizes/font_size = 18
|
|
size_flags_vertical = 4
|
|
|
|
[node name="TopSpacer" type="Control" parent="Layout/TopBar/TopBarMargin/TopBarInner"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="StatusLabel" type="Label" parent="Layout/TopBar/TopBarMargin/TopBarInner"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "● Online"
|
|
modulate = Color(0.3, 0.9, 0.4, 1.0)
|
|
size_flags_vertical = 4
|
|
theme_override_font_sizes/font_size = 13
|
|
|
|
[node name="Separator" type="HSeparator" parent="Layout"]
|
|
layout_mode = 2
|
|
|
|
[node name="Scroll" type="ScrollContainer" parent="Layout"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="Content" type="VBoxContainer" parent="Layout/Scroll"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 16
|
|
|
|
[node name="ContentMargin" type="MarginContainer" parent="Layout/Scroll/Content"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 20
|
|
theme_override_constants/margin_top = 20
|
|
theme_override_constants/margin_right = 20
|
|
theme_override_constants/margin_bottom = 20
|
|
|
|
[node name="ContentInner" type="VBoxContainer" parent="Layout/Scroll/Content/ContentMargin"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 20
|
|
|
|
[node name="WelcomeLabel" type="Label" parent="Layout/Scroll/Content/ContentMargin/ContentInner"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "Welcome!"
|
|
theme_override_font_sizes/font_size = 24
|
|
|
|
[node name="NavSection" type="Label" parent="Layout/Scroll/Content/ContentMargin/ContentInner"]
|
|
layout_mode = 2
|
|
text = "PLAY"
|
|
modulate = Color(0.6, 0.6, 0.65, 1.0)
|
|
theme_override_font_sizes/font_size = 11
|
|
|
|
[node name="NavButtons" type="VBoxContainer" parent="Layout/Scroll/Content/ContentMargin/ContentInner"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="CollectionBtn" type="Button" parent="Layout/Scroll/Content/ContentMargin/ContentInner/NavButtons"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
custom_minimum_size = Vector2(0, 52)
|
|
text = "My Collection"
|
|
theme_override_font_sizes/font_size = 15
|
|
|
|
[node name="BazaarBtn" type="Button" parent="Layout/Scroll/Content/ContentMargin/ContentInner/NavButtons"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
custom_minimum_size = Vector2(0, 52)
|
|
text = "Bazaar"
|
|
theme_override_font_sizes/font_size = 15
|
|
|
|
[node name="MatchBtn" type="Button" parent="Layout/Scroll/Content/ContentMargin/ContentInner/NavButtons"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
custom_minimum_size = Vector2(0, 52)
|
|
text = "Find Match"
|
|
theme_override_font_sizes/font_size = 15
|
|
|
|
[node name="FreePlayBtn" type="Button" parent="Layout/Scroll/Content/ContentMargin/ContentInner/NavButtons"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
custom_minimum_size = Vector2(0, 52)
|
|
text = "Free Play"
|
|
theme_override_font_sizes/font_size = 15
|
|
|
|
[node name="SocialSection" type="Label" parent="Layout/Scroll/Content/ContentMargin/ContentInner"]
|
|
layout_mode = 2
|
|
text = "COMMUNITY"
|
|
modulate = Color(0.6, 0.6, 0.65, 1.0)
|
|
theme_override_font_sizes/font_size = 11
|
|
|
|
[node name="SocialButtons" type="VBoxContainer" parent="Layout/Scroll/Content/ContentMargin/ContentInner"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="LeaderboardBtn" type="Button" parent="Layout/Scroll/Content/ContentMargin/ContentInner/SocialButtons"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
custom_minimum_size = Vector2(0, 52)
|
|
text = "Leaderboard"
|
|
theme_override_font_sizes/font_size = 15
|
|
|
|
[node name="AccountSection" type="Label" parent="Layout/Scroll/Content/ContentMargin/ContentInner"]
|
|
layout_mode = 2
|
|
text = "ACCOUNT"
|
|
modulate = Color(0.6, 0.6, 0.65, 1.0)
|
|
theme_override_font_sizes/font_size = 11
|
|
|
|
[node name="AccountButtons" type="VBoxContainer" parent="Layout/Scroll/Content/ContentMargin/ContentInner"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="AccountBtn" type="Button" parent="Layout/Scroll/Content/ContentMargin/ContentInner/AccountButtons"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
custom_minimum_size = Vector2(0, 52)
|
|
text = "Account"
|
|
theme_override_font_sizes/font_size = 15
|
|
|
|
[node name="SettingsBtn" type="Button" parent="Layout/Scroll/Content/ContentMargin/ContentInner/AccountButtons"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
custom_minimum_size = Vector2(0, 52)
|
|
text = "Settings"
|
|
theme_override_font_sizes/font_size = 15
|
|
|
|
[node name="ReportBugBtn" type="Button" parent="Layout/Scroll/Content/ContentMargin/ContentInner/AccountButtons"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
custom_minimum_size = Vector2(0, 44)
|
|
text = "Report a Bug"
|
|
modulate = Color(0.85, 0.85, 0.90, 0.7)
|
|
theme_override_font_sizes/font_size = 13
|
|
|
|
[node name="BottomBar" type="HBoxContainer" parent="Layout"]
|
|
layout_mode = 2
|
|
custom_minimum_size = Vector2(0, 56)
|
|
|
|
[node name="BottomMargin" type="MarginContainer" parent="Layout/BottomBar"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/margin_left = 16
|
|
theme_override_constants/margin_right = 16
|
|
|
|
[node name="LogoutBtn" type="Button" parent="Layout/BottomBar/BottomMargin"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "Sign Out"
|
|
theme_override_font_sizes/font_size = 14
|
|
|
|
[node name="BugReportDialog" parent="." instance=ExtResource("2_brd")]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
|