- Joined
- May 7, 2009
- Messages
- 228
Suppose I have a bunch of abilities that all have the default icon spot of 0,0 (top left corner). In game, the order they appear in is the order they were added to the unit.
Now the question: How do I change this order during the game? I thought that if I removed the abilities and added them back in the desired order, I could change it that way.
However, this doesn't work. After a great deal of debugging, I have come to the conclusion that Warcraft always goes by the order in which each ability was added the first time.
So what can I do? How do I change the order?
Basically, I want my abilities to always appear in alphabetical order. So I guess I don't need to change the order per se. The problem stems from adding new abilities to the unit later in the game.
For example, suppose, the unit gets A, B, and D at the start. If I later give it C, they will appear in the order A, B, D, C. Even if I remove D before adding C, and then add it in afterwards, it will still appear in this order.
Now I could add A,B,C,D,... at the start and immediately remove them, ensuring that later additions will always appear in order. However, my map has 102 abilities, and doing so tends to create lag.
Any ideas?
Now the question: How do I change this order during the game? I thought that if I removed the abilities and added them back in the desired order, I could change it that way.
However, this doesn't work. After a great deal of debugging, I have come to the conclusion that Warcraft always goes by the order in which each ability was added the first time.
So what can I do? How do I change the order?
Basically, I want my abilities to always appear in alphabetical order. So I guess I don't need to change the order per se. The problem stems from adding new abilities to the unit later in the game.
For example, suppose, the unit gets A, B, and D at the start. If I later give it C, they will appear in the order A, B, D, C. Even if I remove D before adding C, and then add it in afterwards, it will still appear in this order.
Now I could add A,B,C,D,... at the start and immediately remove them, ensuring that later additions will always appear in order. However, my map has 102 abilities, and doing so tends to create lag.

Any ideas?