Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline king  
#1 Posted : Thursday, October 30, 2008 9:39:18 AM(UTC)
king
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
File Attachment(s):
Buttonimage+MappedimageTEST.zip (12kb) downloaded 13 time(s).
Sponsor
Offline CommieDog  
#2 Posted : Thursday, October 30, 2008 11:03:52 AM(UTC)
CommieDog
Administrator
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffRed Alert Staff: Red Alert Staff MemberAll Stars Staff: All Stars Staff
Joined: 8/3/2003(UTC)
Posts: 3,086
United States

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.
UserPostedImage
CommieDog: Because someone has to do your dirty work for you
Offline king  
#3 Posted : Thursday, October 30, 2008 12:21:22 PM(UTC)
king
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
Offline Me Myself and Pi  
#4 Posted : Friday, October 31, 2008 12:41:09 PM(UTC)
Me Myself and Pi
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.
Offline king  
#5 Posted : Friday, October 31, 2008 1:06:47 PM(UTC)
king
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
Offline Me Myself and Pi  
#6 Posted : Sunday, November 2, 2008 7:48:01 PM(UTC)
Me Myself and Pi
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):
sshot001.jpg
Offline king  
#7 Posted : Monday, November 3, 2008 7:14:51 AM(UTC)
king
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.
Offline randomperson  
#8 Posted : Tuesday, November 4, 2008 6:09:09 AM(UTC)
randomperson
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
UserPostedImage
Offline Me Myself and Pi  
#9 Posted : Tuesday, November 4, 2008 7:20:55 PM(UTC)
Me Myself and Pi
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.