diff options
author | nokoe <nokoe@mailbox.org> | 2024-06-26 01:06:37 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2024-06-26 01:07:20 +0200 |
commit | c126d3d3e84fe3b24b42afc7f68f05342988c8c9 (patch) | |
tree | 96f50b02f83852fcf3dd53e5f48ff24526d2666f /client/player/chat_message.tscn | |
parent | 6b40114823cac61a92756af55e06a645a3847426 (diff) | |
download | hurrycurry-c126d3d3e84fe3b24b42afc7f68f05342988c8c9.tar hurrycurry-c126d3d3e84fe3b24b42afc7f68f05342988c8c9.tar.bz2 hurrycurry-c126d3d3e84fe3b24b42afc7f68f05342988c8c9.tar.zst |
add chat bubble, replace textmesh with label3d
Diffstat (limited to 'client/player/chat_message.tscn')
-rw-r--r-- | client/player/chat_message.tscn | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/client/player/chat_message.tscn b/client/player/chat_message.tscn new file mode 100644 index 00000000..1ac82368 --- /dev/null +++ b/client/player/chat_message.tscn @@ -0,0 +1,36 @@ +[gd_scene load_steps=4 format=3 uid="uid://5rcfoyuiwuya"] + +[ext_resource type="FontFile" uid="uid://5ixo6b3bd3km" path="res://menu/font-josefin-sans.woff2" id="1_3ximm"] + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dpele"] +bg_color = Color(1, 1, 1, 1) +corner_radius_top_left = 30 +corner_radius_top_right = 30 +corner_radius_bottom_right = 30 +corner_radius_bottom_left = 30 + +[sub_resource type="FontVariation" id="FontVariation_ecurp"] +base_font = ExtResource("1_3ximm") +variation_embolden = 1.0 + +[node name="ChatMessage" type="Panel"] +offset_right = 512.0 +offset_bottom = 128.0 +auto_translate = false +theme_override_styles/panel = SubResource("StyleBoxFlat_dpele") + +[node name="Label" type="Label" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +auto_translate = false +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = SubResource("FontVariation_ecurp") +theme_override_font_sizes/font_size = 40 +horizontal_alignment = 1 +vertical_alignment = 1 +autowrap_mode = 3 +text_overrun_behavior = 3 |