Basic Full Profiles working from log

This commit is contained in:
2025-08-08 15:01:55 -04:00
parent 03ac404583
commit 4e0b42eb23
9 changed files with 226 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
extends PanelContainer
const npc_profile_window_template = preload("res://npc_profile_window.tscn")
var _enabled: bool
var enabled: bool:
get:
@@ -29,4 +29,8 @@ func setup(member : AdventurerData) -> void:
func _on_gui_input(event: InputEvent) -> void:
var evt = event as InputEventMouseButton
if evt and evt.button_index == MOUSE_BUTTON_LEFT and evt.pressed:
print("Member clicked!")
var window : Window = npc_profile_window_template.instantiate()
Game.add_child(window)
window.setup(data)
window.popup_centered()
window.grab_focus()