More work on taking quests
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user