Client/scripts/match/ui/player_hitpoints.gd
Kevin Schmidt 20466ed45f
All checks were successful
Quality Check / Linting (pull_request) Successful in 6s
Quality Check / Linting (push) Successful in 6s
TD-47: Show Money and Hitpoints
2025-03-13 13:21:53 +01:00

10 lines
258 B
GDScript

extends RichTextLabel
func _ready() -> void:
MatchChannel.connect("on_hitpoints_update", on_hitpoints_update)
func on_hitpoints_update(msg: PlayerHitpointsMessage) -> void:
print(msg.playerHitpoints, "test")
self.text = str(msg.playerHitpoints, "HP")