diff options
Diffstat (limited to 'UI/HUD/LevelMapCell.gd')
-rw-r--r-- | UI/HUD/LevelMapCell.gd | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/UI/HUD/LevelMapCell.gd b/UI/HUD/LevelMapCell.gd index a03fc52..f66c8c3 100644 --- a/UI/HUD/LevelMapCell.gd +++ b/UI/HUD/LevelMapCell.gd @@ -20,7 +20,14 @@ func _ready(): func set_rect_size(x, y): - self.rect_size.x = x - self.rect_size.y = y - $ClearMark.rect_size.x = x - $ClearMark.rect_size.y = y + self.size.x = x + self.size.y = y + + $ClearMark.position = Vector2(0, 0) + $ClearMark.size.x = x + $ClearMark.size.y = y + $ClearMark.add_theme_font_size_override('font_size', y / 2) + + $Time.position = Vector2(3, 3) + + $Name.position = Vector2(3, y - ($Name.size.y / 2)) |