View Single Post
09-26-21, 09:01 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
This is what I've come up with. It's right up against the length limit for macros.
Code:
/run local function d(b) for _,k in ipairs({"TextString","LeftText","RightText"}) do if b[k] then b[k]:Hide();b[k]=nil;end end end for _,b in ipairs({"HealthBar","ManaBar"}) do for i=1,4 do d(_G["PartyMemberFrame"..i..b]);end d(_G["FocusFrame"..b]);end
It could probably be shortened by messing with the flags instead, but I considered this approach more reliable.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote