Orama-Interactive / Pixelorama

Unleash your creativity with Pixelorama, a powerful and accessible open-source pixel art multitool. Whether you want to create sprites, tiles, animations, or just express yourself in the language of pixel art, this software will realize your pixel-perfect dreams with a vast toolbox of features. Available on Windows, Linux, macOS and the Web!
https://orama-interactive.itch.io/pixelorama
MIT License
6.83k stars 372 forks source link

Import api #956

Closed Variable-ind closed 8 months ago

Variable-ind commented 8 months ago

Adds an import api that can allow you to: override pixelorama's import images dialog to use the image for a different purpose that the default (e.g in video i used it to open image in a new panel for no reason), but you can also do other things like change how a sprite-sheet gets imported etc...

https://github.com/Orama-Interactive/Pixelorama/assets/77773850/6659c7c3-f316-4355-8a78-e253157a7e85

Other related addition

the import dialog couldn't get any of the extension's node by itself so i added another api method

func get_main_nodes(extension_name: StringName) -> Array[Node]:

(Returns the initial nodes of an extension named extension_name. initial nodes are the nodes whose paths are in the nodes key of an extension.json file.)

Variable-ind commented 8 months ago

Here's the test extension Code: TestExtension (Code).zip

Extension: TestExtension(Extension).zip