• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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 66
Joined
Aug 10, 2018
Messages
6,725
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: 35
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