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,44 @@
@tool
class_name GUIDEInputJoyButton
extends GUIDEInputJoyBase
@export var button:JoyButton = JOY_BUTTON_A:
set(value):
if value == button:
return
button = value
emit_changed()
func _input(event:InputEvent):
if not event is InputEventJoypadButton:
return
if event.button_index != button:
return
if joy_index > -1 and event.device != _joy_id:
return
_value.x = 1.0 if event.pressed else 0.0
func is_same_as(other:GUIDEInput) -> bool:
return other is GUIDEInputJoyButton and \
other.button == button and \
other.joy_index == joy_index
func _to_string():
return "(GUIDEInputJoyButton: button=" + str(button) + ", joy_index=" + str(joy_index) + ")"
func _editor_name() -> String:
return "Joy Button"
func _editor_description() -> String:
return "A button press from a joy button."
func _native_value_type() -> GUIDEAction.GUIDEActionValueType:
return GUIDEAction.GUIDEActionValueType.BOOL