• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Position of cancel button

Status
Not open for further replies.
Level 7
Joined
Jul 4, 2007
Messages
249
Hello.
I have a problem with the position of the cancel button on a specific barrack type.

Every unit has the correct position exactly as shown in the pictures on the left side. However, when I start building a unit on the bottom barrack type one of the units are overridden by the cancel button instead of the defend ability like in the first barrack type. Any ideas what could cause this?

1616962397772.png
>>>
1616962328847.png


1616962363335.png
>>>
1616962344288.png
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
Probably has something to do with their button positions. Try using the same button positions that the top barracks uses for the bottom barracks. So the marine and rifleman have the same x/y positions, arthas and the priest are the same, etc...

Also, you can edit the CommandFunc file to hide/move around the buttons for Stop, Cancel, Rally, and many more. I'll attach one that I've already edited which hides Move and Patrol and maybe some other buttons.

When you import the file into your map you need to change it's file name to: Units\CommandFunc.txt

You give the button an X/Y of 0, -11 to hide it. Otherwise, you use the standard 0 to 3 format to move it around.
 

Attachments

  • CommandFunc.txt
    1.1 KB · Views: 21
Last edited:
Level 7
Joined
Jul 4, 2007
Messages
249
Try using the same button positions

You give the button an X/Y of 0, -11 to hide it. Otherwise, you use the standard 0 to 3 format to move it around.
Yes I have that's what I meant with correct position. I went through the position of each and every unit thoroughly several times.

Also, you can edit the CommandFunc file to hide/move around the buttons for Stop, Cancel, Rally, and many more. I'll attach one that I've already edited which hides Move and Patrol and maybe some other buttons.

When you import the file into your map you need to change it's file name to: Units\CommandFunc.txt

You give the button an X/Y of 0, -11 to hide it. Otherwise, you use the standard 0 to 3 format to move it around.
Thanks, unfortunately it doesn't solve the problem because it is already set to the correct position by standard (3,2).

Isn't it really odd that it works for one and not for the other?
 
Level 7
Joined
Jul 4, 2007
Messages
249
Yes, but you can hide it is what I'm suggesting. You don't NEED a cancel button, I think 99% of players press Escape instead of manually mousing over and clicking it.
True, but I'd rather keep it if possible. Might be the only solution though.
 
Status
Not open for further replies.
Top