- Joined
- Sep 27, 2016
- Messages
- 145
I made a simple custom UI for my map..
then i hide the default UI with:
Everything works fine until i login to Battle.net.
Test without login to Battle.net.
- everything is worked fine..
Test with login to Battle.net.
How i fix this problem? maybe there's an alternative way to hide the default UI and hero indicator (i marked it with red highlight)?
then i hide the default UI with:
JASS:
// ===========================
// Hide default UI
// ===========================
call BlzFrameSetSize(BlzGetFrameByName("ConsoleUIBackdrop",0), 0, 0.0001)
call BlzFrameSetAbsPoint(BlzGetFrameByName("ConsoleUI", 0), FRAMEPOINT_TOPLEFT, 0.0, 0.633)
call BlzFrameSetAlpha(BlzGetFrameByName("SimpleInventoryCover", 0), 0)
call BlzFrameSetScale(BlzGetFrameByName("InventoryText", 0), 0.0001)
call BlzFrameSetVisible(BlzFrameGetChild(BlzGetFrameByName("ConsoleUI", 0), 7), false)
call BlzFrameSetVisible(BlzFrameGetChild(BlzFrameGetChild(BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 5),0), false)
call BlzFrameSetVisible(BlzGetFrameByName("ResourceBarFrame",0), false)
call BlzFrameSetVisible(BlzGetFrameByName("UpperButtonBarFrame",0), false)
call BlzFrameSetVisible(BlzGetOriginFrame(ORIGIN_FRAME_HERO_BAR,0), false)
call BlzFrameSetVisible(BlzGetOriginFrame(ORIGIN_FRAME_PORTRAIT, 0), false)
// ===========================
// Re-arrange Message and Buff Bar UI
// ===========================
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_CHAT_MSG, 0), FRAMEPOINT_TOPLEFT, -0.100212, 0.302800)
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_CHAT_MSG, 0), FRAMEPOINT_BOTTOMRIGHT, 0.300212, 0.100300)
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_UNIT_MSG, 0), FRAMEPOINT_TOPLEFT, 0.000212200, 0.402800)
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_UNIT_MSG, 0), FRAMEPOINT_BOTTOMRIGHT, 0.400212, 0.3000)
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_UNIT_PANEL_BUFF_BAR, 0), FRAMEPOINT_TOPLEFT, 0.364600, 0.0680800)
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_UNIT_PANEL_BUFF_BAR, 0), FRAMEPOINT_BOTTOMRIGHT, 0.476200, 0.0547800)
Everything works fine until i login to Battle.net.
Test without login to Battle.net.
- everything is worked fine..
Test with login to Battle.net.
- HERO BUTTON is hidden (work) but HERO INDICATOR still exist (doesn't work: which is i need it to be hidden).
- Default UI is still shown up (doesn't work: which is i need it to be hidden).
How i fix this problem? maybe there's an alternative way to hide the default UI and hero indicator (i marked it with red highlight)?