mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 12:04:43 -04:00
Changed default cursor shape for the rulers, to indicate that they are interactive
This commit is contained in:
parent
8bfd7db4d9
commit
9f1779893d
2 changed files with 7 additions and 0 deletions
|
@ -12,6 +12,11 @@ var last : Vector2
|
|||
# warning-ignore:unused_argument
|
||||
func _process(delta : float) -> void:
|
||||
update()
|
||||
var mouse_pos := get_local_mouse_position()
|
||||
if mouse_pos.x < RULER_WIDTH: #For double guides
|
||||
mouse_default_cursor_shape = Control.CURSOR_BDIAGSIZE
|
||||
else:
|
||||
mouse_default_cursor_shape = Control.CURSOR_HSPLIT
|
||||
|
||||
#Code taken and modified from Godot's source code
|
||||
func _draw() -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue