-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Backend: Widget abstractions #1150
Conversation
open to review but garden patterns are still missing. Since Garden is closed at the moment. |
@nea89o Would you mind taking a look at this PR and providing your feedback? |
src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt
Outdated
Show resolved
Hide resolved
src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt
Outdated
Show resolved
Hide resolved
This pull request has conflicts with the base branch "beta". Please resolve those so we can test out your changes. |
# Conflicts: # src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt
Conflicts have been resolved! 🎉 |
Is somethign already using this? |
# Conflicts: # src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt
Conflicts have been resolved! 🎉 |
This pull request has conflicts with the base branch "beta". Please resolve those so we can test out your changes. |
# Conflicts: # src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt # src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt
Conflicts have been resolved! 🎉 |
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.
worked for me
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.
Two problems:
Event too complex
The current system needs this workaround:
(See #1977 for more info)
I'd suggest, we remove NewValues
and Clear
and instead fire Event(EnumType, List)
, with either changed values or an empty list if not found.
No event when no widget
Another problem is that the event is not getting sent when the widget is disabled when word switch. I don't want to assume the widgets are always disabled if the event is not sent (and then show an "open /tab and enable widget" display for the first second after world switch).
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.
changes lgtm
Dependencies
What
Wraps all widgets under an enum (I have a solution to update it remotely see 3b5edd8).
It also adds an widget update event that should reduce the usage of checking the whole tablist for every feature.
Widget info is also added to shcopytablist
Changelog Technical Details