More work on quests

This commit is contained in:
2025-11-19 14:42:59 -05:00
parent 379fa4bd70
commit 4ed4ab95f3
36 changed files with 3911 additions and 75 deletions

View File

@@ -1,5 +1,5 @@
@tool
extends TextureButton
class_name MapPoint extends TextureButton
@onready var panel : PanelContainer = %BriefPanel
@@ -20,9 +20,12 @@ var thickness : float = 5
var max_circle_size : float = 200
@export var label : String = ""
@export var id : Quest.Locations
@export var locked_brief : String = ""
@export var unlocked_brief : String = ""
signal selected(location : Quest.Locations)
func _ready() -> void:
#TODO: Add a nine-patch and resize the banner based on the label contents
%Label.text = label
@@ -61,6 +64,8 @@ func _on_mouse_entered() -> void:
func _buttonn_pressed() -> void:
if primed:
unlock()
elif !locked:
selected.emit(id)
func _on_mouse_exited() -> void:
if panel_shown: