From e26fd5077d143bc01bda615d79393be85bc21f03 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 10 Dec 2019 18:31:55 +0200 Subject: [PATCH] Made guides thicker so they won't disappear on certain zoom levels --- Assets/Graphics/Tools/Eraser_Cursor.png | Bin 268 -> 251 bytes Main.tscn | 2 +- Scripts/Guides.gd | 2 +- Scripts/SelectionRectangle.gd | 3 ++- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Assets/Graphics/Tools/Eraser_Cursor.png b/Assets/Graphics/Tools/Eraser_Cursor.png index a1504949af554009c7f94d546eda00113fac0292..f6abcc245720692bde0408fafb9cf052cf29ac5a 100644 GIT binary patch literal 251 zcmeAS@N?(olHy`uVBq!ia0vp^QXtI11|(N{`J4k%hdf;zLp(ayUJ2xL5#(uoc>m3X zI-6VlS0m2PRTp;NscY+hsY8FMV1b9`)6CZr$rHYH91UJ_jmyC+)9O3dqzTgmt=q~v zT4WuiQjVON!1~fqxTI;ziiOfHymytfPB2&2D(kbD$yO?PpO9w!;on5~BY?NgZDC-cbc6N|p(_A_wy>td!ptH75_lyOCn-vxS y#ncz?m(ACI!hb1Y`3aV{8>C%YRNja&{$M&gVUa|#cwQyYHw>PxelF{r5}E+?LS3W) literal 268 zcmV+n0rUQeP)Yr<8&;M(kXHuImC| z-}l$t%a{a})Zh}G+5GV^o%FMMGmcAGC!ZhG41m81@F%JKHs}R5zW4zDv3?pzA0{8%0O{EC- SXz_Xg00001lZY diff --git a/Main.tscn b/Main.tscn index 1be07a7f7..54078562c 100644 --- a/Main.tscn +++ b/Main.tscn @@ -215,6 +215,7 @@ rect_min_size = Vector2( 224, 0 ) size_flags_vertical = 3 [node name="Tools" type="VBoxContainer" parent="MenuAndUI/UI/ToolPanel"] +editor/display_folded = true anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 8.0 @@ -557,7 +558,6 @@ step = 0.01 value = 0.1 [node name="LeftMirroring" type="VBoxContainer" parent="MenuAndUI/UI/ToolPanel/Tools/ColorAndToolOptions/LeftToolOptions"] -editor/display_folded = true margin_top = 112.0 margin_right = 208.0 margin_bottom = 155.0 diff --git a/Scripts/Guides.gd b/Scripts/Guides.gd index 4d4e2d603..f75fa8a6b 100644 --- a/Scripts/Guides.gd +++ b/Scripts/Guides.gd @@ -14,7 +14,7 @@ func _ready() -> void: # warning-ignore:unused_argument func _process(delta : float) -> void: - width = Global.camera.zoom.x + width = Global.camera.zoom.x * 2 mouse_pos = get_local_mouse_position() var point0 := points[0] var point1 := points[1] diff --git a/Scripts/SelectionRectangle.gd b/Scripts/SelectionRectangle.gd index 58c225ecc..6cb152562 100644 --- a/Scripts/SelectionRectangle.gd +++ b/Scripts/SelectionRectangle.gd @@ -96,7 +96,7 @@ func _process(delta : float) -> void: #Handle copy if Input.is_action_just_pressed("copy") && Global.selected_pixels.size() > 0: - #And save as custom brush + #Save as custom brush var brush_img := Image.new() brush_img = layer.get_rect(Rect2(polygon[0], polygon[2] - polygon[0])) if brush_img.is_invisible(): @@ -105,6 +105,7 @@ func _process(delta : float) -> void: Global.custom_brushes.append(brush_img) Global.create_brush_button(brush_img) + #Have it in the clipboard so it can be pasted later Global.image_clipboard = layer.get_rect(Rect2(polygon[0], polygon[2] - polygon[0])) #Handle paste