Quantcast
(tbc) How to hide hp/mana values on some unitframes (not all) - WoWInterface
Thread Tools Display Modes
09-26-21, 05:19 AM   #1
elegen924
A Murloc Raider
Join Date: Aug 2019
Posts: 4
(tbc) How to hide hp/mana values on some unitframes (not all)

Hello,

Im looking for a way to hide the hp/mana/energy values of my party and focus unitframes while keeping the player and target ones.

Im using everything default ui, and I use the old partyframes, I know I can hide the values with the cata raid frames but Im not a fan of those.

Could a simple script do it ?

Thanks!
  Reply With Quote
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,050
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.
__________________
ESOUI AddOns | 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
09-27-21, 06:48 AM   #3
elegen924
A Murloc Raider
Join Date: Aug 2019
Posts: 4
Hey,

Thanks for the reply!

I see you are the same person that made the Modern Target Frame addon (which I use). I spoke to you a couple days ago on curse to ask you how I could display health/mana values simply as numerical instead of numerical/numerical! Forever in search of the perfect ui...

Anyway, I tried your macro and it works.. kinda because it produces an error with... Modern Target Frame.
In any case don't bother checking it more in depth! Because while messing arround with the Framestack macro I found the correct spelling of what I wanted to hide. And I added it to my own addon that is simply a big compilation of :SetAlpha(0) and some Scalling things here and there.

Again, thanks! I really didn't think it could be hidden that simply. Sometimes things are simplier than you think.

Good day to you in planet Azeroth.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » (tbc) How to hide hp/mana values on some unitframes (not all)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off