Problem with Custom icons

Level 1
Joined
May 20, 2021
Messages
2
Hello.

My problem is that when I import a custom icon and press F10, the icon turns green, as if it has no texture, the same thing happens when a hero dies with a custom icon, the icon turns green.
I would like you to help me with this problem thanks
 
Level 9
Joined
Jun 11, 2004
Messages
111
Hello,

Every icon needs to have a matching "DISBTN" or disabled version. Take a look here and scroll down to the "Contents" section. You will see that this icon pack includes a BTN and DISBTN, or enabled and disabled version.

When you import both icons into your map, you will need to set their paths as follows:
Enabled button: ReplaceableTextures\CommandButtons\BTNMyButtonName.blp
Disabled button: ReplaceableTextures\CommandButtonsDisabled\DISBTNMyButtonName.blp

Using these paths the game will know that the disabled button is meant to be the disabled version of the enabled button.

For passive buttons, this is the ususal path:
Enabled button: ReplaceableTextures\PassiveButtons\PASBTNMyButtonName.blp
Disabled button: ReplaceableTextures\CommandButtonsDisabled\DISPASBTNMyButtonName.blp

Hope that helps,
Ogre_Bob
 
Level 1
Joined
May 20, 2021
Messages
2
Hello,

Every icon needs to have a matching "DISBTN" or disabled version. Take a look here and scroll down to the "Contents" section. You will see that this icon pack includes a BTN and DISBTN, or enabled and disabled version.

When you import both icons into your map, you will need to set their paths as follows:
Enabled button: ReplaceableTextures\CommandButtons\BTNMyButtonName.blp
Disabled button: ReplaceableTextures\CommandButtonsDisabled\DISBTNMyButtonName.blp

Using these paths the game will know that the disabled button is meant to be the disabled version of the enabled button.

For passive buttons, this is the ususal path:
Enabled button: ReplaceableTextures\PassiveButtons\PASBTNMyButtonName.blp
Disabled button: ReplaceableTextures\CommandButtonsDisabled\DISPASBTNMyButtonName.blp

Hope that helps,
If I have the BTN and the DISBTN but I really don't know how to integrate them, but I have them with different names, do BTN and DISBTN have to be mandatory in the name?
 
Last edited:
Level 7
Joined
Jan 30, 2020
Messages
202
No, they have a mandatory path.
I.E. you need to double-click them in the import menu and change their path.
BTN-one and replace "wc3importdefault\" to "ReplaceableTextures\CommandButtons\"
DISBTN and replace "wc3importdefault\" to "ReplaceableTextures\CommandButtonsDisabled\"

The stuff AFTER tthe last \ isn't as important (but keep the BTN!)
 
Level 4
Joined
Mar 16, 2008
Messages
49
Here's an example
1623454380302.png
 
Top