Skip to content

Commit e54696e

Browse files
Fix for Nameplate being unaligned
Delay showing nameplate until it is properly aligned Co-Authored-By: meyaoigames <[email protected]>
1 parent 8186a80 commit e54696e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

addons/dialogic/Nodes/TextBubble.gd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ func update_name(name: String, color: Color = Color.white, autocolor: bool=false
3535
return
3636

3737
if not name.empty():
38-
name_label.visible = true
3938
# Hack to reset the size
4039
name_label.rect_min_size = Vector2(0, 0)
4140
name_label.rect_size = Vector2(-1, 40)
@@ -45,6 +44,8 @@ func update_name(name: String, color: Color = Color.white, autocolor: bool=false
4544
call_deferred('align_name_label')
4645
if autocolor:
4746
name_label.set('custom_colors/font_color', color)
47+
48+
name_label.visible = true
4849
else:
4950
name_label.visible = false
5051

0 commit comments

Comments
 (0)