180 lines
4.9 KiB
Plaintext
180 lines
4.9 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://dqsocial001"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/ui/social_panel.gd" id="1_social"]
|
|
|
|
[node name="SocialPanel" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
script = ExtResource("1_social")
|
|
|
|
[node name="BgOverlay" type="ColorRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
color = Color(0, 0, 0, 0.6)
|
|
mouse_filter = 0
|
|
|
|
[node name="Panel" type="PanelContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -240.0
|
|
offset_top = -280.0
|
|
offset_right = 240.0
|
|
offset_bottom = 280.0
|
|
|
|
[node name="VBox" type="VBoxContainer" parent="Panel"]
|
|
layout_mode = 2
|
|
|
|
[node name="Header" type="HBoxContainer" parent="Panel/VBox"]
|
|
layout_mode = 2
|
|
|
|
[node name="TitleLabel" type="Label" parent="Panel/VBox/Header"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Social"
|
|
|
|
[node name="CloseBtn" type="Button" parent="Panel/VBox/Header"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "X"
|
|
|
|
[node name="HSep" type="HSeparator" parent="Panel/VBox"]
|
|
layout_mode = 2
|
|
|
|
[node name="TabBar" type="HBoxContainer" parent="Panel/VBox"]
|
|
layout_mode = 2
|
|
|
|
[node name="FriendsTabBtn" type="Button" parent="Panel/VBox/TabBar"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Friends"
|
|
|
|
[node name="GlobalTabBtn" type="Button" parent="Panel/VBox/TabBar"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Global Chat"
|
|
|
|
[node name="DMTabBtn" type="Button" parent="Panel/VBox/TabBar"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "DM"
|
|
visible = false
|
|
|
|
[node name="ContentStack" type="Control" parent="Panel/VBox"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
custom_minimum_size = Vector2(0, 380)
|
|
|
|
[node name="FriendsView" type="VBoxContainer" parent="Panel/VBox/ContentStack"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
|
|
[node name="AddFriendRow" type="HBoxContainer" parent="Panel/VBox/ContentStack/FriendsView"]
|
|
layout_mode = 2
|
|
|
|
[node name="AddFriendInput" type="LineEdit" parent="Panel/VBox/ContentStack/FriendsView/AddFriendRow"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
placeholder_text = "Username or ID..."
|
|
|
|
[node name="AddFriendBtn" type="Button" parent="Panel/VBox/ContentStack/FriendsView/AddFriendRow"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "Add"
|
|
|
|
[node name="FriendScroll" type="ScrollContainer" parent="Panel/VBox/ContentStack/FriendsView"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="FriendList" type="VBoxContainer" parent="Panel/VBox/ContentStack/FriendsView/FriendScroll"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="GlobalView" type="VBoxContainer" parent="Panel/VBox/ContentStack"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
visible = false
|
|
|
|
[node name="GlobalLog" type="RichTextLabel" parent="Panel/VBox/ContentStack/GlobalView"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
bbcode_enabled = true
|
|
scroll_following = true
|
|
|
|
[node name="GlobalInputRow" type="HBoxContainer" parent="Panel/VBox/ContentStack/GlobalView"]
|
|
layout_mode = 2
|
|
|
|
[node name="GlobalInput" type="LineEdit" parent="Panel/VBox/ContentStack/GlobalView/GlobalInputRow"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
placeholder_text = "Type a message..."
|
|
|
|
[node name="GlobalSendBtn" type="Button" parent="Panel/VBox/ContentStack/GlobalView/GlobalInputRow"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "Send"
|
|
|
|
[node name="DMView" type="VBoxContainer" parent="Panel/VBox/ContentStack"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
visible = false
|
|
|
|
[node name="DMHeader" type="HBoxContainer" parent="Panel/VBox/ContentStack/DMView"]
|
|
layout_mode = 2
|
|
|
|
[node name="DMBackBtn" type="Button" parent="Panel/VBox/ContentStack/DMView/DMHeader"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "<- Back"
|
|
|
|
[node name="DMUsernameLabel" type="Label" parent="Panel/VBox/ContentStack/DMView/DMHeader"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="DMLog" type="RichTextLabel" parent="Panel/VBox/ContentStack/DMView"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
bbcode_enabled = true
|
|
scroll_following = true
|
|
|
|
[node name="DMInputRow" type="HBoxContainer" parent="Panel/VBox/ContentStack/DMView"]
|
|
layout_mode = 2
|
|
|
|
[node name="DMInput" type="LineEdit" parent="Panel/VBox/ContentStack/DMView/DMInputRow"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
placeholder_text = "Type a message..."
|
|
|
|
[node name="DMSendBtn" type="Button" parent="Panel/VBox/ContentStack/DMView/DMInputRow"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "Send"
|
|
|