• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Hiding Armor from UI

Status
Not open for further replies.
Level 24
Joined
Feb 28, 2007
Messages
3,479
Hello again,

I'm back with yet another nooby UI modding question. I tried following the available resources on custom UI but alas here I am.
All I want to do is hide the armor icon and label that's shown whenever a single unit is selected.

I tried something like this:
JASS:
call BlzFrameSetVisible(BlzGetFrameByName("SimpleInfoPanelIconArmor", 2), false)

But as it stands, the armor icon and everything is still right there.

Thanks in advance
 
Level 24
Joined
Feb 28, 2007
Messages
3,479
Sadly it still doesn't work with the above solution.
Feels like it should be a trivial thing but apparently it's not..

Edit: I solved this by using the following code:
JASS:
call BlzFrameSetAbsPoint(BlzGetFrameByName("InfoPanelIconLabel", 2), FRAMEPOINT_TOPLEFT, 0.0, -0.1)
call BlzFrameSetAbsPoint(BlzGetFrameByName("InfoPanelIconBackdrop", 2), FRAMEPOINT_TOPLEFT, 0.0, -0.1)

I don't know how or why it works, but that's always been my experience with UI modding.
 
Last edited:
Status
Not open for further replies.
Top