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