- Joined
- Jul 12, 2010
- Messages
- 1,737
After the 1.32.2 patch I run into this problem:
In earlier versions the black part didn't show and also command buttons 0-4 were hidden, while 5-11 were organized in a line at the bottom of the screen.
What did blizzard do again? >_<
Test map attached.
EDIT:
I have found a solution to the black box thingy, use this code:
Now only the problem of the command buttons remains...
EDIT 2:
Once again the day has been saved by @Tasyen !
Here is the fix for anybody with the same problem:
JASS:
function Trig_GameUI_Init_Actions takes nothing returns nothing
call BlzHideOriginFrames(true)
call BlzFrameSetAllPoints(BlzGetOriginFrame(ORIGIN_FRAME_WORLD_FRAME, 0), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0))
// --------------------------
// Portrait
call BlzFrameSetVisible(BlzGetOriginFrame(ORIGIN_FRAME_PORTRAIT,0), true)
call BlzFrameClearAllPoints(BlzGetOriginFrame(ORIGIN_FRAME_PORTRAIT,0))
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_PORTRAIT,0), FRAMEPOINT_CENTER, 0.155, 0.538)
// --------------------------
// Move Spells
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON, 5), FRAMEPOINT_TOPLEFT, 0.296, 0.038)
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON, 6), FRAMEPOINT_TOPLEFT, 0.333, 0.038)
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON, 7), FRAMEPOINT_TOPLEFT, 0.481, 0.076)
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON, 8), FRAMEPOINT_TOPLEFT, 0.370, 0.038)
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON, 9), FRAMEPOINT_TOPLEFT, 0.407, 0.038)
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON, 10), FRAMEPOINT_TOPLEFT, 0.444, 0.038)
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON, 11), FRAMEPOINT_TOPLEFT, 0.481, 0.038)
// --------------------------
// --------------------------
endfunction
//===========================================================================
function InitTrig_GameUI takes nothing returns nothing
set gg_trg_GameUI = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_GameUI, 0.10 )
call TriggerAddAction( gg_trg_GameUI, function Trig_GameUI_Init_Actions )
endfunction
-
Hide Buttons
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
-------- Hide Move/Attack Buttons etc. --------
-
Custom script: call BlzFrameSetSize(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON,0), 0.0, 0.0)
-
Custom script: call BlzFrameSetSize(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON,1), 0.0, 0.0)
-
Custom script: call BlzFrameSetSize(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON,2), 0.0, 0.0)
-
Custom script: call BlzFrameSetSize(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON,3), 0.0, 0.0)
-
Custom script: call BlzFrameSetSize(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON,4), 0.0, 0.0)
-
-
Test map attached.
EDIT:
I have found a solution to the black box thingy, use this code:
JASS:
call BlzFrameSetVisible(BlzGetFrameByName("ConsoleUIBackdrop",0), false)
EDIT 2:
Once again the day has been saved by @Tasyen !
Here is the fix for anybody with the same problem:
JASS:
//Change this:
call BlzFrameSetSize(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON,0), 0.0, 0.0)
//To this:
call BlzFrameSetSize(BlzGetFrameByName("CommandButton_0", 0), 0.0, 0.0)
//===========================================================================
//And This:
call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON, 5), FRAMEPOINT_TOPLEFT, 0.296, 0.038)
//To This:
call BlzFrameSetAbsPoint(BlzGetFrameByName("CommandButton_5", 0), FRAMEPOINT_TOPLEFT, 0.296, 0.038)
Attachments
Last edited: