Loading image files is now possible in HTML5

Had to move some palette png code around in order to make it possible to use these image files as palettes. Hopefully loading .pxo files should be next. Addresses #280
This commit is contained in:
OverloadedOrama 2020-06-30 22:29:24 +03:00
parent 637a60d9ee
commit 7e3436d3ba
7 changed files with 39 additions and 28 deletions

View file

@ -52,7 +52,7 @@ func _on_PreviewDialog_confirmed() -> void:
OpenSave.open_image_as_new_layer(image, path.get_basename().get_file(), frame_index)
elif current_import_option == ImageImportOptions.PALETTE:
Global.palette_container.on_palette_import_file_selected(path)
Global.palette_container.import_image_palette(path, image)
elif current_import_option == ImageImportOptions.BRUSH:
var file_name : String = path.get_basename().get_file()

View file

@ -1,7 +1,6 @@
[gd_scene format=2]
[node name="SaveSpriteHTML5" type="ConfirmationDialog"]
visible = true
margin_right = 200.0
margin_bottom = 70.0