feat: surface inspected villager's open village need in field notes
This commit is contained in:
@@ -13,6 +13,7 @@ const EXIT_OFFSET := 4.0
|
||||
@onready var activity_label: Label = $Copy/Activity
|
||||
@onready var target_label: Label = $Copy/Target
|
||||
@onready var carrying_label: Label = $Copy/Carrying
|
||||
@onready var need_label: Label = $Copy/Need
|
||||
@onready var reason_label: Label = $Copy/Reason
|
||||
|
||||
var copy_resting_position: Vector2
|
||||
@@ -63,6 +64,11 @@ func _present(context: VillagerInspectionResult, animate: bool) -> void:
|
||||
activity_label.text = context.activity_text()
|
||||
target_label.text = "Target · %s" % context.target_name
|
||||
carrying_label.text = "Carrying · %s" % context.carrying_text()
|
||||
if context.has_open_need:
|
||||
need_label.text = "Need · %s\n%s" % [context.need_progress, context.need_response]
|
||||
need_label.visible = true
|
||||
else:
|
||||
need_label.visible = false
|
||||
reason_label.text = "Why · %s" % context.decision_reason
|
||||
visible = true
|
||||
accent.pivot_offset = accent.size * 0.5
|
||||
|
||||
Reference in New Issue
Block a user