Thread Tools Display Modes
11-10-10, 08:38 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Aura button doodeling

Hmm...

Bookmarks:
http://wowprogramming.com/docs/secur...ButtonTemplate
http://wowprogramming.com/forums/development/4
http://www.wowwiki.com/SecureActionButtonTemplate

haste does
lua Code:
  1. [code]
  2.   local button = CreateFrame("Button", nil, icons)
  3.   button:EnableMouse(true)
  4.   button:RegisterForClicks'RightButtonUp'
  5.  
  6.   ...
  7.  
  8.   local unit = icons.__owner.unit
  9.   if(unit == 'player') then
  10.     button:SetScript('OnClick', OnClick)
  11.   end
  12. [/code]

Maybe we can do
lua Code:
  1. [code]
  2.   local button
  3.   local unit = icons.__owner.unit
  4.   if(unit == 'player') then
  5.     button = CreateFrame("Button", nil, icons, "SecureActionButtonTemplate")
  6.     button:SetAttribute("type2", "macro")
  7.     button:SetAttribute("macrotext2", "/cancelaura "..button:GetID())
  8.   else
  9.     button = CreateFrame("Button", nil, icons)
  10.   end
  11.   button:EnableMouse(true)
  12.  
  13.   ...
  14.  
  15. [/code]

Just an idea. "2" is your right mousebutton. (mouse2)
__________________
| 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 : 11-10-10 at 09:09 AM.
  Reply With Quote
11-10-10, 09:34 AM   #2
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Nope, that would blow up in combat.
__________________
「貴方は1人じゃないよ」
  Reply With Quote
11-10-10, 10:41 AM   #3
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Yeah just tried it. To bad .
__________________
| 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
11-10-10, 11:21 AM   #4
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
If it works ooc, it's at least something. Default blizzard buffs suck.
__________________
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
11-10-10, 03:21 PM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
No actually they don't. First time combat and lua error.
Try nivBuffs and SatrinaBuffFrames are coming back atm aswell.
__________________
| 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 : 11-10-10 at 03:23 PM.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Aura button doodeling


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