| 12-26-2003, 11:58 AM | #1 |
I have some buttons and if i dont make some disabled buttons, they get green if they are disabled ! is there a way to replace the green field with an disabled button which will be used for all *not found* disabled buttons ? |
| 12-26-2003, 12:50 PM | #2 |
well... you could just you know, make disabled buttons as it only takes about 3 seconds... but the problem your saying is that you get a green square, you must have a disabled button otherwise this will never go away. |
| 12-26-2003, 01:07 PM | #3 |
i would have to make disabled buttons for more than 40 buttons, but then my map would be greater than 4 MB so i have to use one disabled button for all ! the other way is to import the disabled button 1x and give all buttons this one importet disabled button, is that possible ??? |
| 12-26-2003, 01:29 PM | #4 |
as far as i know, the green block does not exist as a file, and therefor you cannot just replace it. |
| 12-26-2003, 01:33 PM | #5 |
if it is so, i must find a way to give all importet buttons the same disabled button file, how is that possible to do ? |
| 12-26-2003, 01:42 PM | #6 |
make 1 file, and copy the file as many times as you need, then rename them all and import. Blizzard designed it so every button has a DIS button in the disabled directory |
| 12-26-2003, 01:44 PM | #7 |
I made a special icon with a white glow and a black background, I imported as ReplaceableTextures\CommandButtonsDisabled\disicon.blp then for every icon I imported I used : XXXX\icon.blp being XXXX the name of the icon file |
| 12-26-2003, 02:09 PM | #8 |
hm, just disicon.blp will cover all? very good, has no idea that existed |
| 12-26-2003, 02:56 PM | #9 |
The normal way to do things is this. Create an image file for a button and put it in your map, for example as MyIcons\CoolSpell.tga. Then create an image file for the disabled button and put it in ReplaceableTextures\CommandButtonsDisabled\DISCoolSpell.tga. As you can see, war3 only uses the filename of the icon (CoolSpell.tga) to look up the disabled image file. You can put more than 1 icon with the same filename in your map, if you use different paths, like this: MyIcons\CoolSpell\StupidFilename.tga MyIcons\DumbSpell\StupidFilename.tga war3 will now use ReplaceableTextures\CommandButtonsDisabled\DISStupidFilename.tga for both CoolSpell and DumbSpell, because the filename is the same. Note: I used code tags because the forum messed up the text. |
| 12-26-2003, 06:31 PM | #10 |
jmoritz, you should get War3Viewer or Image Extractor II and convert those .tga's to .blp's. Although .tga's are accepted, in general they are larger than .blp's and are thus unnecessarily taking up file size. DaKaN, Lord Vexorian isn't saying that the disicon.blp is a file that is used for all Disabled Icons, he's saying that he abused :Heh: the file parsing system that Blizzard uses in the WE, more or less how jmoritz explained it. Immortal[IDC], firstly, if just DISbuttons is going to bring your map over 4mb, you really need to do whatever you can to bring the map size down. Personally I limit my map size to less than 1mb by any means necessary, although many will tell you that even 1mb is too large to ever expect anyone to download on b.net. If you don't follow Vex's method, an alternative is to import one file 40 times and rename it to the appropriate DISbutton name for each of your icons. That does increase space (although I rarely have an imported button take up more than 5k in a map, which for you would be a net result of only 200k for DISbuttons). However, if you make your universal DISbutton a completely black square, it will be substantially smaller, probably showing in the WE Import Editor as only 1k, which means ~40k of imported files for DISbuttons, which is totally reasonable. Unfortunately, re-asking your question when someone tells you that they don't think it's possible will not increase your odds of "making it so". At any rate, good luck with your map. And thanks, Lord Vexorian, for your parse-abuse system. It'll come in handy. |
| 12-26-2003, 06:32 PM | #11 |
ah ok i get it now :) |
| 12-26-2003, 09:47 PM | #12 |
i belive hes asking.. if for all the custom icons he has.. he just wants 1 disable custom icon for every single one for them.. and no thats not possible... there has to be a DIS button for each custom icon in there or u get a green box. |
| 12-26-2003, 09:59 PM | #13 |
.tga's are sometimes twice as big as a .blp, i found one that was TEN, yes, 10 times the amount of kb, its was bout 1100 kb on .tga, then i resized it down to bout 250kb .blp, so it wont take up THAT much space, and no, no one button, the paths you can find somewhere on this forum, and uh... read some of my threads about icons. |
| 12-27-2003, 07:11 AM | #14 |
I attached a photoshop document with the layers for you to add to your icon to make them look disabled. P.S.: It is not done by me, it is part of one of the icon package i downloaded from WC3C download section. |
| 12-27-2003, 10:12 AM | #15 |
If your map is multiplayer, don't bother, because Warcraft III will only look for DISBTNs to replace the BTNs on the screen when someone saves a multiplayer save, or pauses the game, which is very uncommon unless some player wants to mess up a game. |
