diff options
Diffstat (limited to 'text_bubble.gd')
| -rw-r--r-- | text_bubble.gd | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/text_bubble.gd b/text_bubble.gd new file mode 100644 index 0000000..545f469 --- /dev/null +++ b/text_bubble.gd @@ -0,0 +1,10 @@ +class_name TextBubble +extends Node2D + +@export var text: String + +func _ready() -> void: + $Label.text = text + +func size() -> Vector2: + return $ColorRect.size |
