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:
Manolis Papadeas 2020-04-10 21:39:26 +03:00 committed by GitHub
commit aff8b6a654
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 236 additions and 217 deletions

View file

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

View file

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