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_bubble.gd | |
| 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_bubble.gd')
| -rw-r--r-- | client/player/chat_bubble.gd | 12 |
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 = "" |