You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
580 B
GDScript
20 lines
580 B
GDScript
extends Control
|
|
class_name Headbar
|
|
|
|
@onready var hpbar = (%HpBar as TextureProgressBar)
|
|
@onready var shieldbar = (%ShieldBar as TextureProgressBar)
|
|
@onready var stunbar = (%StunBar as TextureProgressBar)
|
|
|
|
func _ready():
|
|
pass
|
|
|
|
func _process(delta):
|
|
pass
|
|
|
|
func on_hp_changed(value):hpbar.value = value
|
|
func on_hp_max_changed(value):hpbar.max_value = value
|
|
func on_shield_changed(value):shieldbar.value = value
|
|
func on_shield_max_changed(value):shieldbar.max_value = value
|
|
func on_stun_changed(value):stunbar.value = value
|
|
func on_stun_max_changed(value):stunbar.max_value = value
|