-
Notifications
You must be signed in to change notification settings - Fork 22
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
Editor plugin system #268
Merged
Merged
Editor plugin system #268
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…editor's event bus
…nt into terrain commons module
JamesTKhan
requested changes
Apr 13, 2024
plugin-api/src/com/mbrlabs/mundus/pluginapi/RenderExtension.java
Outdated
Show resolved
Hide resolved
plugin-api/src/com/mbrlabs/mundus/pluginapi/SceneExtension.java
Outdated
Show resolved
Hide resolved
Fixed. I've tried to disable 'Plugins' menu if Editor does not have plugins, but seems the VisUI lib doesn't support it. |
…-plugin-system # Conflicts: # editor/CHANGES
JamesTKhan
approved these changes
Apr 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a long running PR.
This implements plugin system for editor. The Editor loads plugins from <your_home_directory>/.mundus/plugins directory.
There are 2 new module:
Extension interfaces:
String getMenuName()
: Here can set the name for plugin's menu item in Plugins menuvoid setupRootDialogWidget(RootWidget)
: Here can setup the plugin's widget.void sceneLoaded(Array<TerrainComponent>)
: Here can get the loaded terrain components at scene loadedvoid hover(TerrainComponent, Vector3)
: Here can get the mouse hover position on the terrain.void createStatusBarLabel(LabelWidget)
: Here can create label on statusbar and can set it's label text.RenderableProvider getRenderableProvider()
: Here can pass renderable provider to render it on the scenevoid manageEvents(PluginEventManager)
: Here can subscribe to editor's events.void dispose()
: This method calls in when the Editor disposes its resources.Subscribable editor events:
TODO list:
Here is the example plugin: https://github.com/Dgzt/mundus-helper-lines-plugin