summaryrefslogtreecommitdiff
path: root/ui/chat_window.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-12-15 16:53:12 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-12-15 16:53:12 +0100
commit75793bd23d275d10d6a0bd8024a7e412b64557ce (patch)
treeeef8145a645a88c718a4004e3a5e5f8f7700fa47 /ui/chat_window.tscn
parenta14e88ff4d0d87841a44254e2bff1784da6e8b48 (diff)
next commit
Diffstat (limited to 'ui/chat_window.tscn')
-rw-r--r--ui/chat_window.tscn45
1 files changed, 45 insertions, 0 deletions
diff --git a/ui/chat_window.tscn b/ui/chat_window.tscn
new file mode 100644
index 0000000..5b4e8aa
--- /dev/null
+++ b/ui/chat_window.tscn
@@ -0,0 +1,45 @@
+[gd_scene load_steps=3 format=3 uid="uid://c8uqw08hxfqlu"]
+
+[ext_resource type="Script" uid="uid://bdjmcp6ewhq54" path="res://ui/chat_window.gd" id="1_vovuq"]
+
+[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ku06j"]
+bg_color = Color(0.133333, 0.133333, 0.133333, 0.784314)
+
+[node name="ChatWindow" type="PanelContainer"]
+offset_right = 320.0
+offset_bottom = 175.0
+theme_override_styles/panel = SubResource("StyleBoxFlat_ku06j")
+script = ExtResource("1_vovuq")
+player_color = Color(0.156863, 0.784314, 0, 1)
+
+[node name="VBoxContainer" type="VBoxContainer" parent="."]
+layout_mode = 2
+
+[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"]
+layout_mode = 2
+size_flags_vertical = 3
+theme_override_constants/margin_left = 4
+theme_override_constants/margin_top = 4
+theme_override_constants/margin_bottom = 4
+
+[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer/MarginContainer"]
+unique_name_in_owner = true
+layout_mode = 2
+size_flags_vertical = 3
+horizontal_scroll_mode = 0
+vertical_scroll_mode = 2
+
+[node name="ChatWindow" type="VBoxContainer" parent="VBoxContainer/MarginContainer/ScrollContainer"]
+unique_name_in_owner = true
+layout_mode = 2
+
+[node name="Label" type="Label" parent="VBoxContainer/MarginContainer/ScrollContainer/ChatWindow"]
+layout_mode = 2
+text = "Label"
+
+[node name="LineEdit" type="LineEdit" parent="VBoxContainer"]
+unique_name_in_owner = true
+layout_mode = 2
+placeholder_text = "Send Messages here"
+
+[connection signal="text_submitted" from="VBoxContainer/LineEdit" to="." method="_on_line_edit_text_submitted"]