[JASS] Hide Command Buttons 0-4

Status
Not open for further replies.
Level 20
Joined
Jul 12, 2010
Messages
1,719
Alright everybody so latest patch changed something in the UI and it caused my previously hidden command buttons to show again:
JASS:
    // Hide Command Buttons

    call BlzFrameSetSize(BlzGetFrameByName("CommandButton_0", 0), 0.0, 0.0)
    call BlzFrameSetSize(BlzGetFrameByName("CommandButton_1", 0), 0.0, 0.0)
    call BlzFrameSetSize(BlzGetFrameByName("CommandButton_2", 0), 0.0, 0.0)
    call BlzFrameSetSize(BlzGetFrameByName("CommandButton_3", 0), 0.0, 0.0)
    call BlzFrameSetSize(BlzGetFrameByName("CommandButton_4", 0), 0.0, 0.0)
This worked fine before the 1.33 update, now it seems that BlzFrameSetSize doesn't work for any of the command buttons.

I can still move the command buttons out of the map using BlzFrameSetAbsPoint:
JASS:
call BlzFrameSetAbsPoint(BlzGetFrameByName("CommandButton_0", 0), FRAMEPOINT_TOPLEFT, 0.0, 0.0)
BUT this doesn't solve my other problem, I need to be able to resize command buttons 5-11 for my UI design.

Warcraft_III_ZtDkF5Wt7Z.jpg

@Tasyen
 
Level 24
Joined
Feb 28, 2007
Messages
3,479
I am using the below successfully (both in 1.32 and 1.33):
JASS:
call BlzFrameSetVisible(BlzGetFrameByName("CommandButton_0", 0), false)
call BlzFrameSetVisible(BlzGetFrameByName("CommandButton_1", 0), false)
call BlzFrameSetVisible(BlzGetFrameByName("CommandButton_2", 0), false)
call BlzFrameSetVisible(BlzGetFrameByName("CommandButton_4", 0), false)
 
Status
Not open for further replies.
Top