500 lines
16 KiB
Plaintext
500 lines
16 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://dseump8dmnrra"]
|
|
|
|
[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="."]
|
|
anchors_preset = 3
|
|
anchor_left = 1.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -58.0
|
|
offset_top = -219.0
|
|
offset_right = 2.0
|
|
offset_bottom = -159.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
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_right = 1.0
|
|
offset_left = -18.0
|
|
offset_top = -8.0
|
|
offset_right = 8.0
|
|
offset_bottom = 12.0
|
|
theme_override_font_sizes/font_size = 10
|
|
horizontal_alignment = 1
|
|
|
|
[node name="ChatPanel" type="PanelContainer" parent="."]
|
|
visible = false
|
|
anchors_preset = 3
|
|
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
|
|
|
|
[node name="RootVBox" type="VBoxContainer" parent="ChatPanel"]
|
|
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_top = 6
|
|
theme_override_constants/margin_right = 8
|
|
theme_override_constants/margin_bottom = 6
|
|
|
|
[node name="HeaderInner" type="HBoxContainer" parent="ChatPanel/RootVBox/Header"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="TitleLabel" type="Label" parent="ChatPanel/RootVBox/Header/HeaderInner"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
theme_override_font_sizes/font_size = 11
|
|
text = "DMs"
|
|
flat = true
|
|
|
|
[node name="TabSep" type="HSeparator" parent="ChatPanel/RootVBox"]
|
|
layout_mode = 2
|
|
|
|
[node name="ContentArea" type="Control" parent="ChatPanel/RootVBox"]
|
|
unique_name_in_owner = true
|
|
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
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="RequestsSection" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/FriendsPane"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="ReqMargin" type="MarginContainer" parent="ChatPanel/RootVBox/ContentArea/FriendsPane/RequestsSection"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 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"]
|
|
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
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="ReqSep" type="HSeparator" parent="ChatPanel/RootVBox/ContentArea/FriendsPane/RequestsSection"]
|
|
layout_mode = 2
|
|
|
|
[node name="FriendsScroll" type="ScrollContainer" parent="ChatPanel/RootVBox/ContentArea/FriendsPane"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="FriendsList" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/FriendsPane/FriendsScroll"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
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
|
|
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_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"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="StatusLabel" type="Label" parent="ChatPanel/RootVBox/ContentArea/PresencePane/StatusMargin/StatusHBox"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
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
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 12
|
|
|
|
[node name="PresenceSep" type="HSeparator" parent="ChatPanel/RootVBox/ContentArea/PresencePane"]
|
|
layout_mode = 2
|
|
|
|
[node name="PresenceHeaderMargin" type="MarginContainer" parent="ChatPanel/RootVBox/ContentArea/PresencePane"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 10
|
|
theme_override_constants/margin_top = 6
|
|
theme_override_constants/margin_bottom = 2
|
|
|
|
[node name="PresenceHeaderLabel" type="Label" parent="ChatPanel/RootVBox/ContentArea/PresencePane/PresenceHeaderMargin"]
|
|
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
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="PresenceList" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/PresencePane/PresenceScroll"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
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
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="GlobalScroll" type="ScrollContainer" parent="ChatPanel/RootVBox/ContentArea/GlobalPane"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="GlobalMargin" type="MarginContainer" parent="ChatPanel/RootVBox/ContentArea/GlobalPane/GlobalScroll"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/margin_left = 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"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
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
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="LobbyScroll" type="ScrollContainer" parent="ChatPanel/RootVBox/ContentArea/LobbyPane"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="LobbyMargin" type="MarginContainer" parent="ChatPanel/RootVBox/ContentArea/LobbyPane/LobbyScroll"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/margin_left = 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"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
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
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="GameScroll" type="ScrollContainer" parent="ChatPanel/RootVBox/ContentArea/GamePane"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="GameMargin" type="MarginContainer" parent="ChatPanel/RootVBox/ContentArea/GamePane/GameScroll"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/margin_left = 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"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
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
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="PartyActionBar" type="HBoxContainer" parent="ChatPanel/RootVBox/ContentArea/PartyPane"]
|
|
unique_name_in_owner = true
|
|
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_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"]
|
|
layout_mode = 2
|
|
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
|
|
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
|
|
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
|
|
theme_override_font_sizes/font_size = 11
|
|
text = "Leave"
|
|
flat = true
|
|
|
|
[node name="PartyActionSep" type="HSeparator" parent="ChatPanel/RootVBox/ContentArea/PartyPane"]
|
|
layout_mode = 2
|
|
|
|
[node name="PartyScroll" type="ScrollContainer" parent="ChatPanel/RootVBox/ContentArea/PartyPane"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="PartyMargin" type="MarginContainer" parent="ChatPanel/RootVBox/ContentArea/PartyPane/PartyScroll"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/margin_left = 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"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
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
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="DmConvArea" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/DmsPane"]
|
|
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"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="DmConvList" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/DmsPane/DmConvArea/DmConvScroll"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="DmVSep" type="VSeparator" parent="ChatPanel/RootVBox/ContentArea/DmsPane"]
|
|
layout_mode = 2
|
|
|
|
[node name="DmMsgArea" type="VBoxContainer" parent="ChatPanel/RootVBox/ContentArea/DmsPane"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="DmMsgScroll" type="ScrollContainer" parent="ChatPanel/RootVBox/ContentArea/DmsPane/DmMsgArea"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="DmMsgMargin" type="MarginContainer" parent="ChatPanel/RootVBox/ContentArea/DmsPane/DmMsgArea/DmMsgScroll"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/margin_left = 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"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 2
|
|
|
|
[node name="InputSep" type="HSeparator" parent="ChatPanel/RootVBox"]
|
|
layout_mode = 2
|
|
|
|
[node name="InputBar" type="HBoxContainer" parent="ChatPanel/RootVBox"]
|
|
unique_name_in_owner = true
|
|
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_top = 6
|
|
theme_override_constants/margin_right = 8
|
|
theme_override_constants/margin_bottom = 6
|
|
|
|
[node name="InputInner" type="HBoxContainer" parent="ChatPanel/RootVBox/InputBar/InputMargin"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="MessageInput" type="LineEdit" parent="ChatPanel/RootVBox/InputBar/InputMargin/InputInner"]
|
|
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
|
|
|
|
[node name="SendBtn" type="Button" parent="ChatPanel/RootVBox/InputBar/InputMargin/InputInner"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(52, 0)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "Send"
|