Frictional Games Forum (read-only)

Full Version: Item icon not displaying properly while highlighted
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I made an icon for an item I have in my custom story, and the when I highlight the item in my inventory it looks like this:

Spoiler below!
[Image: yYsj32i.jpg]

As you can see, it has those weird white edges which is strange because the image is transparent and saved in .tga. What's even more strange, is that it's only displayed improperly while highlighted - when the item sits idle without being marked over with the cursor, it works without a flaw, there are no edges around it. I used paint.net for creating this icon.
If I remember correctly, you gotta save it as 24BPP.

Correction: as 32bpp.
This is normal if you save it as for example .png. You don't save it as a transparent .tga file, you save it as a .tga file with an alpha channel. The lack of this alpha channel will cause this.

I actually wrote something about this on the wiki once.
https://wiki.frictionalgames.com/hpl2/th...ting_icons
Cheers you guys, I'll try to get it working. If not, I'll update the post!
I remember having the same problem, but I don't remember how I solved it. It was something wrong with the alpha channel of the picture though.

If you can't get it to work, shoot me up. What I was making is a shovel thumbnail, so I can lend it to you.
It's not rusty though ;]