The problem is that method don't work with the custom sorting and filtering EBB uses.
also Blizzard failed when they added temporary enchants for ranged weapons... neither the SecureAuraHeader nor the cancelaura type for secureActionButtons allows you to remove them :P
also Blizzard failed when they added temporary enchants for ranged weapons... neither the SecureAuraHeader nor the cancelaura type for secureActionButtons allows you to remove them :P
Well, blizzard messing up stuff when they add it isn't that rare of an event :p
Hopefully they will sort it to allow removal of buffs by active clicking (im all for blocking automatic removal without active input)
Nice workaround for cancelling buffs :)
Could you change it so the button is automatically hidden if the buff is cancelled, so we don't have to left and right click it?
well, but that would still allow for intelligent removal by using eg movement as trigger...
Not sure whats possible or not, but wouldn't it be possible for blizz to force it to be a mouseclick? And enforce the mouse has to be on a valid frame?
(Yeah, know its kinda OT but sometimes i just dun understand what the problem is...)
is it posible to move the cancelling buffbutton? i didnt find any anchor :)
To do so, you'd need to change the actual points that define the secure action button to anchor to something other than the center of the UIParent.
I've made a couple changes that cause the button to appear on the bars on mouseover, unfortunately they don't hide on mouseout though. I tried making them auto-hide, but they flickered show/hide/show/hide constantly because only the buff bar itself can track mouseover/mouseout, the secure button can only do things when clicked. (I may be wrong, I'm just learning to code again, it's been years...)
Elkano, I've sent you a link to my modified code that you can look over. I hope you approve of the changes, although I didn't bother setting the button to track your X positioning of the bars, only the Y, because I know where mine are on my screen.... ;)
I'd sure like to see my changes applied to the overall code in some way, and I'm trying to come up with a clever way to handle making the "new way" completely transparent to the user, so it seems like nothing's changed. :)
hmm, noticed the cancel button doesnt properly hide on login
after logging in if you move the mouse over the area the button is and try to rotate the camera nothing happens, you actually have to right click that spot for the icon to hide as it seems to only be invisible/empty at that time
I like the cancelling button, very nice workaround :-).
I don't know if it's the same for everyone but I can't use it to cancel weapon buffs like Rogue's poisons or Shaman's Windfurry. I receive the following error message:
1x Interface\FrameXML\SecureTemplates.lua:395: attempt to call global 'CancelItemTempEnchant' (a nil value):
Interface\FrameXML\SecureTemplates.lua:540: in function <Interface\FrameXML\SecureTemplates.lua:488>:
I get it to pop up when i right click something (like my mount), but it does nothing else but just sit there untill i click the the button and the button goes away again doing absolutely nothing....
Is it a specific buff you're having trouble with? The only things mentioned so far that aren't working are rogue poisons... Have you tried using the new buttons to dismount?
EDIT: Just read, you mentioned mounts not working either. Try completely removing and reinstalling the addon?
Is it a specific buff you're having trouble with? The only things mentioned so far that aren't working are rogue poisons... Have you tried using the new buttons to dismount?
EDIT: Just read, you mentioned mounts not working either. Try completely removing and reinstalling the addon?
It works if i tear my SV's out so i guess something in my settings breaks it
bah, guess i have to re setup all f it :(,
Edit: Found what causes it to bugg out.
If you use "Override Settings" to edit the display name of a buff (i do that with long names to make the faster to "read" and to make them fit the width of the bar) the buff can nolonger be canceled using the button.
May i hazard a guess its trying to cancel an aura named "Spooky!" instead of "Headless Horseman's Mount" ?
Edit2: Seems its not that easy.
Using ANY "Override" names at all will kill the "cancel" button reguardless if the specific aura has been changed.
I'll look into it tomorrow, I've already sent Elk a new version that makes the "cancel" button a bit more intuitive. Perhaps I'll have another new version for him before he's even responded to the first message? :)
1. Right click a buff, button shows.
2. Left click the button, buff is cancelled.
3. Right click the button to hide it.
This is a neat workaround, but I have one small (pun intended) issue. The "active" area of the button is very small. Something like 5x5 pixels, dead center on the button. Clicking anywhere else on the button does nothing, but that dead center spot works fine. I've gotten pretty good at hitting it on the first try, but it does occasionally take 2-3 tries. Is there something I can change in the code to enlarge the active area myself?
That's not an issue with the button, that's an issue with another frame from some other addon covering most of the button with a higher "strata" (essentially, height) so the only part of the button that's uncovered is the part you've been clicking.
If you don't immediately see another frame on or near the button, use "/framestack" and mouse over the area to identify the frames under the cursor. Hopefully that helps you find out what's covering the button up.
More info on framestack can be found here: WoWWiki
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
also Blizzard failed when they added temporary enchants for ranged weapons... neither the SecureAuraHeader nor the cancelaura type for secureActionButtons allows you to remove them :P
Well, blizzard messing up stuff when they add it isn't that rare of an event :p
Hopefully they will sort it to allow removal of buffs by active clicking (im all for blocking automatic removal without active input)
Could you change it so the button is automatically hidden if the buff is cancelled, so we don't have to left and right click it?
So I'll have to stick it into the scanning somehow...
Not sure whats possible or not, but wouldn't it be possible for blizz to force it to be a mouseclick? And enforce the mouse has to be on a valid frame?
(Yeah, know its kinda OT but sometimes i just dun understand what the problem is...)
To do so, you'd need to change the actual points that define the secure action button to anchor to something other than the center of the UIParent.
I've made a couple changes that cause the button to appear on the bars on mouseover, unfortunately they don't hide on mouseout though. I tried making them auto-hide, but they flickered show/hide/show/hide constantly because only the buff bar itself can track mouseover/mouseout, the secure button can only do things when clicked. (I may be wrong, I'm just learning to code again, it's been years...)
Elkano, I've sent you a link to my modified code that you can look over. I hope you approve of the changes, although I didn't bother setting the button to track your X positioning of the bars, only the Y, because I know where mine are on my screen.... ;)
I'd sure like to see my changes applied to the overall code in some way, and I'm trying to come up with a clever way to handle making the "new way" completely transparent to the user, so it seems like nothing's changed. :)
after logging in if you move the mouse over the area the button is and try to rotate the camera nothing happens, you actually have to right click that spot for the icon to hide as it seems to only be invisible/empty at that time
I don't know if it's the same for everyone but I can't use it to cancel weapon buffs like Rogue's poisons or Shaman's Windfurry. I receive the following error message:
I get it to pop up when i right click something (like my mount), but it does nothing else but just sit there untill i click the the button and the button goes away again doing absolutely nothing....
2. Left click the button, buff is cancelled.
3. Right click the button to hide it.
1: Check
2: Does absolutely nothing at all
3: Check
EDIT: Just read, you mentioned mounts not working either. Try completely removing and reinstalling the addon?
It works if i tear my SV's out so i guess something in my settings breaks it
bah, guess i have to re setup all f it :(,
Edit: Found what causes it to bugg out.
If you use "Override Settings" to edit the display name of a buff (i do that with long names to make the faster to "read" and to make them fit the width of the bar) the buff can nolonger be canceled using the button.
May i hazard a guess its trying to cancel an aura named "Spooky!" instead of "Headless Horseman's Mount" ?
Edit2: Seems its not that easy.
Using ANY "Override" names at all will kill the "cancel" button reguardless if the specific aura has been changed.
This is a neat workaround, but I have one small (pun intended) issue. The "active" area of the button is very small. Something like 5x5 pixels, dead center on the button. Clicking anywhere else on the button does nothing, but that dead center spot works fine. I've gotten pretty good at hitting it on the first try, but it does occasionally take 2-3 tries. Is there something I can change in the code to enlarge the active area myself?
If you don't immediately see another frame on or near the button, use "/framestack" and mouse over the area to identify the frames under the cursor. Hopefully that helps you find out what's covering the button up.
More info on framestack can be found here: WoWWiki