Custom Icons

Custom Icons

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Custom Icons

Post by Argh »

Just a quick note for game designers, to avoid the 1.5 hours of frustration I just went through :P

The code for IconTypes doesn't understand capital letters. This is a valid IconType:

Code: Select all

	[lordicon]
	{
		bitmap=icons/lordicon.tga;
		size=2;
		radiusadjust=1;
		distance=1;
	}
This is how it needs to get called in your Unit:

Code: Select all

iconType=lordicon;
And in the Icons folder, it needs to be "lordicon.tga".

Using capital letters resulted in borked behaviors, every time :P

Oh, and the image files need to be TGAs with 32-bit alpha channels. They can be whatever size you want, so long as they're square, but powers of 2 work best.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

No dds?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

I haven't gotten it to work yet. And I think that the icons are going into TextureAtlas anyhow, so it won't do any good.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I find that tags in TDFarser are always read in as lowercase, altho I didnt think it affected the values since description tags are parsed fine...
Post Reply

Return to “Engine”