#1 25-08-2010 17:45

Kashan
Registered: 25-08-2010
Posts: 4

InterfaceEditor Color Problem

Hello guys.

I have a problem with InterfaceEditor.

I want to change the color from Red to Blue.

If i add a new hex color code in the .ini file, the healthbar is away.

How can i change this colors?

Thank you. smile

Offline

#2 26-08-2010 13:27

Silent
Registered: 08-05-2010
Posts: 29

Re: InterfaceEditor Color Problem

Are you sure that you've followed this color format?

HealthBar.Color=$FF1D19B4

Color is in ARGB format, means that in that example:
A == 0xFF
R == 0x1D
G == 0x19
B == 0xB4

That example will give you blue health bar.

Offline

#3 28-08-2010 15:04

Kashan
Registered: 25-08-2010
Posts: 4

Re: InterfaceEditor Color Problem

Yes, but it dont worked.

Do you have a list with codes that works?

Offline

#4 29-08-2010 09:53

Alien
Registered: 12-10-2008
Posts: 564

Re: InterfaceEditor Color Problem

SilentPL wrote:

Are you sure that you've followed this color format?

HealthBar.Color=$FF1D19B4

Color is in ARGB format, means that in that example:
A == 0xFF
R == 0x1D
G == 0x19
B == 0xB4

That example will give you blue health bar.

I think, it is RGBA, little endian.

A - 0xFF
B - 0x1D
G - 0x19
R - 0xB4

Offline

#5 29-08-2010 10:26

Kashan
Registered: 25-08-2010
Posts: 4

Re: InterfaceEditor Color Problem

Hmm,

I tested the code with FFFFFFFF and the healthbar was withe. Thats correct.

Than I used 000000FF and it was lightblue o.O

Offline

#6 29-08-2010 10:31

3Doomer
From: КаZан
Registered: 14-05-2008
Posts: 659
Website

Re: InterfaceEditor Color Problem

A   R  G  B
00 00 00 FF


GIMS developer

Offline

#7 29-08-2010 11:01

Kashan
Registered: 25-08-2010
Posts: 4

Re: InterfaceEditor Color Problem

Ahh damn i'm so stupid, i thoug it was RGBA lol

ok thanks for your help guys smile

edit: next problem, why is the healtbar red with the code FF0000FF? i thoug it is blue o.o

edit 2:

Alien wrote:
SilentPL wrote:

Are you sure that you've followed this color format?

HealthBar.Color=$FF1D19B4

Color is in ARGB format, means that in that example:
A == 0xFF
R == 0x1D
G == 0x19
B == 0xB4

That example will give you blue health bar.

I think, it is RGBA, little endian.

A - 0xFF
B - 0x1D
G - 0x19
R - 0xB4

ok i tested all codes:

FF0000FF is red

FFFF0000 is blue

FF00FF00 is green

so the syntax is: A B G R so it is the mirrored RGBA

ok guys thank you for you tipps smile

Last edited by Kashan (29-08-2010 14:40)

Offline

Board footer

Powered by FluxBB