• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[JASS] Hide Command Buttons 0-4

Status
Not open for further replies.
Level 20
Joined
Jul 12, 2010
Messages
1,720
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,480
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