diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-06-18 16:43:22 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-06-18 16:43:22 +0200 |
commit | 395c25b1fbe51f42decf402f97e51eabcc8c0a77 (patch) | |
tree | 72a17c71a39b53d328a76e111ae205d9538d64d0 /UI/HUD/LevelMapCell.gd | |
parent | 2686ec6d4af6b5437a5f5a5cac008f3d38295f78 (diff) |
Godot v3 -> v4
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)) |