• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

(SOLVED) Hiding UI issues with Reforged (Black bar when hiding UI)

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,562
After the Reforged update I get a black bar across the Minimap/Portrait/CommandCard area.
See attached picture.

Everything worked fine before.
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
    BlzFrameSetAllPoints(BlzGetOriginFrame(ORIGIN_FRAME_WORLD_FRAME, 0), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0))
    BlzHideOriginFrames(true)

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
 

Attachments

  • bar.png
    bar.png
    3.9 MB · Views: 413
That black is a new Frame since Reforged: BlzGetFrameByName("ConsoleUIBackdrop",0).

In reforge the world Frame is fullscreen on default, hence blizzard added a black Box Frame behind the bottom UI which is not hidden by HideOrigin. It can be hidden with:
call BlzFrameSetVisible(BlzGetFrameByName("ConsoleUIBackdrop",0), false)

In the Beta some new fdfs were deployed allowing to access item and Command Buttons over BlzGetFrameByName, for some reason moving the frames with their originframe access buggs.
("CommandButton_0", 0)
("CommandButton_11", 0)

("InventoryButton_0", 0)
("InventoryButton_5", 0)

("MiniMapFrame", 0)

Reforged (compared to beta) added some new orginframes

ORIGIN_FRAME_PORTRAIT_HP_TEXT (Does not exist until any selection was done and that selection was synced, short delay.)
ORIGIN_FRAME_PORTRAIT_MANA_TEXT
ORIGIN_FRAME_UNIT_PANEL_BUFF_BAR
ORIGIN_FRAME_UNIT_PANEL_BUFF_BAR_LABEL (Attached to ORIGIN_FRAME_UNIT_PANEL_BUFF_BAR on default)
ORIGIN_FRAME_SIMPLE_UI_PARENT (Another Access for BlzGetFrameByName("ConsoleUI", 0))
 
Last edited:
Status
Not open for further replies.
Top