aboutsummaryrefslogtreecommitdiff
path: root/client/player/chat_bubble.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-06-26 01:06:37 +0200
committernokoe <nokoe@mailbox.org>2024-06-26 01:07:20 +0200
commitc126d3d3e84fe3b24b42afc7f68f05342988c8c9 (patch)
tree96f50b02f83852fcf3dd53e5f48ff24526d2666f /client/player/chat_bubble.gd
parent6b40114823cac61a92756af55e06a645a3847426 (diff)
downloadhurrycurry-c126d3d3e84fe3b24b42afc7f68f05342988c8c9.tar
hurrycurry-c126d3d3e84fe3b24b42afc7f68f05342988c8c9.tar.bz2
hurrycurry-c126d3d3e84fe3b24b42afc7f68f05342988c8c9.tar.zst
add chat bubble, replace textmesh with label3d
Diffstat (limited to 'client/player/chat_bubble.gd')
-rw-r--r--client/player/chat_bubble.gd12
1 files changed, 12 insertions, 0 deletions
diff --git a/client/player/chat_bubble.gd b/client/player/chat_bubble.gd
new file mode 100644
index 00000000..6b09b69b
--- /dev/null
+++ b/client/player/chat_bubble.gd
@@ -0,0 +1,12 @@
+class_name ChatBubble
+extends MeshInstance3D
+
+@onready var label: Label = $SubViewport/ChatMessage/Label
+
+func set_text(t: String):
+ visible = true
+ label.text = t
+
+func remove_text():
+ visible = false
+ label.text = ""