Skip to content
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

Api/v1.4.0 #72

Merged
merged 8 commits into from
Oct 17, 2022
Merged

Api/v1.4.0 #72

merged 8 commits into from
Oct 17, 2022

Conversation

CogentRedTester
Copy link
Owner

@CogentRedTester CogentRedTester commented Oct 13, 2022

Adds a new API for addons to register new root items.
Only adds the item to the root if it is not already there,
which allows for users to override the placement of items
with the root script-opt.

Can also specify a priority value to control what order items are
placed relative to each other, and provides a parser method that
uses the parser's priority.

The Favourites, Winroot and a new advanced Root addon demonstrate
the use of this new API.

This new system should make it easier for addons to specify root values
in such a way that the user can override positioning. It also provides
addons with much greater power to control the position of their root
items using the priority value.
This means things like the parser API and a unique ID are now provided
to the root parser. I've mostly done this to avoid confusing duplicates
from addons that may have named themselves root.
@CogentRedTester CogentRedTester force-pushed the API/v1.4.0 branch 2 times, most recently from a036004 to 1be3031 Compare October 17, 2022 06:29
@CogentRedTester CogentRedTester merged commit 401b4ee into master Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant