From 7c96367d726e65c4232a6371e86d674187743fff Mon Sep 17 00:00:00 2001 From: blinry Date: Tue, 5 Jan 2021 13:05:46 +0100 Subject: [PATCH] Reload levels when entering the level select, and show titles in levels --- scenes/level_select.gd | 2 ++ scenes/main.tscn | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scenes/level_select.gd b/scenes/level_select.gd index 84db1a0..0dbb66d 100644 --- a/scenes/level_select.gd +++ b/scenes/level_select.gd @@ -5,6 +5,8 @@ onready var level_list = $ScrollContainer/MarginContainer/Levels func _ready(): var chapter_id = 0 + levels.reload() + for chapter in levels.chapters: var level_id = 0 diff --git a/scenes/main.tscn b/scenes/main.tscn index 655f71b..2a5cdb0 100644 --- a/scenes/main.tscn +++ b/scenes/main.tscn @@ -175,7 +175,6 @@ margin_bottom = 383.0 size_flags_vertical = 3 [node name="LevelName" type="RichTextLabel" parent="Rows/Columns/RightSide/LevelInfo/LevelPanel"] -visible = false margin_right = 633.0 margin_bottom = 60.0 rect_min_size = Vector2( 0, 60 ) @@ -186,6 +185,7 @@ __meta__ = { } [node name="Text" type="Control" parent="Rows/Columns/RightSide/LevelInfo/LevelPanel"] +margin_top = 65.0 margin_right = 633.0 margin_bottom = 336.0 size_flags_vertical = 3