-
Notifications
You must be signed in to change notification settings - Fork 125
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
drag/drop skills to HotkeyBar is broken/bugged #98
Comments
Huh, nice find. I don't think I've tried to drag/drop skills from the tree in years. Not only are they not being attached, but they're not being reset on release either (which I believe should be a call to IconRestore()). Very interesting. Edit: |
CUISkillTreeDlg isn't handling it like other things. Ordinarily we go:
And then handle behaviour appropriately in ReceiveIconDrop() (which is called by BroadcastIconDropMsg().
It would have to handle the instances specifically from the skill tree dialog, because they'll be skill icons not item icons (i.e. they won't have item data attached and the logic won't make sense). What we do have, however is this:
So I think we more or less just need to scrap that, broadcast the message instead, and handle it appropriately. I think then things should hopefully come together. |
Just update the function CUI HotKeyDlg :: IsSelectedSkill RealIconArea () bool CUIHotKeyDlg::IsSelectedSkillInRealIconArea()
} |
Unintentionally triggering behaviour (from the caller's perspective) in a method indicated as a check only is probably not the way to go there. |
I could not see a properly controlled method across the source code. To explain; Detects an icon drifting from "UISkillTreeDlg" here; CUISkillTreeDlg::ReceiveMessage The icon is checked if it is on "UIHotKeyDlg" with "IsSelectedSkillInRealIconArea" method, but it does not fix the icon in any way. The "CUIHotKeyDlg :: SetReceiveSelectedSkill" line I added above acts as "IconRestore" here and fixes the icon in the area. There is no problem working properly. Could you please open some more what you mean? |
It's not totally broken (I managed to get one skill to end up on the skillbar and usable).
Normally the skill icon just stays there (still attached to UISkillTree) and not being "received" by the Skillbar.
Dragging/dropping items to the skillbar works fine (with some exceptions like the transformation gem).
The text was updated successfully, but these errors were encountered: