Changed default cursor shape for the rulers, because they were in the wrong direction

This commit is contained in:
OverloadedOrama 2019-12-17 00:04:25 +02:00
parent 9f1779893d
commit 1ee38494e3
2 changed files with 4 additions and 5 deletions

View file

@ -14,9 +14,9 @@ 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
mouse_default_cursor_shape = Control.CURSOR_FDIAGSIZE
else:
mouse_default_cursor_shape = Control.CURSOR_HSPLIT
mouse_default_cursor_shape = Control.CURSOR_VSPLIT
#Code taken and modified from Godot's source code
func _draw() -> void: