Originally Posted by d87
|
Can you provide me with the code? I'm not good with this, mainly been "stealing" the codes. :P
I got this for arena numbers on nameplates (arena numbers instead of lvl number), maybe that coding can be similar for moving and keeping the arenaframes in place? It uses the "hooksecurefunc" like you mentioned.
Code:
-- Arena1-2-3 on nameplates --
local U=UnitIsUnit hooksecurefunc("CompactUnitFrame_UpdateName",function(F)if IsActiveBattlefieldArena()and F.unit:find("nameplate")then for i=1,5 do if U(F.unit,"arena"..i)then F.name:SetText(i)F.name:SetTextColor(1,1,0)break end end end end)