Restructured files and worked on more complex quest progression

This commit is contained in:
2025-08-11 02:16:39 -04:00
parent 434216ca29
commit 95a7db036b
47 changed files with 475 additions and 53 deletions

View File

@@ -1,5 +1,6 @@
extends PanelContainer
const quest_info_window_template = preload("res://templates/quest_info_window.tscn")
var _enabled: bool
var enabled: bool:
@@ -30,7 +31,10 @@ func setup(qst : Quest) -> 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("Quest clicked!")
var wnd = quest_info_window_template.instantiate()
add_child(wnd)
wnd.setup(quest)
wnd.popup_centered()
func _on_quest_status_changed(status: Quest.Status) -> void:
match(status):