View Single Post
11-07-13, 02:43 PM   #81
Akatosh
A Black Drake
AddOn Compiler - Click to view compilations
Join Date: Jun 2013
Posts: 84
Hi!, I have a new question.

How can I do for change multiple text OnClick, in a panel?.

I explain I have 2 panels with stats info (Atack power, mastery, etc).

Code:
local base, posBuff, negBuff = UnitAttackPower("player")
local Melee_AP = base + posBuff + negBuff
self.text:SetText(string.format("|cffffffff%.i|r AP", Melee_AP))
Code:
local Total_DM = GetMasteryEffect("player")
self.text:SetText(string.format("|cffffffff%.1f%%|r M", Total_DM))
I want join that panels, and swap it OnClick, not a show / hide panel, just a swap of code on the section "OnUpdate", when I do click.

Thanks!!.
  Reply With Quote