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,35 @@
@tool
class_name GUIDEInputMouseAxis2D
extends GUIDEInput
# we don't get mouse updates when the mouse is not moving, so this needs to be
# reset every frame
func _needs_reset() -> bool:
return true
func _input(event:InputEvent) -> void:
if not event is InputEventMouseMotion:
return
_value.x = event.relative.x
_value.y = event.relative.y
func is_same_as(other:GUIDEInput):
return other is GUIDEInputMouseAxis2D
func _to_string():
return "(GUIDEInputMouseAxis2D)"
func _editor_name() -> String:
return "Mouse Axis 2D"
func _editor_description() -> String:
return "Relative mouse movement on 2 axes."
func _native_value_type() -> GUIDEAction.GUIDEActionValueType:
return GUIDEAction.GUIDEActionValueType.AXIS_2D