• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 76
Joined
Aug 10, 2018
Messages
8,351
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: 498
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.
Back
Top