Feature/ia automated test #8
@@ -609,10 +609,10 @@ func _draw_enemy_health_bar() -> void:
|
|||||||
|
|
||||||
# Draws floating damage numbers that drift upward and fade out.
|
# Draws floating damage numbers that drift upward and fade out.
|
||||||
func _draw_damage_texts() -> void:
|
func _draw_damage_texts() -> void:
|
||||||
|
var font: Font = ThemeDB.get_default_theme().get_font("font", "Label")
|
||||||
|
if font == null:
|
||||||
|
return
|
||||||
|
|
||||||
for entry in _damage_texts:
|
for entry in _damage_texts:
|
||||||
var alpha: float = clamp(entry.timer, 0.0, 1.0)
|
var alpha: float = clamp(entry.timer, 0.0, 1.0)
|
||||||
draw_string(
|
draw_string(font, entry.local_pos, entry.text, Color(1, 1, 1, alpha))
|
||||||
entry.local_pos,
|
|
||||||
entry.text,
|
|
||||||
Color(1, 1, 1, alpha)
|
|
||||||
)
|
|
||||||
Reference in new issue
Block a user