From 6c74fe5c8a74031a4bfcbfc73a7fcd008af7554c Mon Sep 17 00:00:00 2001 From: tpart Date: Thu, 29 Aug 2024 14:41:55 +0200 Subject: Add new chat system --- client/menu/chat/chat_message.tscn | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 client/menu/chat/chat_message.tscn (limited to 'client/menu/chat/chat_message.tscn') diff --git a/client/menu/chat/chat_message.tscn b/client/menu/chat/chat_message.tscn new file mode 100644 index 00000000..84ccb402 --- /dev/null +++ b/client/menu/chat/chat_message.tscn @@ -0,0 +1,35 @@ +[gd_scene load_steps=5 format=3 uid="uid://bpc2qgsvcafhe"] + +[ext_resource type="Script" path="res://menu/chat/chat_message.gd" id="1_ey0qp"] +[ext_resource type="Theme" uid="uid://b0qmvo504e457" path="res://menu/theme/theme.tres" id="1_rx6vg"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ocjra"] + +[sub_resource type="FontVariation" id="FontVariation_jfhbh"] +variation_embolden = 1.3 + +[node name="ChatMessage" type="PanelContainer"] +offset_right = 72.0 +offset_bottom = 165.0 +theme_override_styles/panel = SubResource("StyleBoxEmpty_ocjra") +script = ExtResource("1_ey0qp") + +[node name="VBox" type="HBoxContainer" parent="."] +layout_mode = 2 +theme = ExtResource("1_rx6vg") + +[node name="Sender" type="Label" parent="VBox"] +layout_mode = 2 +theme_override_fonts/font = SubResource("FontVariation_jfhbh") +text = "" + +[node name="Message" type="Label" parent="VBox"] +layout_mode = 2 +size_flags_horizontal = 3 +text = "Message" +autowrap_mode = 3 + +[node name="FadeAway" type="Timer" parent="."] +one_shot = true + +[connection signal="timeout" from="FadeAway" to="." method="_on_fade_away_timeout"] -- cgit v1.2.3-70-g09d2