Skip to content

Commit 2c90991

Browse files
1 parent 6de6c4b commit 2c90991

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Tools/ShapeDrawer.gd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ func draw_move(position : Vector2) -> void:
9999
_start += position - _offset
100100
_dest = position
101101
_offset = position
102+
_set_cursor_text(_get_result_rect(_start, position))
102103

103104

104105
func draw_end(position : Vector2) -> void:
@@ -193,3 +194,10 @@ func _outline_point(p: Vector2, thickness: int = 1, include_p: bool = true) -> A
193194
array.append(p + Vector2(x,y))
194195

195196
return array
197+
198+
199+
func _set_cursor_text(rect : Rect2) -> void:
200+
cursor_text = "%s, %s" % [rect.position.x, rect.position.y]
201+
cursor_text += " -> %s, %s" % [rect.end.x - 1, rect.end.y - 1]
202+
cursor_text += " (%s, %s)" % [rect.size.x, rect.size.y]
203+

0 commit comments

Comments
 (0)