- Joined
- Oct 26, 2014
- Messages
- 84
How to hide entire upper panel?
![3Z-kXJrU80g.jpg](/proxy.php?image=https%3A%2F%2Fsun9-5.userapi.com%2Fc855024%2Fv855024049%2F1f6a31%2F3Z-kXJrU80g.jpg&hash=acb98c64b62fafb4202ed8c23861e13d)
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
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
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
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.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
I attached a GUI version that uses Jass.
PMed him
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)
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)
BlzFrameSetAbsPoint(frame, FRAMEPOINT_TOPLEFT, 0.0, 0.6265)