• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[JASS] Hide Command Buttons 0-4

Not open for further replies.
Level 19
Jul 12, 2010
Alright everybody so latest patch changed something in the UI and it caused my previously hidden command buttons to show again:
    // 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:
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.


Level 24
Feb 28, 2007
I am using the below successfully (both in 1.32 and 1.33):
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)
Not open for further replies.