diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/button.gd | 2 | ||||
-rw-r--r-- | components/healthbar/healtbar.gd | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/components/button.gd b/components/button.gd index 6ed79be..45a3f4f 100644 --- a/components/button.gd +++ b/components/button.gd @@ -39,6 +39,8 @@ func _ready(): func _text(value): text = value + if label == null: + return _text_changed() func _text_changed(): diff --git a/components/healthbar/healtbar.gd b/components/healthbar/healtbar.gd index a78a81d..b2df800 100644 --- a/components/healthbar/healtbar.gd +++ b/components/healthbar/healtbar.gd @@ -1,6 +1,6 @@ extends Node2D -export var maxhealth = 3 +export var maxhealth = 10 export var offset = 40 var h: PackedScene = preload("res://components/healthbar/heart.tscn") |