Major Joined: 8/17/2008(UTC) Posts: 159 Location: DK
Was thanked: 1 time(s) in 1 post(s)
|
Hi everyone. I have added some button images to my units and specialpowers, but my problem is that some of the buttonimages get a annoying green edge around the image. The image is added in mapped image folder and have the right specs. Is there anything I can do to remove the green edge around the image? It is only ingame, not when I check the image in the art folder. Thanx
|
|
|
|
Administrator Joined: 8/3/2003(UTC) Posts: 3,086 Thanks: 445 times Was thanked: 186 time(s) in 130 post(s)
|
Is sounds like the image coordinates are wrong. Be sure that you have them set correctly. |
CommieDog: Because someone has to do your dirty work for you |
|
|
|
Major Joined: 8/17/2008(UTC) Posts: 159 Location: DK
Was thanked: 1 time(s) in 1 post(s)
|
I have in the 1 st post put the maaped image + the .tga file. Please tell me what I have done wrong?
Thanx
|
|
|
|
Colonel Joined: 8/22/2007(UTC) Posts: 867
Was thanked: 12 time(s) in 5 post(s)
|
What .tga file program are you using? Is it Tgatool3? It looks like you need to create an alpha channel. If that doesn't help, let me know & I'll look into it.
|
|
|
|
Major Joined: 8/17/2008(UTC) Posts: 159 Location: DK
Was thanked: 1 time(s) in 1 post(s)
|
No, I just use acdsee to find Images and convert to tga and then scale it and then mapping them. It worked fine with a clustermissile.tga and earthshaker.tga some superweapon buttonimages. The green edge is around -nukebig.tga. please help.
Thanx
|
|
|
|
Colonel Joined: 8/22/2007(UTC) Posts: 867
Was thanked: 12 time(s) in 5 post(s)
|
Okay, I just tried your code & your .tga file & it worked fine for me. I switched the power plant picture with yours & it turned out in the picture below. Here's how I had everything set up: 1) CommandButton.ini: Code:CommandButton Command_ConstructAmericaPowerPlant
Command = DOZER_CONSTRUCT
Object = AmericaPowerPlant
TextLabel = CONTROLBAR:ConstructAmericaPowerPlant
ButtonImage = Nukebig
ButtonBorderType = BUILD ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipUSABuildPowerPlant
End
2) SNControlBar512.ini: Code:MappedImage Nukebig
Texture = Nukebig.tga
TextureWidth = 77
TextureHeight = 57
Coords = Left:0 Top:0 Right:77 Bottom:57
Status = NONE
End
3) Data\English\Art\Textures\Nukebig.tga Edited by user Sunday, November 2, 2008 7:49:32 PM(UTC)
| Reason: Not specified Me Myself and Pi attached the following image(s):
|
|
|
|
Major Joined: 8/17/2008(UTC) Posts: 159 Location: DK
Was thanked: 1 time(s) in 1 post(s)
|
Yes I know, but my problem is that the green edge is when the image is used for a specialpower shortcut icon? Could you test it, and tell or show me if you see the green edge of the small icon. There is no green edges on the other icons in specialpower shortcuts.
Thanx.
|
|
|
|
Colonel Joined: 12/16/2006(UTC) Posts: 577 Location: United Kingdom
|
to me it sounds like the button border type. try commenting out ButtonBorderType = something under command button.ini for the command that you are using the button for or try changing it to a different colour by using a different tag |
|
|
|
|
Colonel Joined: 8/22/2007(UTC) Posts: 867
Was thanked: 12 time(s) in 5 post(s)
|
Well I just tried it in the shortcut buttons & the Generals Powers window, it looked fine. So CommieDog may be right, could you post your command button code?
|
|
|
|
Users browsing this topic |
Guest
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.