diff --git a/project.godot b/project.godot index 0077fd7f1..1d8e31063 100644 --- a/project.godot +++ b/project.godot @@ -57,7 +57,6 @@ window/size/viewport_height=720 window/size/mode=4 window/stretch/mode="canvas_items" window/stretch/aspect="expand" -mouse_cursor/custom_image="uid://cee2juvnxco6c" mouse_cursor/tooltip_position_offset=Vector2(19, 29) window/size/mode.editor=0 window/size/mode.web=0 diff --git a/scenes/globals/mouse_manager/mouse_manager.gd b/scenes/globals/mouse_manager/mouse_manager.gd index 835229bbc..9a557c7d8 100644 --- a/scenes/globals/mouse_manager/mouse_manager.gd +++ b/scenes/globals/mouse_manager/mouse_manager.gd @@ -2,12 +2,14 @@ # SPDX-License-Identifier: MPL-2.0 extends Node +const MOUSE_CURSOR_DEFAULT = preload("uid://cee2juvnxco6c") const MOUSE_CURSOR_CROSS = preload("uid://bx11wyx7unc4q") @onready var hide_timer: Timer = %HideTimer func _ready() -> void: + Input.set_custom_mouse_cursor(MOUSE_CURSOR_DEFAULT, Input.CURSOR_ARROW, Vector2(0, 0)) Input.set_custom_mouse_cursor(MOUSE_CURSOR_CROSS, Input.CURSOR_CROSS, Vector2(32, 32))