From 45a31faa7b8b95b6644d748faca28efe4dcbe1e6 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Sun, 9 Feb 2020 03:13:12 +0200 Subject: [PATCH] You can now drag and drop/"open with" image files Thanks to OS.get_cmdline_args(). Support for .pxo files will be coming soon. --- Changelog.md | 1 + Scripts/Dialogs/ImportSprites.gd | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Changelog.md b/Changelog.md index 3b73462..7adec38 100644 --- a/Changelog.md +++ b/Changelog.md @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - It is now possible to remove custom brushes with the middle mouse button. - Added HSV mode to the color picker. (Added automatically because of the Godot 3.2 update) - Lanczos scaling interpolation. (Added because of the Godot 3.2 update) +- You can now drag and drop (or right click and open with) image files in Pixelorama. ### Changed - Major changes to alpha blending behavior. The alpha values now get added/blended together instead of just replacing the pixel with the new value. diff --git a/Scripts/Dialogs/ImportSprites.gd b/Scripts/Dialogs/ImportSprites.gd index 82e9b00..9cbdc62 100644 --- a/Scripts/Dialogs/ImportSprites.gd +++ b/Scripts/Dialogs/ImportSprites.gd @@ -15,6 +15,9 @@ func _ready() -> void: remove_child(child) get_vbox().add_child(child) + if OS.get_cmdline_args(): + _on_ImportSprites_files_selected(OS.get_cmdline_args()) + func _on_ImportAsNewFrame_pressed() -> void: new_frame = !new_frame