From ebae6d04ffc95c6648e863d3de71835f6cd4be96 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 2 Jan 2021 14:54:57 +0100 Subject: Initial working commit --- UI/LevelSelect.gd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'UI/LevelSelect.gd') 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) -- cgit v1.2.3