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