Thekinghim / keystone-companion

3 stars 4 forks source link

The KeystoneCompanion main frame cant be closed while in combat #16

Closed Thekinghim closed 4 months ago

Thekinghim commented 4 months ago

So my streamer friend is using the addon and he noticed that you cannot close the frame if you are in combat.

Larsj02 commented 4 months ago

Secure Action Buttons are the Reason as all clickables are done with that instead of the InsecureActionButtonTemplate that should be used for stuff that needs to change in combat (These will lose functionality in combat though) I think this Example sums up the Problem pretty good. https://streamable.com/461mz5 Both Frames are identical and should move to a new position on click but the secure one can't and will throw erros BUT it will keep using the spell that is assigend. And the Insecure one just stops working BUT can move around

kaelonR commented 4 months ago

Just merged the PR. Thanks @Larsj02!

I'll just reiterate the feedback I left on the PR here. Perhaps it might be an idea to add a smaller frame, showing just the player's own consumables in SecureActionButtons so that the player can consume those while in combat? would provide quick access in a much smaller frame that doesn't get in the way that way. I think this may be useful as lots of dungeon runs may be almost permanently in combat mode.

Larsj02 commented 4 months ago

Maybe add like a popout frame that uses SecureActionButtonTemplate and deactivate the Close Button on that frame in combat to not risk throwing errors ?

kaelonR commented 4 months ago

Sounds like a good idea. We'll probably need a settings pane first so people can turn this feature on and off.