24 lines
459 B
GDScript3
24 lines
459 B
GDScript3
|
|
@tool
|
||
|
|
|
||
|
|
extends Control
|
||
|
|
class_name PostIt
|
||
|
|
|
||
|
|
@export var text: String = "" :
|
||
|
|
set (value):
|
||
|
|
if is_inside_tree() or Engine.is_editor_hint():
|
||
|
|
$Label.text = value
|
||
|
|
text = value
|
||
|
|
@export var voice_line: AudioStream = null
|
||
|
|
|
||
|
|
func _ready() -> void:
|
||
|
|
$Label.text = self.text
|
||
|
|
|
||
|
|
func _process(delta: float) -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
func _on_focus_entered():
|
||
|
|
print(self, "is focused")
|
||
|
|
|
||
|
|
func _on_focus_exited():
|
||
|
|
print(self, "is not focused")
|