Skip to content

Commit

Permalink
Fix next indicator texture not being loaded (#1724)
Browse files Browse the repository at this point in the history
fixes # 1720
  • Loading branch information
Jowan-Spooner committed Sep 15, 2023
1 parent 48c483a commit 1e5e126
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addons/dialogic/Modules/Text/node_next_indicator.gd
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@ 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():
add_to_group('dialogic_next_indicator')
# 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)
Expand Down

0 comments on commit 1e5e126

Please sign in to comment.