changes UI to a global singleton

This commit is contained in:
Luca 2024-09-26 19:59:52 +02:00
parent aa4afc4c4b
commit e3aec75404
16 changed files with 371 additions and 119 deletions

View file

@ -12,12 +12,12 @@ func _on_close_button_pressed() -> void:
pass # Replace with function body.
func _update_monster_list() -> void:
for i in Inventory.monsters.size():
var monster = Inventory.monsters[i]
for i in SaveData.monsters.size():
var monster = SaveData.monsters[i]
var entry = monster_list_entry.instantiate()
# populate the new entry
entry.populate(Inventory.monsters[i])
entry.populate(SaveData.monsters[i])
# add it to the list
monster_list_entry_container.add_child(entry)