mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-20 16:20:18 +01:00
Reload levels when entering the level select, and show titles in levels
This commit is contained in:
parent
e754671b88
commit
7c96367d72
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue