Frictional Games Forum (read-only)
[ART] Item icon not displaying properly while highlighted - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [ART] Item icon not displaying properly while highlighted (/thread-50515.html)



Item icon not displaying properly while highlighted - Slanderous - 06-28-2016

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.


RE: Item icon not displaying properly while highlighted - Daemian - 06-28-2016

If I remember correctly, you gotta save it as 24BPP.

Correction: as 32bpp.


RE: Item icon not displaying properly while highlighted - Mudbill - 06-29-2016

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/third_party_tools/2d/photoshop#creating_icons


RE: Item icon not displaying properly while highlighted - Slanderous - 06-29-2016

Cheers you guys, I'll try to get it working. If not, I'll update the post!


RE: Item icon not displaying properly while highlighted - Darkfire - 06-29-2016

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 ;]