• 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.

How to hide entire upper panel?

Status
Not open for further replies.
How to hide entire upper panel?
3Z-kXJrU80g.jpg
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
Lua:
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
Lua:
function HideOriginUI(name, index)
    local fh = BlzGetOriginFrame(name, index)
    BlzFrameClearAllPoints(fh)
    BlzFrameSetAbsPoint(fh, FRAMEPOINT_CENTER, 3, 3)
    BlzFrameSetScale(fh, 0.001)
end

function HideUI(name, index)
    local fh = BlzGetFrameByName(name, index)
    BlzFrameClearAllPoints(fh)
    BlzFrameSetAbsPoint(fh, FRAMEPOINT_CENTER, 3, 3)
    BlzFrameSetScale(fh, 0.001)
end
You would want to mess around with it to find which frame is which. Straight away I can tell you that you DON'T want to hide MINIMAP, and SOME of the MINIMAP_BUTTONs, ITEM_BUTTON, COMMAND_BUTTON, PORTRAIT, TOOLTIP, and UBERTOOLTIP.

I attached a GUI version that uses Jass.
 

Attachments

  • UI GUI.w3x
    17.4 KB · Views: 38
Last edited:
Lua:
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
Lua:
function HideOriginUI(name, index)
    local fh = BlzGetOriginFrame(name, index)
    BlzFrameClearAllPoints(fh)
    BlzFrameSetAbsPoint(fh, FRAMEPOINT_CENTER, 3, 3)
    BlzFrameSetScale(fh, 0.001)
end

function HideUI(name, index)
    local fh = BlzGetFrameByName(name, index)
    BlzFrameClearAllPoints(fh)
    BlzFrameSetAbsPoint(fh, FRAMEPOINT_CENTER, 3, 3)
    BlzFrameSetScale(fh, 0.001)
end
You would want to mess around with it to find which FRAME is which. Straight away I can tell you that you DON'T want to hide MINIMAP, MINIMAP_BUTTON, ITEM_BUTTON, COMMAND_BUTTON, PORTRAIT, TOOLTIP, and UBERTOOLTIP.

I attached a GUI version that uses Jass.

I've tried with Lua script it works, however there is still not the result that i em expecting. Also i think the main issue is because "ConsoleUI" is a both plane upper and down and it's one single frame so it's can be only hide fully or i might be wrong :(
 
This would hide the top Panel but not the DayTime-Clock.
The only way to hide it right now for good is BlzHideOriginFrames(true). Other ways are replacing the textures inside gameinterface with an transparent image. That still would block that part for the mouse and trigger the ToolTip with image solution.
Lua:
TimerStart(CreateTimer(), 0, false, function()
        -- move the background out of the top screen, will also move the hero icons up
        local frame = BlzGetFrameByName("ConsoleUI", 0)
        --BlzFrameSetAbsPoint(frame, FRAMEPOINT_TOPLEFT, 0.0, 0.67) -- to high
        BlzFrameSetAbsPoint(frame, FRAMEPOINT_TOPLEFT, 0.0, 0.6265)

        -- hide the resources top right, this also hides /apm, /ping /fps
        frame = BlzGetFrameByName("ResourceBarFrame", 0)
        BlzFrameSetVisible(frame, false)
      
        -- hide the Top Left      
        frame = BlzGetFrameByName("UpperButtonBarFrame", 0)
        BlzFrameSetVisible(frame, false)

        print("Done")
end)
 
Last edited:
This would hide the top Panel but not the DayTime-Clock.
The only way to hide it right now for good is BlzHideOriginFrames(true). Other ways are replacing the textures inside gameinterface with an transparent image. That still would block that part for the mouse and trigger the ToolTip with image solution.
Lua:
TimerStart(CreateTimer(), 0, false, function()
        -- move the background out of the top screen, will also move the hero icons up
        local frame = BlzGetFrameByName("ConsoleUI", 0)
        BlzFrameSetAbsPoint(frame, FRAMEPOINT_TOPLEFT, 0.0, 0.67)

        -- hide the resources top right, this also hides /apm, /ping /fps
        frame = BlzGetFrameByName("ResourceBarFrame", 0)
        BlzFrameSetVisible(frame, false)
      
        -- hide the Top Left      
        frame = BlzGetFrameByName("UpperButtonBarFrame", 0)
        BlzFrameSetVisible(frame, false)

        print("Done")
end)

Works! However, one thing remaning - the HeroBar is a little bit up, there is a way to lower HeroBar ?
Tk5ZpZBz8us.jpg
 
Status
Not open for further replies.
Top