From 2a9cbb1fa0268c3be828c0d872180282704abb61 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 28 Dec 2023 08:48:41 +0100 Subject: show other player puppets --- UI/LevelSelectCell.gd | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'UI/LevelSelectCell.gd') diff --git a/UI/LevelSelectCell.gd b/UI/LevelSelectCell.gd index cd59593..63380f6 100644 --- a/UI/LevelSelectCell.gd +++ b/UI/LevelSelectCell.gd @@ -13,16 +13,9 @@ func _ready(): stylebox = self.get("theme_override_styles/panel") - $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): -- cgit v1.2.3