UI improvement start

This commit is contained in:
dingo
2026-04-10 11:14:10 -04:00
parent f59f0af514
commit 4302a0f048
24 changed files with 32471 additions and 139 deletions
@@ -1,44 +1,41 @@
[gd_scene load_steps=2 format=3]
[gd_scene load_steps=2 format=3 uid="uid://dseump8dmnrra"]
[ext_resource type="Script" path="res://scenes/chat/chat_overlay.gd" id="1_overlay"]
[ext_resource type="Script" uid="uid://b04hb2kfvfmw2" 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
anchors_preset = 3
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
offset_left = -106.0
offset_top = -422.0
offset_right = -46.0
offset_bottom = -362.0
grow_horizontal = 0
grow_vertical = 0
text = "Chat"
theme_override_font_sizes/font_size = 12
text = "Chat"
[node name="BadgeLabel" type="Label" parent="ChatBubble"]
visible = false
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
horizontal_alignment = 1
[node name="ChatPanel" type="PanelContainer" parent="."]
visible = false
layout_mode = 0
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
@@ -51,19 +48,14 @@ grow_horizontal = 0
grow_vertical = 0
[node name="RootVBox" type="VBoxContainer" parent="ChatPanel"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
layout_mode = 2
theme_override_constants/separation = 0
[node name="Header" type="MarginContainer" parent="ChatPanel/RootVBox"]
layout_mode = 2
theme_override_constants/margin_left = 12
theme_override_constants/margin_right = 8
theme_override_constants/margin_top = 6
theme_override_constants/margin_right = 8
theme_override_constants/margin_bottom = 6
[node name="HeaderInner" type="HBoxContainer" parent="ChatPanel/RootVBox/Header"]
@@ -74,73 +66,73 @@ theme_override_constants/separation = 8
[node name="TitleLabel" type="Label" parent="ChatPanel/RootVBox/Header/HeaderInner"]
layout_mode = 2
size_flags_horizontal = 3
text = "Chat"
theme_override_font_sizes/font_size = 15
text = "Chat"
[node name="CloseBtn" type="Button" parent="ChatPanel/RootVBox/Header/HeaderInner"]
unique_name_in_owner = true
layout_mode = 2
flat = true
text = "✕"
theme_override_font_sizes/font_size = 14
text = "✕"
flat = true
[node name="HeaderSep" type="HSeparator" parent="ChatPanel/RootVBox"]
layout_mode = 2
[node name="TabBar" type="HBoxContainer" parent="ChatPanel/RootVBox"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(0, 28)
layout_mode = 2
theme_override_constants/separation = 0
[node name="FriendsTabBtn" type="Button" parent="ChatPanel/RootVBox/TabBar"]
layout_mode = 2
size_flags_horizontal = 3
flat = true
text = "Friends"
theme_override_font_sizes/font_size = 11
text = "Friends"
flat = true
[node name="PresenceTabBtn" type="Button" parent="ChatPanel/RootVBox/TabBar"]
layout_mode = 2
size_flags_horizontal = 3
flat = true
text = "Presence"
theme_override_font_sizes/font_size = 11
text = "Presence"
flat = true
[node name="GlobalTabBtn" type="Button" parent="ChatPanel/RootVBox/TabBar"]
layout_mode = 2
size_flags_horizontal = 3
flat = true
text = "Global"
theme_override_font_sizes/font_size = 11
text = "Global"
flat = true
[node name="LobbyTabBtn" type="Button" parent="ChatPanel/RootVBox/TabBar"]
layout_mode = 2
size_flags_horizontal = 3
flat = true
text = "Lobby"
theme_override_font_sizes/font_size = 11
text = "Lobby"
flat = true
[node name="GameTabBtn" type="Button" parent="ChatPanel/RootVBox/TabBar"]
layout_mode = 2
size_flags_horizontal = 3
flat = true
text = "Game"
theme_override_font_sizes/font_size = 11
text = "Game"
flat = true
[node name="PartyTabBtn" type="Button" parent="ChatPanel/RootVBox/TabBar"]
layout_mode = 2
size_flags_horizontal = 3
flat = true
text = "Party"
theme_override_font_sizes/font_size = 11
text = "Party"
flat = true
[node name="DmsTabBtn" type="Button" parent="ChatPanel/RootVBox/TabBar"]
layout_mode = 2
size_flags_horizontal = 3
flat = true
text = "DMs"
theme_override_font_sizes/font_size = 11
text = "DMs"
flat = true
[node name="TabSep" type="HSeparator" parent="ChatPanel/RootVBox"]
layout_mode = 2
@@ -151,19 +143,19 @@ layout_mode = 2
size_flags_vertical = 3
[node name="FriendsPane" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea"]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
visible = false
theme_override_constants/separation = 0
[node name="RequestsSection" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/FriendsPane"]
unique_name_in_owner = true
layout_mode = 2
visible = false
layout_mode = 2
theme_override_constants/separation = 0
[node name="ReqMargin" type="MarginContainer" parent="ChatPanel/RootVBox/ContentArea/FriendsPane/RequestsSection"]
@@ -173,10 +165,10 @@ theme_override_constants/margin_top = 6
theme_override_constants/margin_bottom = 2
[node name="ReqHeader" type="Label" parent="ChatPanel/RootVBox/ContentArea/FriendsPane/RequestsSection/ReqMargin"]
layout_mode = 2
text = "FRIEND REQUESTS"
modulate = Color(0.52, 0.52, 0.58, 1)
layout_mode = 2
theme_override_font_sizes/font_size = 10
text = "FRIEND REQUESTS"
[node name="RequestsList" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/FriendsPane/RequestsSection"]
unique_name_in_owner = true
@@ -198,20 +190,20 @@ size_flags_horizontal = 3
theme_override_constants/separation = 0
[node name="PresencePane" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea"]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
visible = false
theme_override_constants/separation = 0
[node name="StatusMargin" type="MarginContainer" parent="ChatPanel/RootVBox/ContentArea/PresencePane"]
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_right = 12
theme_override_constants/margin_bottom = 8
[node name="StatusHBox" type="HBoxContainer" parent="ChatPanel/RootVBox/ContentArea/PresencePane/StatusMargin"]
@@ -222,8 +214,8 @@ theme_override_constants/separation = 8
[node name="StatusLabel" type="Label" parent="ChatPanel/RootVBox/ContentArea/PresencePane/StatusMargin/StatusHBox"]
layout_mode = 2
size_flags_horizontal = 3
text = "My Status:"
theme_override_font_sizes/font_size = 13
text = "My Status:"
[node name="PresenceOption" type="OptionButton" parent="ChatPanel/RootVBox/ContentArea/PresencePane/StatusMargin/StatusHBox"]
unique_name_in_owner = true
@@ -240,10 +232,10 @@ theme_override_constants/margin_top = 6
theme_override_constants/margin_bottom = 2
[node name="PresenceHeaderLabel" type="Label" parent="ChatPanel/RootVBox/ContentArea/PresencePane/PresenceHeaderMargin"]
layout_mode = 2
text = "FRIENDS PRESENCE"
modulate = Color(0.52, 0.52, 0.58, 1)
layout_mode = 2
theme_override_font_sizes/font_size = 10
text = "FRIENDS PRESENCE"
[node name="PresenceScroll" type="ScrollContainer" parent="ChatPanel/RootVBox/ContentArea/PresencePane"]
layout_mode = 2
@@ -257,13 +249,13 @@ size_flags_horizontal = 3
theme_override_constants/separation = 0
[node name="GlobalPane" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea"]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
visible = false
theme_override_constants/separation = 0
[node name="GlobalScroll" type="ScrollContainer" parent="ChatPanel/RootVBox/ContentArea/GlobalPane"]
@@ -275,8 +267,8 @@ horizontal_scroll_mode = 0
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_right = 8
theme_override_constants/margin_bottom = 4
[node name="GlobalList" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/GlobalPane/GlobalScroll/GlobalMargin"]
@@ -286,13 +278,13 @@ size_flags_horizontal = 3
theme_override_constants/separation = 2
[node name="LobbyPane" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea"]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
visible = false
theme_override_constants/separation = 0
[node name="LobbyScroll" type="ScrollContainer" parent="ChatPanel/RootVBox/ContentArea/LobbyPane"]
@@ -304,8 +296,8 @@ horizontal_scroll_mode = 0
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_right = 8
theme_override_constants/margin_bottom = 4
[node name="LobbyList" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/LobbyPane/LobbyScroll/LobbyMargin"]
@@ -315,13 +307,13 @@ size_flags_horizontal = 3
theme_override_constants/separation = 2
[node name="GamePane" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea"]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
visible = false
theme_override_constants/separation = 0
[node name="GameScroll" type="ScrollContainer" parent="ChatPanel/RootVBox/ContentArea/GamePane"]
@@ -333,8 +325,8 @@ horizontal_scroll_mode = 0
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_right = 8
theme_override_constants/margin_bottom = 4
[node name="GameList" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/GamePane/GameScroll/GameMargin"]
@@ -344,27 +336,27 @@ size_flags_horizontal = 3
theme_override_constants/separation = 2
[node name="PartyPane" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea"]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
visible = false
theme_override_constants/separation = 0
[node name="PartyActionBar" type="HBoxContainer" parent="ChatPanel/RootVBox/ContentArea/PartyPane"]
unique_name_in_owner = true
layout_mode = 2
visible = false
layout_mode = 2
theme_override_constants/separation = 4
[node name="PartyActionMargin" type="MarginContainer" parent="ChatPanel/RootVBox/ContentArea/PartyPane/PartyActionBar"]
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_right = 8
theme_override_constants/margin_bottom = 4
[node name="PartyActionInner" type="HBoxContainer" parent="ChatPanel/RootVBox/ContentArea/PartyPane/PartyActionBar/PartyActionMargin"]
@@ -373,26 +365,26 @@ theme_override_constants/separation = 6
[node name="PartyNameLabel" type="Label" parent="ChatPanel/RootVBox/ContentArea/PartyPane/PartyActionBar/PartyActionMargin/PartyActionInner"]
unique_name_in_owner = true
modulate = Color(0.42, 1, 0.58, 1)
layout_mode = 2
size_flags_horizontal = 3
text = "Party"
modulate = Color(0.42, 1.0, 0.58, 1)
theme_override_font_sizes/font_size = 12
text = "Party"
[node name="RenameBtn" type="Button" parent="ChatPanel/RootVBox/ContentArea/PartyPane/PartyActionBar/PartyActionMargin/PartyActionInner"]
unique_name_in_owner = true
layout_mode = 2
flat = true
text = "Rename"
theme_override_font_sizes/font_size = 11
text = "Rename"
flat = true
[node name="LeaveBtn" type="Button" parent="ChatPanel/RootVBox/ContentArea/PartyPane/PartyActionBar/PartyActionMargin/PartyActionInner"]
unique_name_in_owner = true
modulate = Color(1, 0.38, 0.38, 1)
layout_mode = 2
flat = true
text = "Leave"
modulate = Color(1.0, 0.38, 0.38, 1)
theme_override_font_sizes/font_size = 11
text = "Leave"
flat = true
[node name="PartyActionSep" type="HSeparator" parent="ChatPanel/RootVBox/ContentArea/PartyPane"]
layout_mode = 2
@@ -406,8 +398,8 @@ horizontal_scroll_mode = 0
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_right = 8
theme_override_constants/margin_bottom = 4
[node name="PartyList" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/PartyPane/PartyScroll/PartyMargin"]
@@ -417,18 +409,18 @@ size_flags_horizontal = 3
theme_override_constants/separation = 2
[node name="DmsPane" type="HBoxContainer" parent="ChatPanel/RootVBox/ContentArea"]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
visible = false
theme_override_constants/separation = 0
[node name="DmConvArea" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/DmsPane"]
layout_mode = 2
custom_minimum_size = Vector2(110, 0)
layout_mode = 2
theme_override_constants/separation = 0
[node name="DmConvScroll" type="ScrollContainer" parent="ChatPanel/RootVBox/ContentArea/DmsPane/DmConvArea"]
@@ -459,8 +451,8 @@ horizontal_scroll_mode = 0
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_right = 8
theme_override_constants/margin_bottom = 4
[node name="DmMsgList" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/DmsPane/DmMsgArea/DmMsgScroll/DmMsgMargin"]
@@ -474,16 +466,16 @@ layout_mode = 2
[node name="InputBar" type="HBoxContainer" parent="ChatPanel/RootVBox"]
unique_name_in_owner = true
layout_mode = 2
visible = false
layout_mode = 2
theme_override_constants/separation = 0
[node name="InputMargin" type="MarginContainer" parent="ChatPanel/RootVBox/InputBar"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/margin_left = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_top = 6
theme_override_constants/margin_right = 8
theme_override_constants/margin_bottom = 6
[node name="InputInner" type="HBoxContainer" parent="ChatPanel/RootVBox/InputBar/InputMargin"]
@@ -495,13 +487,13 @@ theme_override_constants/separation = 6
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 13
placeholder_text = "Type a message..."
max_length = 500
theme_override_font_sizes/font_size = 13
[node name="SendBtn" type="Button" parent="ChatPanel/RootVBox/InputBar/InputMargin/InputInner"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(52, 0)
text = "Send"
layout_mode = 2
theme_override_font_sizes/font_size = 12
text = "Send"