• 🏆 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!

Custom UI - find clock and items frames

Status
Not open for further replies.
Level 4
Joined
Dec 26, 2021
Messages
45
Hi, I am trying to make a custom UI but am having issues showing the two items I need (clock and hero items)
How can I set the visiblity of these two items to true? i.e. how can i access each of these frames?

to keep the example simple this is the current jass:
JASS:
    call BlzHideOriginFrames(true) 
    call BlzFrameSetSize(BlzGetFrameByName("ConsoleUIBackdrop",0), 0, 0.0001)
    call BlzFrameSetVisible(BlzGetOriginFrame(ORIGIN_FRAME_MINIMAP,0), false)
    call BlzFrameSetVisible(BlzGetFrameByName("ResourceBarFrame",0), false)
    call BlzFrameSetVisible(BlzGetFrameByName("UpperButtonBarFrame",0), false)
    call BlzFrameSetVisible(BlzGetOriginFrame(ORIGIN_FRAME_PORTRAIT, 0), false)
    call BlzFrameSetVisible(BlzGetOriginFrame(ORIGIN_FRAME_CHAT_MSG, 0), false)
 
Level 4
Joined
Dec 26, 2021
Messages
45
Of course solved the inventory thing as soon as I posted. Clock still a mystery though!
JASS:
    //Local Variables
    local framehandle fh = null

    call BlzHideOriginFrames(true)
    call BlzFrameSetSize(BlzGetFrameByName("ConsoleUIBackdrop",0), 0, 0.0001)
    call BlzFrameSetVisible(BlzGetOriginFrame(ORIGIN_FRAME_MINIMAP,0), false)
    //call BlzFrameSetVisible(BlzGetFrameByName("ResourceBarFrame",0), false)
    call BlzFrameSetVisible(BlzGetFrameByName("UpperButtonBarFrame",0), false)
    call BlzFrameSetVisible(BlzGetOriginFrame(ORIGIN_FRAME_PORTRAIT, 0), false)
    call BlzFrameSetVisible(BlzGetOriginFrame(ORIGIN_FRAME_CHAT_MSG, 0), false)
    call BlzEnableUIAutoPosition(false)

    //inventory
    set fh = BlzGetFrameByName("SimpleInfoPanelUnitDetail", 0)
    call BlzFrameSetVisible(BlzFrameGetParent(fh), true)
    call BlzFrameSetVisible(BlzGetFrameByName("SimpleInfoPanelUnitDetail", 0), true)
    call BlzFrameSetVisible(BlzGetFrameByName("SimpleInventoryCover", 0), true)
    call BlzFrameSetAlpha( BlzGetFrameByName("SimpleInventoryCover", 0), 0)

    //set alpha to 0 to completely hide unit stats
    call BlzFrameSetAlpha( BlzGetFrameByName("SimpleInfoPanelUnitDetail", 0), 0)
 
Status
Not open for further replies.
Top