mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 21:34:43 -04:00
Added show rulers & guides in the View menu
This commit is contained in:
parent
5ffd0ecf6a
commit
70bd1dde43
4 changed files with 27 additions and 1 deletions
|
@ -55,6 +55,8 @@ func _draw() -> void:
|
|||
draw_line(Vector2(RULER_WIDTH * 0.66, position.y), Vector2(RULER_WIDTH, position.y), Color.white)
|
||||
|
||||
func _on_VerticalRuler_pressed() -> void:
|
||||
if !Global.show_guides:
|
||||
return
|
||||
var guide := Guide.new()
|
||||
guide.type = guide.TYPE.VERTICAL
|
||||
guide.default_color = Color.purple
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue