Show repos from right to left

So that the "most important" one is close to the terminal.
This commit is contained in:
Sebastian Morr 2020-10-12 18:57:25 +02:00
parent 53a6885ef9
commit 09c54bfbdd

View file

@ -67,7 +67,10 @@ func load_level(level_id):
r.queue_free()
repositories = {}
for r in level.repos:
var repo_names = level.repos.keys()
repo_names.invert()
for r in repo_names:
var repo = level.repos[r]
var new_repo = preload("res://repository.tscn").instance()
new_repo.path = repo.path