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