added first theme progress and switched all files to use static typing

This commit is contained in:
Luca 2024-10-10 15:26:56 +02:00
parent c9458f3627
commit b5ace17da9
2665 changed files with 50249 additions and 476 deletions

View file

@ -1,31 +1,25 @@
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")
@onready var monster_list_entry_container: VBoxContainer = %MonsterListEntryContainer/VBoxContainer
@onready var monster_list_entry: PackedScene = preload("res://ui/ingame_menu/party_list_entry.tscn")
func _ready() -> void:
visible = false
for i: int in range(6):
var entry: Node = monster_list_entry.instantiate()
monster_list_entry_container.add_child(entry)
func _on_close_button_pressed() -> void:
visible = false
pass # Replace with function body.
func update() -> void:
pass
func _update_monster_list() -> void:
print("update list")
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)
for i: int in SaveManager.current_save.party.size():
var monster: MonsterData = SaveManager.current_save.party[i]
var entry: Node = monster_list_entry_container.get_child(i)
entry.update(monster)
func _update_player_info() -> void:
#%PlayerName.text =
#%PlayerName.text =
pass