-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Improvement: garden keybinds #3132
base: beta
Are you sure you want to change the base?
Improvement: garden keybinds #3132
Conversation
do GUI and config part, now only kotlin side has to be done
add disableAll and defaultAll
should work but of course doesn't
One or more Detekt Failures were detected:
|
src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt
Outdated
Show resolved
Hide resolved
One or more Detekt Failures were detected:
|
fix small mistakes + redo getting allKeybindings in onConfigLoad
@Thunderblade73 |
One or more Detekt Failures were detected:
|
fix "detekt failure"
One or more Detekt Failures were detected:
|
Yeah that would be better imo. If done correctly it should reduce complexity and not add more (as far as I can tell). Btw. enums have a way to get all entries |
add workaround for this, as GardenAPI should be calling GardenToolChangeEvent on island change
One or more Detekt Failures were detected:
|
This comment was marked as resolved.
This comment was marked as resolved.
do you think I could replace the map: layouts with the enum? |
Yes, you can replace the map. |
src/main/java/at/hannibal2/skyhanni/features/garden/farming/keybinds/KeyBindLayouts.kt
Outdated
Show resolved
Hide resolved
src/main/java/at/hannibal2/skyhanni/features/garden/farming/keybinds/KeyBindLayouts.kt
Outdated
Show resolved
Hide resolved
src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt
Outdated
Show resolved
Hide resolved
remove unused enum Layouts
add getAllKeybindings() + formatting
also adapt to the enum
This reverts commit 2995018.
TODO: move GardenCustomKeybinds.kt into keybinds |
@Thunderblade73 |
It is loaded via Gson at ConfigLoadEvent (or what ever it is called) or if no value is present in the config json than it calls the constructor. |
The cropLayoutSelection is a map inside of the kotlin, you got that like this, right? |
Nope, I saw the value in KeyBindConfig and assume you where referencing it, |
So is ConfigLoadEvent called upon launch? |
yes
Yes, but you override it every update(). |
Yes, I see TODO |
KeyBindLayouts.getLayoutByDisplayName(KeyBindLayouts.to_String()) is redundant lol
add extension function to CropType and remove unneeded stuff
One or more Detekt Failures were detected:
|
This pull request has conflicts with the base branch "beta". Please resolve those so we can test out your changes. |
Conflicts have been resolved! 🎉 |
One or more Detekt Failures were detected:
|
TODO:
|
This pull request has conflicts with the base branch "beta". Please resolve those so we can test out your changes. |
What
You can now set 5 keybind layouts, each with different keybinds.
You can then for each crop select what layout you'd wish to use.
Also moved it into it's own category
Images
Changelog Improvements