-
Notifications
You must be signed in to change notification settings - Fork 7
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
Plugin System #13
Comments
Should this include adding own tabs? |
Yeah, I'm kind of thinking that we assume a plugin author will provide us a |
@rgbkrk I think that's a good idea. A system that allows the author to tap into the connection all the time is probably a lot more powerful though. We have to come up with something different for that I guess. |
Maybe we should think about what plugins use, what are they supposed to do. Example ideas: Some gui thing: an radar for your quests. |
@luckydonald Yea, definitely make sense to list these requirements. Imho, plugins should be able to:
I think all of these requirements can be easily fulfilled. I think an easy solution would be: A plugin is an npm (like) package. The package's main file is imported inside the pipboy app. Now either the pipboy app injects a module / dependency that exposes our plugin API (quite complex) or it just imports a function that each plugin exports. The API might expose certain methods that can add components as panes, or add settings. All background logic then actually doesn't have to be implemented explicitly, but would be just a side effect |
It would be really great if people could register plugins that create their own view or just run some helper utilities. I'm imagining we would hand them either a reference to the
subject
or some Object that hadsubject
anddatabase
.The text was updated successfully, but these errors were encountered: