summaryrefslogtreecommitdiff
path: root/UI/LevelSelectCell.gd
diff options
context:
space:
mode:
Diffstat (limited to 'UI/LevelSelectCell.gd')
-rw-r--r--UI/LevelSelectCell.gd15
1 files changed, 11 insertions, 4 deletions
diff --git a/UI/LevelSelectCell.gd b/UI/LevelSelectCell.gd
index a03fc52..a756210 100644
--- a/UI/LevelSelectCell.gd
+++ b/UI/LevelSelectCell.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)