• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Icon turns Green when selecting other Units ?

Status
Not open for further replies.
Level 5
Joined
May 12, 2013
Messages
70
Hey there. I've encountered another problem in my map. Normally, all the Icons are fine, but in some conditions, the Imported icons turn green. When I select the Shop from far away, like when my hero isn't near the shop, The Imported Icons appear green, but when i Go near it, they become Normal. Again then, when I have selected my Hero the icons appear fine, but when I Select someone else's hero, they suddenly show a Green Box. I've read at many places that green box shows that Icon isn't Found, but if the Icon isn't found, why does it show me the Icon when I'm near the shop or when I select my own Hero. Its really confusing.
Awaiting answers.
 
Level 12
Joined
Nov 13, 2010
Messages
254
also you need to edit the name of the ones you import
ReplaceableTextures\CommandButtons\BTN ( afther btn the name of the icon )
the same go`s with Disbtn
ReplaceableTextures\CommandButtonsDisabled ( afther this the name of the Disabled one .

there can loot like this

ReplaceableTextures\CommandButtons\BTNTreeSparrow.blp
ReplaceableTextures\CommandButtonsDisabled\DISBTNTreeSparrow.blp
ReplaceableTextures\CommandButtons\ATCTreeSparrow.blp
ReplaceableTextures\CommandButtonsDisabled\DISATCTreeSparrow.blp
ReplaceableTextures\CommandButtons\PASTreeSparrow.blp
ReplaceableTextures\CommandButtonsDisabled\DISPASTreeSparrow.blp

this are for btn / Disbtn and atct / Disatct and pas / dispas
 
Level 5
Joined
May 12, 2013
Messages
70
Level 14
Joined
Nov 17, 2010
Messages
1,266
Most icons have a regular and a disabled texture (along with a few others occasionally) You need to import both of them and then set the custom path of it like polardude showed.

So if your textures were called Armlet.blp and DisabledArmlet.blp you would have to set the path to ReplaceableTextures\CommandButtonsDisabled\DISBTNDisabledArmlet.blp

I think that is correct, if not someone please correct it
 
Level 7
Joined
Sep 9, 2007
Messages
253
Every button needs a disabled version as well (as the others have pointed out).


Each Icon texture needs to be paired up with it's "Disabled" version. this extra texture is the same icon but the border is removed and it is darkened.

You know that when you are far away from a shop the icon appears to be darkened/disabled because you are unable to buy that item from so far away. This different appearance is in fact a different texture, it's a different graphic. If you do not supply this graphic to go with your Icon then the game doesn't know what to do so it just shows a green icon.
 
Level 5
Joined
May 12, 2013
Messages
70
Every button needs a disabled version as well (as the others have pointed out).


Each Icon texture needs to be paired up with it's "Disabled" version. this extra texture is the same icon but the border is removed and it is darkened.

You know that when you are far away from a shop the icon appears to be darkened/disabled because you are unable to buy that item from so far away. This different appearance is in fact a different texture, it's a different graphic. If you do not supply this graphic to go with your Icon then the game doesn't know what to do so it just shows a green icon.

Ok Thankyou. I'll try doing what Veritas 117 said.
 
Status
Not open for further replies.
Top