Enable files' drop area, two levels about the index

This commit is contained in:
blinry 2020-11-09 20:45:39 +01:00
parent a893cba9d3
commit 8760ad7178
8 changed files with 87 additions and 6 deletions
scenes

View file

@ -65,7 +65,10 @@ func load_level(level_id):
level_description.bbcode_text = level.description
level_congrats.bbcode_text = level.congrats
level_name.text = level.title
cards.draw(levels.chapters[current_chapter].levels[current_level].cards)
if levels.chapters[current_chapter].levels[current_level].cards.size() == 0:
cards.redraw_all_cards()
else:
cards.draw(levels.chapters[current_chapter].levels[current_level].cards)
for r in repositories_node.get_children():
r.queue_free()