Made guides thicker so they won't disappear on certain zoom levels

This commit is contained in:
OverloadedOrama 2019-12-10 18:31:55 +02:00
parent e157b33e1d
commit e26fd5077d
4 changed files with 4 additions and 3 deletions

View file

@ -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]

View file

@ -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