Client/scripts/match/ui/player_hitpoints.gd
Kevin Schmidt f0805a14a8
Some checks failed
Quality Check / Linting (pull_request) Failing after 6s
Quality Check / Linting (push) Failing after 6s
Show Money, show hitpoints
2025-03-13 12:05:24 +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")