diff options
author | Daniel Weipert <code@drogueronin.de> | 2021-01-02 14:54:57 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2021-01-02 14:54:57 +0100 |
commit | ebae6d04ffc95c6648e863d3de71835f6cd4be96 (patch) | |
tree | 58ce9119a65ccd6925d661f12aab98a057dfb53d /UI/LevelSelect.gd | |
parent | fb64f15e22acfc1c03c7c5357dd66077454adbcf (diff) |
Initial working commit
Diffstat (limited to 'UI/LevelSelect.gd')
-rw-r--r-- | UI/LevelSelect.gd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/UI/LevelSelect.gd b/UI/LevelSelect.gd index c173a7b..7abc5f2 100644 --- a/UI/LevelSelect.gd +++ b/UI/LevelSelect.gd @@ -2,10 +2,14 @@ extends Control func _ready(): + Global.connect("level_map_updated", self, "draw") + draw() + + +func draw(): var Cell = load("res://UI/LevelSelectCell.tscn") for idx in range(9): - var level = Global.get_level(idx) var cell = Cell.instance() cell.level_idx = idx cell.set_rect_size(1024/3, 600/3) |