1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00
This commit is contained in:
Manolis Papadeas 2021-07-18 14:28:33 +03:00
parent 6de6c4b800
commit 2c90991482

View file

@ -99,6 +99,7 @@ func draw_move(position : Vector2) -> void:
_start += position - _offset _start += position - _offset
_dest = position _dest = position
_offset = position _offset = position
_set_cursor_text(_get_result_rect(_start, position))
func draw_end(position : Vector2) -> void: func draw_end(position : Vector2) -> void:
@ -193,3 +194,10 @@ func _outline_point(p: Vector2, thickness: int = 1, include_p: bool = true) -> A
array.append(p + Vector2(x,y)) array.append(p + Vector2(x,y))
return array return array
func _set_cursor_text(rect : Rect2) -> void:
cursor_text = "%s, %s" % [rect.position.x, rect.position.y]
cursor_text += " -> %s, %s" % [rect.end.x - 1, rect.end.y - 1]
cursor_text += " (%s, %s)" % [rect.size.x, rect.size.y]