-
Notifications
You must be signed in to change notification settings - Fork 234
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
[#1465, #1771, #1774] Add ability to move advancements from one item to another #1780
Conversation
likely to conflict with #1766 because we're both adding dragDrop to ItemSheet I'd also recommend the |
d6d84b2
to
5b385b8
Compare
fd1ab1e
to
33b381a
Compare
b2bd749
to
f8ed8d0
Compare
f8ed8d0
to
bd6f365
Compare
bd6f365
to
9b86a8a
Compare
9b86a8a
to
0775750
Compare
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.
Looks good to me, only minor suggestions, and one point of clarification: Where we talk about 'migrating' advancements here, we mean manual, UI-based migrations with users dragging and dropping individual advancements or advancement-containing-items onto other items? We're not attempting to perform automated migrations on users worlds at all?
…alidity check in drop handler
…cementManager, code cleanup
0775750
to
898d914
Compare
This PR is just for manually dragging advancements to an item. Fully-automated migrations on advancements aren't going to be possible because they require per-player action, but I was thinking we could implement a system in the UI to notify players that there are new advancements available and make it easy to apply them. That feature if we decide to implement it will be built on this foundation. |
That makes sense, thanks, just making sure I understood the context. |
This adds a few tools to improve the usability of advancements, specifically to aid in the process of adding advancements to an item that is already on a character sheet.
This adds the ability to use drag-and-drop to copy a single advancement from one item to another. It also allows for dragging an entire item onto the Advancement tab of another to copy all advancements over. Regardless of which method is used, the system will check to ensure that each advancement doesn't already exist on the target (by comparing IDs) and that it is valid (only one Hit Points Advancement allowed). If the whole item is dragged over, it will display a prompt to give users an option of only copying over certain advancements.
If the item the advancements are being copied onto is embedded, the system will then show the Advancement Manager to apply any new advancements.
In addition, deleting an advancement from an embedded item will now unapply that advancement before deletion.
Resolves #1465
Resolves #1771
Resolves #1774