Implemented locking/unlocking layers

When a layer is locked, no changes can be made to it.
This commit is contained in:
OverloadedOrama 2020-03-09 03:26:13 +02:00
parent f02afbe371
commit 7a008cfc3f
31 changed files with 470 additions and 22 deletions

View file

@ -19,6 +19,8 @@ func _ready() -> void:
# warning-ignore:unused_argument
func _process(delta : float) -> void:
if Global.layers[Global.current_layer][2]:
return
var mouse_pos: Vector2 = get_local_mouse_position() - Global.canvas.location
var mouse_pos_floored := mouse_pos.floor()
var start_pos := polygon[0]