-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Extensions (WIP) #35
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
for extension/plugin ordering, the default to alpha ordering, adding a numeral to the front of the name will allow it to be ordered as desired |
The above commits contain the following API changes for extensions:
Furthermore, the built-in extensions included in this PR have been disabled by default (moved to |
I was thinking about this too. However, I am a bit concerned about the process of updating extensions. If people have to manually copy them into the At least for the update part, it might be better to have everything in the
This is return makes the initial installation/activation of extensions more difficult. I am not sure yet what to make easier. Initial installation, or updates. |
How about an extension for configuring scratchpad. It could just be button interface for the config lua file. Along those lines an extension for scratchpad help that's just the help/docs for scratchpad that can be read from within scratchpad. There seems to be many uses for extensions. That said how likely is extensions to go in main, especially for those considering making extensions. |
hello could you please add as extension buttons like delete page copy page, paste page and bookmarks thanks |
@bellaevio Hi, the extensions are a way so that I don't have to implement every use-case, so I'll not add that myself. You'll have to rely on others to jump in and add things like that - sorry. |
With this PR, the Scratchpad can be extended with additional buttons, by simply adding a Lua script to
DCS\Scripts\Scratchpad\Extensions\{extension_name}.lua
.This PR includes a couple of examples in Scripts/Scratchpad/Extensions.
The exmaple extensions are:
clear.lua
: add a button to clear the current page (fixes Feature request: Add In-Game Button to Clear the Current Scratch Pad... #32)keypad.lua
: add a small keypad with enough buttons to insert coordinatesns430.lua
: listen foor coordinates and add the NS430 FIX format (as a possible replacement for having this built in)sitrep.lua
: add a button to copy the current mission's situation to the top of the current pageThe available API to the plugins in a nutshell (proper docs are still to do):
Open questions:
Todos:
I'll keep this is a draft PR for a while to explore whether it ends up being useful for people and to gather some feedback about the API. If you want to try it out, you can download the version of this PR here: https://github.com/rkusa/dcs-scratchpad/archive/refs/heads/extensions.zip
If I end up adding this extensions feature, I'll be accepting community extensions into this repo. They will just not be included in the default-installation and they will rely on community contributions for maintanance.