summaryrefslogtreecommitdiff
path: root/UI/HUD
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2023-12-28 08:48:41 +0100
committerDaniel Weipert <git@mail.dweipert.de>2023-12-28 08:48:41 +0100
commit2a9cbb1fa0268c3be828c0d872180282704abb61 (patch)
tree4d2a9f805af004a7b960e7918b5d34ddfed7f2c8 /UI/HUD
parent2a5d745c68f11131fb1b27ec42a30ecd6dc5da1d (diff)
show other player puppetsv2.2.0
Diffstat (limited to 'UI/HUD')
-rw-r--r--UI/HUD/LevelMapCell.gd11
1 files changed, 2 insertions, 9 deletions
diff --git a/UI/HUD/LevelMapCell.gd b/UI/HUD/LevelMapCell.gd
index f66c8c3..d8790dd 100644
--- a/UI/HUD/LevelMapCell.gd
+++ b/UI/HUD/LevelMapCell.gd
@@ -7,16 +7,9 @@ var level_idx = 0
func _ready():
var level = Global.get_level(self.level_idx)
- $ClearMark.text = ""
- if level.cleared_by.idx == Enum.PLAYER.FIRST:
- $ClearMark.text = "X"
- elif level.cleared_by.idx == Enum.PLAYER.SECOND:
- $ClearMark.text = "O"
- elif level.cleared_by.idx == Enum.PLAYER.THIRD:
- $ClearMark.text = "P"
-
+ $ClearMark.text = level.cleared_by.player.symbol
$Time.text = str(level.time) + "s"
- $Name.text = level.cleared_by.name
+ $Name.text = level.cleared_by.player.name
func set_rect_size(x, y):