mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 10:34:43 -04:00
Added a boolean to check if new frames will be linked and an array of linked frames to Global.layers
This doesn't add any new functionality right now
This commit is contained in:
parent
f9ee251b01
commit
a60efccbfd
6 changed files with 42 additions and 42 deletions
|
@ -10,8 +10,9 @@ func _on_CreateNewImage_confirmed() -> void:
|
|||
var fill_color : Color = fill_color_node.color
|
||||
Global.control.clear_canvases()
|
||||
Global.layers.clear()
|
||||
# Store [Layer name, Layer visibility boolean, Layer lock boolean, Frame container]
|
||||
Global.layers.append([tr("Layer") + " 0", true, false, HBoxContainer.new()])
|
||||
# Store [Layer name (0), Layer visibility boolean (1), Layer lock boolean (2), Frame container (3),
|
||||
# will new frames be linked boolean (4), Array of linked frames (5)]
|
||||
Global.layers.append([tr("Layer") + " 0", true, false, HBoxContainer.new(), false, []])
|
||||
Global.current_layer = 0
|
||||
Global.canvas = load("res://Prefabs/Canvas.tscn").instance()
|
||||
Global.canvas.size = Vector2(width, height).floor()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue