This might be more related to the galaxy department, but anyways:
Whenever a player gets a hero unit, there is a hero icon created for that unit. These icons are basically the hero's portrait and life/shield/energy bar.
So far so good: Now I would really like to know
1. How and under which conditions a hero icon is created for a unit?
2. If a hero icon can be created for a unit manually using galaxy? (MAIN QUESTION)
In the layout files you can see that there are 7 slots for hero icons. Now, whenever a new hero is "detected" it is pushed on the stack of hero icons. This means that the first hero is in the hero layout slot 1, the second in slot 2, etc.
I would like to modify the function that does this.
I will however check the catalog solution you suggested, because if everything fails I can always just uncheck the hero flag on all heros and then set the flag again in the correct order.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
This might be more related to the galaxy department, but anyways:
Whenever a player gets a hero unit, there is a hero icon created for that unit. These icons are basically the hero's portrait and life/shield/energy bar.
So far so good: Now I would really like to know
1. How and under which conditions a hero icon is created for a unit?
2. If a hero icon can be created for a unit manually using galaxy? (MAIN QUESTION)
Any advice is appreciated!
Greetings
The hero icon is created for every unit using the "Hero"- flag.
You can try modifying the flags using catalog functions to create the icon on-the-fly. Might not work, though.
@Kueken531: Go
The Problem is this:
In the layout files you can see that there are 7 slots for hero icons. Now, whenever a new hero is "detected" it is pushed on the stack of hero icons. This means that the first hero is in the hero layout slot 1, the second in slot 2, etc.
I would like to modify the function that does this.
I will however check the catalog solution you suggested, because if everything fails I can always just uncheck the hero flag on all heros and then set the flag again in the correct order.