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>:
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