Client/scripts/match/ui/player_hitpoints.gd
Kevin Schmidt a1334a1f46
All checks were successful
Quality Check / Linting (push) Successful in 6s
Quality Check / Linting (pull_request) Successful in 6s
Show Money, show hitpoints
2025-03-13 13:12:55 +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")