More work on taking quests

This commit is contained in:
2025-08-06 04:17:27 -04:00
parent 2c99ece532
commit d705ed0496
22 changed files with 270 additions and 72 deletions

View File

@@ -1,7 +1,9 @@
class_name QuestBoardEntry extends TextureButton
class_name QuestBoardEntry extends Button
const quest_window_template = preload("res://quest_window.tscn")
var quest : Quest = null
@onready var icon : TextureRect = %Icon
@onready var tex_icon : TextureRect = %Icon
@onready var name_label : Label = %NameLabel
@onready var status_label : Label = %StatusLabel
@@ -15,5 +17,8 @@ func update() -> void:
func _on_pressed() -> void:
if pressed:
Guild.assign_quest(player.member, quest)
var window = quest_window_template.instantiate()
window.setup(quest, true)
add_child(window)
window.popup_centered()