fixed camera script and restructured ui folder

This commit is contained in:
Luca 2024-09-27 21:31:03 +02:00
parent 877ebafc74
commit 5748d34b34
32 changed files with 781 additions and 162 deletions

View file

@ -0,0 +1,27 @@
extends Control
class_name MonsterList
@onready var monster_list_entry_container: MarginContainer = $MarginContainer/PanelContainer/VBoxContainer/MonsterListEntryContainer
@onready var monster_list_entry = preload("res://ui/ingame_menu/party_list_entry.tscn")
func _ready() -> void:
visible = false
func _on_close_button_pressed() -> void:
visible = false
pass # Replace with function body.
func _update_monster_list() -> void:
for i in SaveManager.current_save.party.size():
var monster = SaveManager.current_save.party[i]
var entry = monster_list_entry.instantiate()
# populate the new entry
entry.populate(monster)
# add it to the list
monster_list_entry_container.add_child(entry)
func _update_player_info() -> void:
#%PlayerName.text =
pass