From 740d7e237d2b4c38aec9dc665fc0b9da583e3827 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 16 Jul 2020 05:35:31 +0300 Subject: [PATCH] Made Symmetry Guides have dotted lines Just to make them different from regular Guides --- assets/graphics/dotted_line.png | Bin 0 -> 84 bytes assets/graphics/dotted_line.png.import | 34 +++++++++++++++++++++++++ src/UI/Rulers/SymmetryGuide.gd | 11 ++++++++ 3 files changed, 45 insertions(+) create mode 100644 assets/graphics/dotted_line.png create mode 100644 assets/graphics/dotted_line.png.import diff --git a/assets/graphics/dotted_line.png b/assets/graphics/dotted_line.png new file mode 100644 index 0000000000000000000000000000000000000000..d322af80d20fd18fb857020e7aef2eb3215056cd GIT binary patch literal 84 zcmeAS@N?(olHy`uVBq!ia0vp^EI`c2!3HFM+VGzRaf*Z7ofy`glX(f`@Oip8hH%VG f{=v`66TrZbyq5jv{|ziNfHDl8u6{1-oD!M void: ._ready() has_focus = false visible = false + texture = _texture + texture_mode = Line2D.LINE_TEXTURE_TILE + width = Global.camera.zoom.x * 4 + yield(get_tree().create_timer(0.01), "timeout") + modulate = Global.guide_color func _input(_event : InputEvent) -> void: @@ -14,6 +22,9 @@ func _input(_event : InputEvent) -> void: elif type == Types.VERTICAL: project.x_symmetry_point = points[0].x * 2 - 1 + yield(get_tree().create_timer(0.01), "timeout") + width = Global.camera.zoom.x * 4 + func outside_canvas() -> bool: if type == Types.HORIZONTAL: