Author Topic: Item Icon not working  (Read 1088 times)

I have a item with the following variable:
iconName = "./icon.png";

And in the same directory as the script containing the item, I have a icon.png (which is attached).
But when I pickup my item, the icon doesn't appear, and it's just a plain normal one with a "L" on it (item uiName starts with a L).

64x64 not 96x96? Unless icons are 96x96 and I've just missed something.

Hmm? Gonna try making it 64x64 and report back.
EDIT: Changing it to 64x64 didn't work.
« Last Edit: February 14, 2011, 09:00:12 AM by Bauklotz »

I see my Light Disc there. =) MSN me and I'll fix- oh wait you're already in the taskbar. Hi.

64x64 not 96x96? Unless icons are 96x96 and I've just missed something.
Item icons are 96x96.

I see my Light Disc there. =) MSN me and I'll fix- oh wait you're already in the taskbar. Hi.
Item icons are 96x96.
Because the default gun is 64x64, it's automatically 96x96? Nope. The default gun is 64x, plus my add-ons have icons that work, and they are 64x.

Edit: You might have to make it: iconName = "./Icon_Lightdisk";

for it to work. Not sure that it will work, but that is how I did my icons, and they always worked.
« Last Edit: February 14, 2011, 10:16:35 AM by TheKhoz »

Are you suppose to put .png in there?

Quote from:  "Weapon_Gun Script"
   iconName = "./icon_gun";
Quote from:  "Weapon_Sword Script"
   iconName = "./icon_sword";
« Last Edit: February 14, 2011, 10:59:39 AM by Blastdown »

Because the default gun is 64x64, it's automatically 96x96? Nope. The default gun is 64x, plus my add-ons have icons that work, and they are 64x.
Oh look at that. I checked mine off base\client\ui\itemIcons. But it worked with 96x96 icon when I tested it anyways.

I see my Light Disc there. =) MSN me and I'll fix- oh wait you're already in the taskbar. Hi.
Item icons are 96x96.
has this light disc been released yet?