• 🏆 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!

Hide buttons

Status
Not open for further replies.
Please ignore this thread, I already fixed all of it :D.

Question #1

Hey guys, I just want to ask how do I remove this part? I thought that was part of the minimap but I already managed to remove the minimap but the buttons is still there.

upload_2019-9-8_19-20-39.png


---
Question #2

Hello guys. I'm trying to make command buttons disappear with the new natives. Currently I don't know what should I do to make command buttons completely disappear from the view. I read that it will keep reappearing everytime you command a unit.

• I have to put wait because it doesn't work when the command buttons reappear and you make it disappear at the same time.

  • Untitled Trigger 001
    • Events
      • Unit - A unit owned by Player 1 (Red) Is issued an order targeting an object
      • Unit - A unit owned by Player 1 (Red) Is issued an order targeting a point
      • Unit - A unit owned by Player 1 (Red) Is issued an order with no target
    • Conditions
    • Actions
      • Wait 0.01 seconds
      • Set Frame_CountTemp = 0
      • For each (Integer A) from 0 to 11, do (Actions)
        • Loop - Actions
          • Custom script: call BlzFrameSetVisible(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON,udg_Frame_CountTemp), false)
          • Set Frame_CountTemp = (Frame_CountTemp + 1)
  • Untitled Trigger 001
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Set Frame_CountTemp = 0
      • For each (Integer A) from 0 to 11, do (Actions)
        • Loop - Actions
          • Custom script: call BlzFrameSetVisible(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON,udg_Frame_CountTemp), false)
          • Set Frame_CountTemp = (Frame_CountTemp + 1)

Edit: I fixed it by doing this instead, hopefully this is not a bad practice.

  • For each (Integer A) from 0 to 11, do (Actions)
    • Loop - Actions
      • Custom script: call BlzFrameSetAbsPoint(BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON,udg_Frame_CountTemp), FRAMEPOINT_RIGHT, 100, 100)
      • Set Frame_CountTemp = (Frame_CountTemp + 1)
 

Attachments

  • WC3ScrnShot_090819_185746_03.png
    WC3ScrnShot_090819_185746_03.png
    1.9 MB · Views: 50
  • WC3ScrnShot_090819_185903_02.png
    WC3ScrnShot_090819_185903_02.png
    2 MB · Views: 70
  • upload_2019-9-8_19-20-19.png
    upload_2019-9-8_19-20-19.png
    1.7 MB · Views: 52
Last edited:
Status
Not open for further replies.
Top