• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Custom UI - find clock and items frames

Status
Not open for further replies.
Level 4
Joined
Dec 26, 2021
Messages
47
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
47
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