Thread Tools Display Modes
10-26-10, 05:49 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
/cancelaura

See post three...disabling is possible via SecureAuraHeaderTemplate
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 10-26-10 at 06:23 AM.
  Reply With Quote
10-26-10, 05:52 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
I just use one cancel aura macro and just add the buffs I want removed in the list. It will just go down the list and remove whatever is active. Whether it is one at a time I don't know but it will at least cut down the number of macros while this gets programatically resolved.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
10-26-10, 05:59 AM   #3
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Hmm bBuffBars says that this is working with the SecureAuraHeaders...hmm

http://www.wowinterface.com/download...Bars.html#info
http://www.wowinterface.com/download...-nivBuffs.html

Siggs post
http://www.wowinterface.com/forums/s...143#post213143

To sum this, when using SecureAuraHeaderTemplate for buffs/debuffs and buttons via SecureActionButtonTemplate it is possible to make it secure.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 10-26-10 at 06:13 AM.
  Reply With Quote
10-26-10, 06:36 AM   #4
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Originally Posted by zork View Post
To sum this, when using SecureAuraHeaderTemplate for buffs/debuffs and buttons via SecureActionButtonTemplate it is possible to make it secure.
This has been known about for quite a while. The problem is that for oUF the auras element is the most complicated one, and to re-write it to support SecureAuraHeaderTemplate is not an easy job.

It will also mean that a lot of the existing aura functionality will be reduced / removed.
  Reply With Quote
10-26-10, 06:42 AM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Yeah, not sure if that is needed really since we could easily use a self-created buff/debuff mod just for player auras. I had this for years.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
10-26-10, 08:14 AM   #6
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
Originally Posted by zork View Post
Yeah, not sure if that is needed really since we could easily use a self-created buff/debuff mod just for player auras. I had this for years.
Agree. Think it's best to keep the functionality as it is than to remove features just to support player Auras Right Clicking. Like zork said, one can use an addon for that. Speaking of which...zork have you re-written rBuffs with SecureAuraHeaders in mind?
__________________
My oUF Layout: oUF Lumen
  Reply With Quote
10-26-10, 09:34 AM   #7
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Yes I do. But this will will delay Roth UI because I just can't copy cast any already existing code. Gonna read into that topic first. :/
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
10-26-10, 02:54 PM   #8
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Well...hmm I actually just had an idea and it worked...sort of.

I can track which buttons are my player buff buttons, so only for them I add this call:

Code:
      button:SetScript("OnMouseUp", function(s) 
        if s.filter == "HELPFUL" then
          local buffname = UnitAura("player", s:GetID(), s.filter)
          local eb = LAST_ACTIVE_CHAT_EDIT_BOX
          if eb then
            eb:SetText("/cancelaura "..buffname)
            eb:SetFocus()
            eb:HighlightText()
          end          
        end        
      end)
Now what happens here is: I extract the BuffID, get the Buffname and print a string to the last active chat editbox. I set the Focus and Hightlight the text.

Now what is reallly strange is the follow: Just hittting Return does not work...I thought (WTF!!!)
If I copy the string into clipboard, paste it right away and hit Return it works.

So combination is now for me: RightClick buff you want to dispell + SHIFT-C -> SHIFT-V -> RETURN

Can anyone tell me why the exact same string will only work once copied from clipboard?

I don't understand that to be honest.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 10-26-10 at 02:57 PM.
  Reply With Quote
10-26-10, 03:53 PM   #9
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
I was expecting this to be part of oUF at some point, won't it?
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
10-26-10, 04:39 PM   #10
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
It will be as Haste has an issue tracker on GitHub for this feature. Due to the complexity of rewriting the auras element, it will probably take a while.
  Reply With Quote
10-27-10, 07:05 AM   #11
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
Thanks for posting this though. I had been trying with the secure button template, but I assume that was indeed wrong :P
  Reply With Quote
10-27-10, 07:32 AM   #12
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
I made a slightly lengthy post about my plans for the secure aura header, but Opera Mobile felt that I shouldn't post it. So here's a quick flow of what I'm planning to do:
1) Write up a new element to do player auras and make it resemble the current one as closely as I can
2) Compare the difference between the two (both logical and function wise) and see how sane it would be to merge the two elements into one.
3) ???
4) Profit

I also have some changes I want to make to the default aura element before I start with this, but those are pretty minor.

(sent from my phone)
__________________
「貴方は1人じゃないよ」
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » /cancelaura


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off