View Single Post
11-08-13, 02:06 PM   #82
Akatosh
A Black Drake
AddOn Compiler - Click to view compilations
Join Date: Jun 2013
Posts: 84
I am making work the few neurons that I have and maybe that can work, but I dont find the way to make it.

for example:

Code:
local myPanel = kgPanels:FetchFrame("panel1")

If 1 click then

if pressed then
  myPanel:SetScript("OnUpdate",function(frame)
    local base, posBuff, negBuff = UnitAttackPower("player")
local Melee_AP = base + posBuff + negBuff
myPanel.text:SetText(string.format("|cffffffff%.i|r AP", Melee_AP))
  end)

elseif 2 click then

myPanel:SetScript("OnUpdate",function(frame)
 local Total_DM = GetMasteryEffect("player")
myPanel.text:SetText(string.format("|cffffffff%.1f%%|r M", Total_DM))
  end)

end
Need help!.

Thanks!!

Last edited by Akatosh : 11-08-13 at 08:00 PM.
  Reply With Quote