1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-24 17:14:23 +00:00

Add a log_priority method to log the priority of a specific node

This commit is contained in:
Steffo 2024-04-19 01:50:53 +02:00
parent 1100f60db8
commit 2b39bb4551
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -57,6 +57,10 @@ func priority_conditional(variant: Variant, truthy: int = alternative_priority,
func get_ref() -> Node:
return get_parent()
## Log the current [field priority] value.
func log_priority() -> void:
Log.p(self, "Priority: %d" % priority)
func _on_priority_changed(_new: int, _old: int) -> void:
priority_changed_no_args.emit()