21 lines
523 B
GDScript3
21 lines
523 B
GDScript3
class_name DialogItem
|
|
extends Resource
|
|
|
|
# Declare member variables here. Examples:
|
|
# var a = 2
|
|
# var b = "text"
|
|
|
|
export(Texture) var portrait
|
|
export(PoolStringArray) var text_lines
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
##TODO: I forgot the better way to determine a valid item is null or empty
|
|
if portrait == null:
|
|
push_warning("No protrait defined for dialog item.")
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
#func _process(delta):
|
|
# pass
|