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,41 @@
@tool
class_name GUIDEInputMousePosition
extends GUIDEInput
func _begin_usage() -> void :
_update_mouse_position()
func _input(event:InputEvent) -> void:
if not event is InputEventMouseMotion:
return
_update_mouse_position()
func _update_mouse_position():
var position:Vector2 = Engine.get_main_loop().root.get_mouse_position()
_value.x = position.x
_value.y = position.y
func is_same_as(other:GUIDEInput):
return other is GUIDEInputMousePosition
func _to_string():
return "(GUIDEInputMousePosition)"
func _editor_name() -> String:
return "Mouse Position"
func _editor_description() -> String:
return "Position of the mouse in the main viewport."
func _native_value_type() -> GUIDEAction.GUIDEActionValueType:
return GUIDEAction.GUIDEActionValueType.AXIS_2D