• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Hiding Armor from UI

Status
Not open for further replies.
Level 24
Joined
Feb 28, 2007
Messages
3,478
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
 
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.
Back
Top