fix bugs
This commit is contained in:
@@ -25,6 +25,14 @@ func _ready():
|
||||
info_label.add_theme_color_override("font_color", Color.WHITE)
|
||||
info_label.add_theme_font_size_override("font_size", 20)
|
||||
info_label.horizontal_alignment = HORIZONTAL_ALIGNMENT_RIGHT
|
||||
|
||||
# Load standard_font.png as bitmap font
|
||||
var standard_font_resource = null
|
||||
if ResourceLoader.exists("res://assets/fonts/standard_font.png"):
|
||||
standard_font_resource = load("res://assets/fonts/standard_font.png")
|
||||
if standard_font_resource:
|
||||
info_label.add_theme_font_override("font", standard_font_resource)
|
||||
|
||||
add_child(info_label)
|
||||
|
||||
# Position in top right
|
||||
|
||||
Reference in New Issue
Block a user