mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 10:24:44 -04:00
Merge pull request #194 from novhack/pxo-compression
Move open/save functions to a separate file and clean up. Add ZSTD compression.
This commit is contained in:
commit
aff8b6a654
6 changed files with 236 additions and 217 deletions
|
@ -69,7 +69,7 @@ func _on_CreateNewImage_confirmed() -> void:
|
|||
var width : int = width_value.value
|
||||
var height : int = height_value.value
|
||||
var fill_color : Color = fill_color_node.color
|
||||
Global.control.clear_canvases()
|
||||
Global.clear_canvases()
|
||||
Global.layers.clear()
|
||||
# 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)]
|
||||
|
|
|
@ -32,7 +32,7 @@ func _on_VerticalFrames_value_changed(value) -> void:
|
|||
func _on_ImportSprites_files_selected(paths : PoolStringArray) -> void:
|
||||
Global.control.opensprite_file_selected = true
|
||||
if !new_frame: # If we're not adding a new frame, delete the previous
|
||||
Global.control.clear_canvases()
|
||||
Global.clear_canvases()
|
||||
|
||||
var first_path : String = paths[0]
|
||||
var i : int = Global.canvases.size()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue