Author Topic: Problems with UI  (Read 1283 times)

Offline Paranoia

Problems with UI
« on: June 28, 2013, 12:19:22 PM »
I'm having several problems with my UI for the AI pack which I am making, and I don't seem to know what the problem is with this:



I have resized the logo to 512px by 128px and have changed the .gib file accordingly, I also saved the logo in both GIMP and Paint.Net and it still doesn't work. Here's a sample form the .gib:

Code: [Select]
[Group]
ReportedPos 0.5 1 0.1 1
Alignment 10
AspectSetting 0
AspectRatio 0
PassMouse true
Notes
Name logo grp
ID -1
Position 0.5 1 0.1 1
Size 512 0 128 0
Visible true
ChildOrder 3
ClipMode 1
NumChildren 1
[Image]
_Tiling false
_Filename \mainmenu\ra2_logo.tga
_BufferWidth 0 0 0 0
_Size 512 0 128 0
_Alpha true
_Filtering 0
_ForeColor 1 1 1 1
_Name
_Position 0 0 0 0
0.15625 0.625 0.65625 0.699219
Name New [Image]
ID -1
Position 0 0 0 0
Size 512 0 128 0
Visible true
ChildOrder 7
ClipMode 0

Offline NFX

  • *
  • Posts: 14035
  • Rep: 11
  • SliSliSliSliSliSliSliSli(0)
    • AwesomeFish921
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: nfxtreme0992
Re: Problems with UI
« Reply #1 on: June 28, 2013, 02:14:33 PM »
I don't know if you can resize things, or if you can you need to do more than I know how to. I think you're unable to change the file size of it, though, so if it's something like 48.0KB, then the file needs to stay 48.0KB, otherwise the game won't be able to read it correctly, and it comes up looking like that. I've encountered this with decals and the Octagon Arena reskin I was doing recently, as well as the UI I've been messing around with, so that'll probably be what's wrong with it.
Co-creator of The RA2 Randomiser



Offline Paranoia

Re: Problems with UI
« Reply #2 on: June 29, 2013, 12:06:45 AM »
I don't know if you can resize things, or if you can you need to do more than I know how to. I think you're unable to change the file size of it, though, so if it's something like 48.0KB, then the file needs to stay 48.0KB, otherwise the game won't be able to read it correctly, and it comes up looking like that. I've encountered this with decals and the Octagon Arena reskin I was doing recently, as well as the UI I've been messing around with, so that'll probably be what's wrong with it.

I guess that is the problem, since I reset the image and it's now fine.

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: Problems with UI
« Reply #3 on: June 29, 2013, 07:37:57 PM »
IIRC, you have to turn off RLE Compression when you save the TGA. Similarly, BMP files need to be formatted as 24 bit instead of 32 bit.

The file size has nothing to do with having a corrupted image in RA2.