This commit is contained in:
2026-08-23 22:05:57 +03:00
parent ef2fb24969
commit 91cd027a98
5 changed files with 8 additions and 7 deletions
+4 -3
View File
@@ -3,7 +3,7 @@ extends CanvasLayer
const _GOLD := Color(1.00, 0.78, 0.22)
const _CREAM := Color(0.93, 0.88, 0.72)
const _BAR_W: float = 260.0
const _BAR_W: float = 1260.0
const _BAR_H: float = 18.0
const _BAR_BG: Color = Color(0.12, 0.04, 0.04, 0.88)
const _BAR_FILL: Color = Color(0.65, 0.08, 0.06)
@@ -52,7 +52,8 @@ func _update_bar() -> void:
var enrage_frac: float = DP.f("bear_enrage_frac")
_fill.color = _BAR_FILL.lerp(_BAR_ENRAGE, 1.0 - frac / enrage_frac if frac < enrage_frac else 0.0)
if _label != null:
_label.text = "BEAR %d / %d" % [maxi(_current_hp, 0), _max_hp]
_label.text = "BEAR" % [maxi(_current_hp, 0), _max_hp]
## for hp display in numbers write %d / %d
func _build_ui() -> void:
@@ -80,7 +81,7 @@ func _build_ui() -> void:
_label.add_theme_color_override("font_color", _GOLD)
_label.add_theme_color_override("font_outline_color", Color(0, 0, 0, 0.85))
_label.add_theme_constant_override("outline_size", 3)
_label.add_theme_font_size_override("font_size", 13)
_label.add_theme_font_size_override("font_size", 30)
_label.mouse_filter = Control.MOUSE_FILTER_IGNORE
col.add_child(_label)