-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Aerial Fishing Pearl Luck Update to Version 1.2 #6958
base: master
Are you sure you want to change the base?
Conversation
Changed log.info to log.debug for all except startup and shutdown. Added everything else I meant to yesterday, but somehow lost it.
Made the fixes as per your instructions, ty!
Bug fixes
Updating to version 1.2 at last.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Saving multiple config options every fish attempt seems a bit much. I would consider saving maybe once a user ends a session instead? (leaves the island, logs off, shuts down plugin, etc)
- It doesn't really make sense to use the config checkboxes to reset stats
- You are calling
pearlRateWikiCalc
even when the user is doing fishing/hunter activities that aren't aerial fishing - Less of a blocker maybe, but in my opinion I don't think it's necessary to provide a config option to show/hide every field in the overlay.
Ah, that's a very valid point. Didn't even think about it making constant calls. That's fixed.
I wasn't sure how else to do this as I couldn't find a way to just put a new "Reset" button in or anything else. What do you suggest for this?
This will take some more looking into, but I'll fix this.
I had a user that wished it to be fully customizable so they could choose what they see, I think it's a good option for people these days. Everyone always asks for a toggle after all! |
You can add menu entries to the overlay, which will appear when you shift + right click.
You could probably add a regionId check for the island |
Changes as required by PR
Hi Tyler, I decided to not go with the region ID option(as I couldn't quickly figure it out). Instead, I made sure that the hunter and fishing calcs done in pearlRateWikiCalc were only being done if the overlay was added. Let me know if there's anything else! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you would really like to keep the fully customizable panel, then I would recommend storing the config values for use outside of the overlay render method as constantly fetching them from the config in render
could have performance impacts.
Less importantly it looks like src/main/java/com/AerialFishingPearlLuck/PearlCalcType.java is unused
First off, thank you for the approval.
I'll have to try and figure out how this works, I don't want to cause performance issues for users.
You're right, I was using that and then changed how things worked. Thank you for bringing it up, I'll be sure to remove it. |
in onStartUp, and onConfigChanged, read the config entries and store them in variables. Then use those variables during the render call |
Looking to Merge in the changes I've made to my plugin.