Basic Full Profiles working from log
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user