Files
modbison/scenes/chat_ui.tscn
T

203 lines
6.5 KiB
Plaintext

[gd_scene load_steps=2 format=3]
[ext_resource type="Script" path="res://scripts/chat_ui.gd" id="1_cu"]
[node name="ChatUI" 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_cu")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 32.0
offset_top = 32.0
offset_right = -32.0
offset_bottom = -32.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 12
[node name="HeaderHBox" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 16
[node name="BackButton" type="Button" parent="VBoxContainer/HeaderHBox"]
custom_minimum_size = Vector2(100, 36)
layout_mode = 2
text = "< Back"
[node name="TitleLabel" type="Label" parent="VBoxContainer/HeaderHBox"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 26
text = "Chat & Messaging"
horizontal_alignment = 1
[node name="RefreshButton" type="Button" parent="VBoxContainer/HeaderHBox"]
custom_minimum_size = Vector2(100, 36)
layout_mode = 2
text = "Refresh"
[node name="StatusMessageLabel" type="Label" parent="VBoxContainer"]
layout_mode = 2
horizontal_alignment = 1
[node name="TabContainer" type="TabContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
current_tab = 0
[node name="WorldChat" type="VBoxContainer" parent="VBoxContainer/TabContainer"]
layout_mode = 2
theme_override_constants/separation = 8
metadata/_tab_index = 0
[node name="ControlsHBox" type="HBoxContainer" parent="VBoxContainer/TabContainer/WorldChat"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="WorldPrefix" type="Label" parent="VBoxContainer/TabContainer/WorldChat/ControlsHBox"]
layout_mode = 2
text = "World ID:"
[node name="WorldIdEdit" type="LineEdit" parent="VBoxContainer/TabContainer/WorldChat/ControlsHBox"]
custom_minimum_size = Vector2(120, 32)
layout_mode = 2
text = "1"
[node name="JoinChatButton" type="Button" parent="VBoxContainer/TabContainer/WorldChat/ControlsHBox"]
custom_minimum_size = Vector2(110, 32)
layout_mode = 2
text = "Switch Channel"
[node name="Scroll" type="ScrollContainer" parent="VBoxContainer/TabContainer/WorldChat"]
layout_mode = 2
size_flags_vertical = 3
[node name="MessagesList" type="VBoxContainer" parent="VBoxContainer/TabContainer/WorldChat/Scroll"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 8
[node name="SendHBox" type="HBoxContainer" parent="VBoxContainer/TabContainer/WorldChat"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="MessageInput" type="LineEdit" parent="VBoxContainer/TabContainer/WorldChat/SendHBox"]
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "Type a message in world chat..."
[node name="SendButton" type="Button" parent="VBoxContainer/TabContainer/WorldChat/SendHBox"]
custom_minimum_size = Vector2(100, 36)
layout_mode = 2
text = "Send"
[node name="DirectMessages" type="VBoxContainer" parent="VBoxContainer/TabContainer"]
visible = false
layout_mode = 2
theme_override_constants/separation = 8
metadata/_tab_index = 1
[node name="StartHBox" type="HBoxContainer" parent="VBoxContainer/TabContainer/DirectMessages"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="TargetUserEdit" type="LineEdit" parent="VBoxContainer/TabContainer/DirectMessages/StartHBox"]
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "Enter User ID to start conversation..."
[node name="StartDmButton" type="Button" parent="VBoxContainer/TabContainer/DirectMessages/StartHBox"]
custom_minimum_size = Vector2(140, 32)
layout_mode = 2
text = "Start Direct Chat"
[node name="HSplit" type="HSplitContainer" parent="VBoxContainer/TabContainer/DirectMessages"]
layout_mode = 2
size_flags_vertical = 3
split_offset = 260
[node name="ConversationsVBox" type="VBoxContainer" parent="VBoxContainer/TabContainer/DirectMessages/HSplit"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 0.35
theme_override_constants/separation = 6
[node name="ConvHeader" type="Label" parent="VBoxContainer/TabContainer/DirectMessages/HSplit/ConversationsVBox"]
layout_mode = 2
theme_override_font_sizes/font_size = 18
text = "Conversations"
[node name="Scroll" type="ScrollContainer" parent="VBoxContainer/TabContainer/DirectMessages/HSplit/ConversationsVBox"]
layout_mode = 2
size_flags_vertical = 3
[node name="ConvList" type="VBoxContainer" parent="VBoxContainer/TabContainer/DirectMessages/HSplit/ConversationsVBox/Scroll"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 4
[node name="ChatVBox" type="VBoxContainer" parent="VBoxContainer/TabContainer/DirectMessages/HSplit"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 6
[node name="DmHeaderLabel" type="Label" parent="VBoxContainer/TabContainer/DirectMessages/HSplit/ChatVBox"]
layout_mode = 2
theme_override_font_sizes/font_size = 18
text = "Select a conversation"
[node name="Scroll" type="ScrollContainer" parent="VBoxContainer/TabContainer/DirectMessages/HSplit/ChatVBox"]
layout_mode = 2
size_flags_vertical = 3
[node name="MessagesList" type="VBoxContainer" parent="VBoxContainer/TabContainer/DirectMessages/HSplit/ChatVBox/Scroll"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 8
[node name="SendHBox" type="HBoxContainer" parent="VBoxContainer/TabContainer/DirectMessages/HSplit/ChatVBox"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="MessageInput" type="LineEdit" parent="VBoxContainer/TabContainer/DirectMessages/HSplit/ChatVBox/SendHBox"]
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "Type a direct message..."
[node name="SendButton" type="Button" parent="VBoxContainer/TabContainer/DirectMessages/HSplit/ChatVBox/SendHBox"]
custom_minimum_size = Vector2(100, 36)
layout_mode = 2
text = "Send"
[node name="ReportDialog" type="ConfirmationDialog" parent="."]
title = "Report Inappropriate Message"
size = Vector2i(420, 200)
[node name="VBox" type="VBoxContainer" parent="ReportDialog"]
offset_left = 8.0
offset_top = 8.0
offset_right = 412.0
offset_bottom = 151.0
theme_override_constants/separation = 8
[node name="DetailsLabel" type="Label" parent="ReportDialog/VBox"]
layout_mode = 2
autowrap_mode = 2
[node name="ReasonPrompt" type="Label" parent="ReportDialog/VBox"]
layout_mode = 2
text = "Reason for report:"
[node name="ReasonEdit" type="LineEdit" parent="ReportDialog/VBox"]
layout_mode = 2
text = "Inappropriate content"