• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Hiding Armor from UI

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