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

Fixed Paint EventListeners #35

Merged
merged 2 commits into from
Mar 31, 2020
Merged

Fixed Paint EventListeners #35

merged 2 commits into from
Mar 31, 2020

Conversation

GigiaJ
Copy link
Collaborator

@GigiaJ GigiaJ commented Mar 31, 2020

Fixed a bad comparison in when getting the bot from the GUI as it would compare the classloader of the client which isn't loaded by the bot.
Fixed the implementation of the PaintEventListeners and others by correcting the cast of Canvas into a new Canvas of ours and then getting the graphics of the Canvas by passing the mainBufferProvider in our BotHooks to it to trigger our drawing methods for the listeners.

This should allow one to create a new listener in a script and add it to the EventManager to draw directly to the screen.

GigiaJ and others added 2 commits March 31, 2020 16:51
Fixed the listener and canvas implementation to properly interact with our drawing hook.
Additionally fixed a bad comparision of classloaders in the BotGUI that would only fail on certain classes due to how we load the bot.
@GigiaJ GigiaJ self-assigned this Mar 31, 2020
@GigiaJ GigiaJ merged commit 7af527d into master Mar 31, 2020
@GigiaJ GigiaJ linked an issue Mar 31, 2020 that may be closed by this pull request
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.

[BUG] Debug functions
1 participant