Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Texture, Model & Animation Help Item icon not displaying properly while highlighted
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#1
Item icon not displaying properly while highlighted

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.
06-28-2016, 08:00 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#2
RE: Item icon not displaying properly while highlighted

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

Correction: as 32bpp.

(This post was last modified: 06-29-2016, 12:24 AM by Daemian.)
06-28-2016, 11:40 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#3
RE: Item icon not displaying properly while highlighted

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

06-29-2016, 06:25 AM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#4
RE: Item icon not displaying properly while highlighted

Cheers you guys, I'll try to get it working. If not, I'll update the post!
06-29-2016, 02:04 PM
Find
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#5
RE: Item icon not displaying properly while highlighted

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

06-29-2016, 05:11 PM
Find




Users browsing this thread: 1 Guest(s)