1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Import pal palette files by dropping them into the app

This commit is contained in:
OverloadedOrama 2020-08-27 01:37:14 +03:00
parent b53926724e
commit e673888529

View file

@ -23,7 +23,7 @@ func handle_loading_files(files : PoolStringArray) -> void:
var file_ext : String = file.get_extension().to_lower() var file_ext : String = file.get_extension().to_lower()
if file_ext == "pxo": # Pixelorama project file if file_ext == "pxo": # Pixelorama project file
open_pxo_file(file) open_pxo_file(file)
elif file_ext == "json" or file_ext == "gpl": # Palettes elif file_ext == "json" or file_ext == "gpl" or file_ext == "pal": # Palettes
Global.palette_container.on_palette_import_file_selected(file) Global.palette_container.on_palette_import_file_selected(file)
else: # Image files else: # Image files
var image := Image.new() var image := Image.new()