Skip to content

Microbot Plugin refactor#1123

Merged
gmason0 merged 4 commits intodevelopmentfrom
microbotplugin-refactor
Jun 23, 2025
Merged

Microbot Plugin refactor#1123
gmason0 merged 4 commits intodevelopmentfrom
microbotplugin-refactor

Conversation

@gmason0
Copy link
Contributor

@gmason0 gmason0 commented Jun 23, 2025

The goal of this refactor is to remove the setter methods within the Microbot class & only rely on dependency injection for instances of runelite utilities.

Doing this, I have also removed the MicrobotConfigPlugin & moved the panel creation into the MicrobotPlugin - this is the panel that is used to display only microbot plugins.

@gmason0 gmason0 requested a review from Copilot June 23, 2025 02:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the Microbot plugin system by removing setter methods and consolidating configuration and panel management into the MicrobotPlugin class while eliminating the now-unused MicrobotConfigPlugin. Key changes include updating access modifiers across UI classes, modifying method visibilities in plugin panels, and refactoring dependency injection usage in MicrobotPlugin.

Reviewed Changes

Copilot reviewed 25 out of 28 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
runelite-client/src/main/java/net/runelite/client/plugins/microbot/ui/MicrobotTopLevelConfigPanel.java Changed class access from package-private to public.
runelite-client/src/main/java/net/runelite/client/plugins/microbot/ui/MicrobotPluginListPanel.java Updated visibility of methods to public to support external access.
runelite-client/src/main/java/net/runelite/client/plugins/microbot/ui/MicrobotPluginConfigurationDescriptor.java Made the class and constructor public.
Multiple plugin files (e.g., TitheFarmingPlugin, TannerPlugin, WinePlugin, etc.) Removed setter method calls in favor of dependency injection.
runelite-client/src/main/java/net/runelite/client/plugins/microbot/MicrobotPlugin.java Refactored plugin startup logic with dependency injection and updated menu handling logic.
runelite-client/src/main/java/net/runelite/client/plugins/microbot/GeoffPlugins/lunarplankmake/LunarPlankMakePlugin.java and Construction2Plugin.java Removed redundant setter call(s) in line with the DI refactor.
runelite-client/src/main/java/net/runelite/client/RuneLiteModule.java Updated static injection to include Microbot.

@gmason0 gmason0 merged commit ed1ba6d into development Jun 23, 2025
2 checks passed
@gmason0 gmason0 deleted the microbotplugin-refactor branch June 23, 2025 03:08
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.

2 participants