[General] Removing Parts of the UI Console

Status
Not open for further replies.
Level 19
Joined
Oct 17, 2012
Messages
859
I wanted to make these sections of the UI console transparent so I can see the screen under it.

I achieved my aim by calling the following:
JASS:
call BlzFrameSetAllPoints(BlzGetOriginFrame(ORIGIN_FRAME_WORLD_FRAME, 0), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0))
Calling the function however removes the black background under the other sections of the UI console and renders units under the console. Health bars being seen through in the console looks rather fugly.

The picture attached below is most desired.
Reforged model.png
 
Unfortunately, you cannot get away from HP Bars coming up through the frame. In my efforts, using what you have done to completely remove the origin frame and then overlaying an image on top of the now-hidden UI, results in this.

The other method to have transparent borders by simply removing origin frame and importing 2 alpha images as the 05 & 06 frames also shows HP bars through the UI.
unknown.png
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
I swear to God if Blizzard doesn't let us hide/manipulate health bars in the near future...

Lua:
function HideOriginUI(name, index)
    local fh = BlzGetOriginFrame(name, index)
    BlzFrameClearAllPoints(fh)
    BlzFrameSetAbsPoint(fh, FRAMEPOINT_CENTER, 3, 3)
    BlzFrameSetScale(fh, 0.001)
end

Lua:
function HideUI(name, index)
    local fh = BlzGetFrameByName(name, index)
    BlzFrameClearAllPoints(fh)
    BlzFrameSetAbsPoint(fh, FRAMEPOINT_CENTER, 3, 3)
    BlzFrameSetScale(fh, 0.001)
end

Lua:
function RunHideUI()
    for i=0,11 do
        HideOriginUI(ORIGIN_FRAME_MINIMAP, i)
        HideOriginUI(ORIGIN_FRAME_ITEM_BUTTON, i)
        HideOriginUI(ORIGIN_FRAME_COMMAND_BUTTON, i)
        HideOriginUI(ORIGIN_FRAME_SYSTEM_BUTTON, i)
        HideOriginUI(ORIGIN_FRAME_PORTRAIT, i)
        HideOriginUI(ORIGIN_FRAME_MINIMAP, i)
        HideOriginUI(ORIGIN_FRAME_MINIMAP_BUTTON, i)
        HideOriginUI(ORIGIN_FRAME_TOOLTIP, i)
        HideOriginUI(ORIGIN_FRAME_UBERTOOLTIP, i)
        HideOriginUI(ORIGIN_FRAME_TOP_MSG, i)
        HideUI("ResourceBarFrame", i)
        HideUI("ConsoleUI", i)
    end
BlzFrameSetAllPoints(BlzGetOriginFrame(ORIGIN_FRAME_WORLD_FRAME, 0), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0))
BlzHideOriginFrames(true)
end

This code hides all of the UI (thank you Tasyen). I use it in my map and it works great. You can adjust it to work with GUI/Jass.

I'm not entirely sure how to do exactly what you want but I imagine it's some combination of hiding/unhiding these UI elements. You can delete "BlzFrameSetAbsPoint(fh, FRAMEPOINT_CENTER, 3, 3)" if you don't want to move the UI off the screen. In your case you'd probably want to set the UI's scale to 0.001 during the hiding period and then re scale it back to 1.00 when you want to bring it back.
 
Last edited:
Status
Not open for further replies.
Top