Reload levels when entering the level select, and show titles in levels

This commit is contained in:
blinry 2021-01-05 13:05:46 +01:00
parent e754671b88
commit 7c96367d72
2 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,8 @@ onready var level_list = $ScrollContainer/MarginContainer/Levels
func _ready(): func _ready():
var chapter_id = 0 var chapter_id = 0
levels.reload()
for chapter in levels.chapters: for chapter in levels.chapters:
var level_id = 0 var level_id = 0

View file

@ -175,7 +175,6 @@ margin_bottom = 383.0
size_flags_vertical = 3 size_flags_vertical = 3
[node name="LevelName" type="RichTextLabel" parent="Rows/Columns/RightSide/LevelInfo/LevelPanel"] [node name="LevelName" type="RichTextLabel" parent="Rows/Columns/RightSide/LevelInfo/LevelPanel"]
visible = false
margin_right = 633.0 margin_right = 633.0
margin_bottom = 60.0 margin_bottom = 60.0
rect_min_size = Vector2( 0, 60 ) rect_min_size = Vector2( 0, 60 )
@ -186,6 +185,7 @@ __meta__ = {
} }
[node name="Text" type="Control" parent="Rows/Columns/RightSide/LevelInfo/LevelPanel"] [node name="Text" type="Control" parent="Rows/Columns/RightSide/LevelInfo/LevelPanel"]
margin_top = 65.0
margin_right = 633.0 margin_right = 633.0
margin_bottom = 336.0 margin_bottom = 336.0
size_flags_vertical = 3 size_flags_vertical = 3