diff --git a/addons/dialogic/Modules/Text/node_next_indicator.gd b/addons/dialogic/Modules/Text/node_next_indicator.gd index a7dbe846b..95a1b5bbd 100644 --- a/addons/dialogic/Modules/Text/node_next_indicator.gd +++ b/addons/dialogic/Modules/Text/node_next_indicator.gd @@ -13,7 +13,11 @@ extends Control ## What animation should the indicator do. @export_enum('bounce', 'blink', 'none') var animation := 0 ## Set the image to use as the indicator. -@export var texture := preload("res://addons/dialogic/Example Assets/next-indicator/next-indicator.png") +@export var texture := preload("res://addons/dialogic/Example Assets/next-indicator/next-indicator.png"): + set(_texture): + texture = _texture + if has_node('Texture'): + get_node('Texture').texture = texture func _ready(): @@ -21,6 +25,7 @@ func _ready(): # Creating texture if texture: var icon := TextureRect.new() + icon.name = 'Texture' icon.ignore_texture_size = true icon.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED icon.size = Vector2(32,32)