Add cap sprite to child scene and update project configuration

This commit is contained in:
2025-04-26 03:52:45 +02:00
parent d95176fba0
commit 0c1192536c
374 changed files with 11968 additions and 1276 deletions

View File

@@ -0,0 +1,22 @@
@tool
## A trigger that activates when the input is pushed down. Will only emit a
## trigger event once. Holding the input will not trigger further events.
class_name GUIDETriggerPressed
extends GUIDETrigger
func _update_state(input:Vector3, delta:float, value_type:GUIDEAction.GUIDEActionValueType) -> GUIDETriggerState:
if _is_actuated(input, value_type):
if not _is_actuated(_last_value, value_type):
return GUIDETriggerState.TRIGGERED
return GUIDETriggerState.NONE
func _editor_name() -> String:
return "Pressed"
func _editor_description() -> String:
return "Fires once, when the input exceeds actuation threshold. Holding the input\n" + \
"will not fire additional triggers."