- Chat.gd autoload: data layer for channels, messages, social graph, presence, and notifications; wires to Network/Auth singletons - ChatOverlay.tscn + chat_overlay.gd: CanvasLayer (layer=100) that persists across all scenes; bubble toggle at bottom-right corner - Six tabs: Friends, Presence, Global, Lobby, Game, DMs - Message rows show [HH:MM] [source] Name: text with color-coded source badges (global/lobby/game/private/party/system) - Friends list: online/offline sections, right-click context menu (Private Message, Set Nickname, Block, Remove Friend) - Player name click: Add Friend, Invite to Party (stub), Mute/Unmute, Hi Scores (disabled placeholder) - Presence tab: own status selector (Online/Away/Offline) + friends presence overview with status dots - DMs tab: conversation sidebar + message pane, input bar shown when a conversation is selected - Unread notification badge on chat bubble - Per-session nickname overrides and muting 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>
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
[gd_scene load_steps=2 format=3]
|
|
|
|
[ext_resource type="Script" path="res://scenes/chat/chat_overlay.gd" id="1_overlay"]
|
|
|
|
[node name="ChatOverlay" type="CanvasLayer"]
|
|
layer = 100
|
|
script = ExtResource("1_overlay")
|
|
|
|
[node name="ChatBubble" type="Button" parent="."]
|
|
layout_mode = 0
|
|
anchor_left = 1.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -76.0
|
|
offset_top = -76.0
|
|
offset_right = -16.0
|
|
offset_bottom = -16.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
text = "Chat"
|
|
theme_override_font_sizes/font_size = 12
|
|
|
|
[node name="BadgeLabel" type="Label" parent="ChatBubble"]
|
|
layout_mode = 0
|
|
anchor_left = 1.0
|
|
anchor_top = 0.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.0
|
|
offset_left = -18.0
|
|
offset_top = -8.0
|
|
offset_right = 8.0
|
|
offset_bottom = 12.0
|
|
visible = false
|
|
text = ""
|
|
horizontal_alignment = 1
|
|
theme_override_font_sizes/font_size = 10
|
|
|
|
[node name="ChatPanel" type="PanelContainer" parent="."]
|
|
visible = false
|
|
layout_mode = 0
|
|
anchor_left = 1.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -356.0
|
|
offset_top = -600.0
|
|
offset_right = -16.0
|
|
offset_bottom = -84.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|