mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Made guides thicker so they won't disappear on certain zoom levels
This commit is contained in:
parent
e157b33e1d
commit
e26fd5077d
Binary file not shown.
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 251 B |
|
@ -215,6 +215,7 @@ rect_min_size = Vector2( 224, 0 )
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
|
|
||||||
[node name="Tools" type="VBoxContainer" parent="MenuAndUI/UI/ToolPanel"]
|
[node name="Tools" type="VBoxContainer" parent="MenuAndUI/UI/ToolPanel"]
|
||||||
|
editor/display_folded = true
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
margin_left = 8.0
|
margin_left = 8.0
|
||||||
|
@ -557,7 +558,6 @@ step = 0.01
|
||||||
value = 0.1
|
value = 0.1
|
||||||
|
|
||||||
[node name="LeftMirroring" type="VBoxContainer" parent="MenuAndUI/UI/ToolPanel/Tools/ColorAndToolOptions/LeftToolOptions"]
|
[node name="LeftMirroring" type="VBoxContainer" parent="MenuAndUI/UI/ToolPanel/Tools/ColorAndToolOptions/LeftToolOptions"]
|
||||||
editor/display_folded = true
|
|
||||||
margin_top = 112.0
|
margin_top = 112.0
|
||||||
margin_right = 208.0
|
margin_right = 208.0
|
||||||
margin_bottom = 155.0
|
margin_bottom = 155.0
|
||||||
|
|
|
@ -14,7 +14,7 @@ func _ready() -> void:
|
||||||
|
|
||||||
# warning-ignore:unused_argument
|
# warning-ignore:unused_argument
|
||||||
func _process(delta : float) -> void:
|
func _process(delta : float) -> void:
|
||||||
width = Global.camera.zoom.x
|
width = Global.camera.zoom.x * 2
|
||||||
mouse_pos = get_local_mouse_position()
|
mouse_pos = get_local_mouse_position()
|
||||||
var point0 := points[0]
|
var point0 := points[0]
|
||||||
var point1 := points[1]
|
var point1 := points[1]
|
||||||
|
|
|
@ -96,7 +96,7 @@ func _process(delta : float) -> void:
|
||||||
|
|
||||||
#Handle copy
|
#Handle copy
|
||||||
if Input.is_action_just_pressed("copy") && Global.selected_pixels.size() > 0:
|
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()
|
var brush_img := Image.new()
|
||||||
brush_img = layer.get_rect(Rect2(polygon[0], polygon[2] - polygon[0]))
|
brush_img = layer.get_rect(Rect2(polygon[0], polygon[2] - polygon[0]))
|
||||||
if brush_img.is_invisible():
|
if brush_img.is_invisible():
|
||||||
|
@ -105,6 +105,7 @@ func _process(delta : float) -> void:
|
||||||
Global.custom_brushes.append(brush_img)
|
Global.custom_brushes.append(brush_img)
|
||||||
Global.create_brush_button(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]))
|
Global.image_clipboard = layer.get_rect(Rect2(polygon[0], polygon[2] - polygon[0]))
|
||||||
|
|
||||||
#Handle paste
|
#Handle paste
|
||||||
|
|
Loading…
Reference in a new issue