mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-12-14 11:44:43 -05:00
added option to hide tool icons next to cursor
This commit is contained in:
parent
542f709a8f
commit
6fa41000ed
14 changed files with 95 additions and 38 deletions
|
|
@ -153,8 +153,10 @@ func _input(event : InputEvent) -> void:
|
|||
if !cursor_inside_canvas:
|
||||
cursor_inside_canvas = true
|
||||
Input.set_custom_mouse_cursor(load("res://Assets/Graphics/Cursor.png"), 0, Vector2(15, 15))
|
||||
Global.left_cursor.visible = true
|
||||
Global.right_cursor.visible = true
|
||||
if Global.show_left_tool_icon:
|
||||
Global.left_cursor.visible = true
|
||||
if Global.show_right_tool_icon:
|
||||
Global.right_cursor.visible = true
|
||||
else:
|
||||
if !Input.is_mouse_button_pressed(BUTTON_LEFT) && !Input.is_mouse_button_pressed(BUTTON_RIGHT):
|
||||
if mouse_inside_canvas:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue