Custom unit icons
Moderator: Moderators
-
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
On the big units and icon distance:
I will make it possible to set the icon distance in the mod, I just don't know what the best option will be. But don't worry, this will make it into the next release.
On the non-LOS icons:
Enemy units in radar range and outside LOS will probably show the default icon (see http://taspring.clan-sy.com/wiki/CustomUnitIcons for more info on the default icon). I still have to code this though.
On where the image should go in the mod:
You can place them anywhere you like, just don't forget to add appropriate relative dirs before their bitmap tag. In the example I've given in the wiki the images are placed in a /icons directory.
I will make it possible to set the icon distance in the mod, I just don't know what the best option will be. But don't worry, this will make it into the next release.
On the non-LOS icons:
Enemy units in radar range and outside LOS will probably show the default icon (see http://taspring.clan-sy.com/wiki/CustomUnitIcons for more info on the default icon). I still have to code this though.
On where the image should go in the mod:
You can place them anywhere you like, just don't forget to add appropriate relative dirs before their bitmap tag. In the example I've given in the wiki the images are placed in a /icons directory.
- EXit_W0und
- Posts: 164
- Joined: 22 Dec 2005, 01:33
As an addition do you think it would be a good idea to show a short list of the types of units currently selected with their volume percentage?
E.g you select a group of 20 peewees and 10 hammers itll show :
PeeWee 66%
Hammer 33%
This would be good for when you're moving troops across large maps frequently and want to see everything at once when making commands.
It should probably have the option to switch it off if people don't want it cluttering the GUI.
E.g you select a group of 20 peewees and 10 hammers itll show :
PeeWee 66%
Hammer 33%
This would be good for when you're moving troops across large maps frequently and want to see everything at once when making commands.
It should probably have the option to switch it off if people don't want it cluttering the GUI.
I was just thinking unit size might need to be a factor in loddiong... for example. those commader units smoth is making are freaking huge, and you'll be able to see what they are from any zoom distace... though this could still be handled by unit specific iconifying instead of distance based iconifying... and then have the modder specifying the distance in the units fbi.
The units are white.AF wrote:What happens when you select a unit while in this mode? Does it show up any different? ideally a square box with gaps at the centre top and bottom should show up around the blip/image or the image change to something defined in the tdf
This would be set by the modder. if someone changes a mod they get a sync error.mongus wrote:is it possible to malicious user to assign, lets say a special icon/flag for commander, so he can exactly know where yours is just by looking at minimap?

So... no.
-
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
Ok, I've made some changes to the icon handling:
* the distance at which the icons show up is controllable per icon type.
* radar blips are read from the default icon type (so modders can change the radar blip).
I've updated the Wiki page ( http://taspring.clan-sy.com/wiki/CustomUnitIcons ), and released a test .exe, which you can find in the first post of this topic.
* the distance at which the icons show up is controllable per icon type.
* radar blips are read from the default icon type (so modders can change the radar blip).
I've updated the Wiki page ( http://taspring.clan-sy.com/wiki/CustomUnitIcons ), and released a test .exe, which you can find in the first post of this topic.
-
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
-
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
-
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
-
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
I've released a set of example icons. You can download them here:
http://teake.home.fmf.nl/temp/unit_icons.zip
They'll look something like this:

http://teake.home.fmf.nl/temp/unit_icons.zip
They'll look something like this:

Re: Custom unit icons
Fixed.colorblind wrote:In the next release this feature will kick ass
just checking
Just checking if the sizes of icons will not change depending on how far from 0 height the unit is
how it should work is:
1) if some units are high in the air or on top of big mountain their icon size shouldn't change.
2) As soon as the most far unit will get zoomed far enough to turn into icon, all other units should turn into icons (of same size)
If it isn't like this, can you implement this at least as an option?
P.S. Also maybe a possibility to select unit when it's actually smaller than icon even when you click on the edge o the icon. That would help for other strategic options like when you click (or ctrl-click) on icon it will select the whole group this units belings too, so you can command groups of icons; Add drawable and draggable command ques for those groups (which also don't change size in icon view) and you'll have whole theater of iconic war
And great work, Colorblind
how it should work is:
1) if some units are high in the air or on top of big mountain their icon size shouldn't change.
2) As soon as the most far unit will get zoomed far enough to turn into icon, all other units should turn into icons (of same size)
If it isn't like this, can you implement this at least as an option?
P.S. Also maybe a possibility to select unit when it's actually smaller than icon even when you click on the edge o the icon. That would help for other strategic options like when you click (or ctrl-click) on icon it will select the whole group this units belings too, so you can command groups of icons; Add drawable and draggable command ques for those groups (which also don't change size in icon view) and you'll have whole theater of iconic war

And great work, Colorblind
