From 395c25b1fbe51f42decf402f97e51eabcc8c0a77 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 18 Jun 2023 16:43:22 +0200 Subject: Godot v3 -> v4 --- UI/HUD/LevelMapCell.gd | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'UI/HUD/LevelMapCell.gd') 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)) -- cgit v1.2.3