Skip to content

Commit

Permalink
fix(cursor): 修正指针热点错位的问题,修改了指针的图像
Browse files Browse the repository at this point in the history
修改指针图像,使得切换时不显得突兀
  • Loading branch information
IsaacTheMouse committed Feb 13, 2024
1 parent e1ea2b5 commit 51097e5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file modified bg/cursor/cursor_arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bg/cursor/cursor_drag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bg/cursor/cursor_pointing_hand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const CURSOR_DRAG := preload("res://bg/cursor/cursor_drag.png")


func _ready():
Input.set_custom_mouse_cursor(CURSOR_ARROW)
Input.set_custom_mouse_cursor(CURSOR_POINTING_HAND, Input.CURSOR_POINTING_HAND)
Input.set_custom_mouse_cursor(CURSOR_DRAG, Input.CURSOR_DRAG)
Input.set_custom_mouse_cursor(CURSOR_ARROW, Input.CURSOR_ARROW, Vector2(0, 5))
Input.set_custom_mouse_cursor(CURSOR_POINTING_HAND, Input.CURSOR_POINTING_HAND, Vector2(0, 5))
Input.set_custom_mouse_cursor(CURSOR_DRAG, Input.CURSOR_DRAG, Vector2(0, 5))


func _on_main_menu_enter_level():
Expand Down

0 comments on commit 51097e5

Please sign in to comment.