summaryrefslogtreecommitdiff
path: root/UI/HUD
diff options
context:
space:
mode:
Diffstat (limited to 'UI/HUD')
-rw-r--r--UI/HUD/LevelMap.gd4
-rw-r--r--UI/HUD/LevelMapCell.gd2
2 files changed, 4 insertions, 2 deletions
diff --git a/UI/HUD/LevelMap.gd b/UI/HUD/LevelMap.gd
index 8de38fa..1b4b860 100644
--- a/UI/HUD/LevelMap.gd
+++ b/UI/HUD/LevelMap.gd
@@ -8,9 +8,9 @@ func _ready():
func draw():
var Cell = load("res://UI/HUD/LevelMapCell.tscn")
- var Level = get_parent().get_parent() # HUD > Level
+ #var Level = get_parent().get_parent() # HUD > Level
- for idx in range(Global.Level_Map.size()):
+ for idx in range(Global.Level_Map.size()): # size = 9
var cell = Cell.instance()
cell.level_idx = idx
cell.set_rect_size(150/3, 150/3)
diff --git a/UI/HUD/LevelMapCell.gd b/UI/HUD/LevelMapCell.gd
index 16ff961..a03fc52 100644
--- a/UI/HUD/LevelMapCell.gd
+++ b/UI/HUD/LevelMapCell.gd
@@ -12,6 +12,8 @@ func _ready():
$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"
$Time.text = str(level.time) + "s"
$Name.text = level.cleared_by.name