restructured folders
This commit is contained in:
parent
e3aec75404
commit
0f5045dc22
22 changed files with 32 additions and 21 deletions
27
ui/ingame_menu.gd
Normal file
27
ui/ingame_menu.gd
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
extends MarginContainer
|
||||
class_name MonsterList
|
||||
|
||||
@onready var monster_list_entry_container: MarginContainer = $MarginContainer/PanelContainer/VBoxContainer/MonsterListEntryContainer
|
||||
@onready var monster_list_entry = preload("res://ui/monster_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 SaveData.monsters.size():
|
||||
var monster = SaveData.monsters[i]
|
||||
var entry = monster_list_entry.instantiate()
|
||||
|
||||
# populate the new entry
|
||||
entry.populate(SaveData.monsters[i])
|
||||
|
||||
# add it to the list
|
||||
monster_list_entry_container.add_child(entry)
|
||||
|
||||
func _update_player_info() -> void:
|
||||
#%PlayerName.text =
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue