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:
parent
1100f60db8
commit
2b39bb4551
1 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,10 @@ func priority_conditional(variant: Variant, truthy: int = alternative_priority,
|
||||||
func get_ref() -> Node:
|
func get_ref() -> Node:
|
||||||
return get_parent()
|
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:
|
func _on_priority_changed(_new: int, _old: int) -> void:
|
||||||
priority_changed_no_args.emit()
|
priority_changed_no_args.emit()
|
||||||
|
|
Loading…
Reference in a new issue