Added show rulers & guides in the View menu

This commit is contained in:
OverloadedOrama 2019-12-03 02:30:38 +02:00
parent 5ffd0ecf6a
commit 70bd1dde43
4 changed files with 27 additions and 1 deletions

View file

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