This project was made to remove the hassle of having to constantly look for functions on the api page.
With that in mind, this lua library lets view functions and fields on your project itself.
- Download the Lua extension on the VSCode Marketplace
From here you have 2 choices:
- Download the library file and paste it into your project anywhere
OR (Better, because using this method will make you able to stay synced to this repository.)
-
Add the Aseprite-Library repository as a submodule to your project by running the following command
git submodule add https://github.com/RampantDespair/Aseprite-Library lib/Aseprite-Library
-
Add the following to your
.vscode\settings.json
file (if it doesn't exist, just create it)
{
"Lua.workspace.library": [
"lib\\Aseprite-Library\\Aseprite-Library.lua"
]
}
- Start writing your script :)
If you want to see a real usage example, you can go check out my Aseprite-Extension.
Do not import the library file into your actual script (dofile/require), because this library is to be used strictly in development, not in production.
If you have a suggestion that would make this better, please fork the repo and create a pull request.
You can also simply open an issue with the tag "enhancement".
Any contributions you make are greatly appreciated.