How to define new colors?

Moderators: Pandora Moderators, Slitherine Core

Post Reply
blackarchon
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 45
Joined: Sat Oct 12, 2013 2:25 pm
Location: Germany

How to define new colors?

Post by blackarchon »

As I can see in the file pandora.exe (1.1.2), there are currently 15 colors defined. How can I use more colors in the XML code part? For example, how can I get another type of blue for a faction color?
SephiRok
Proxy Studios
Proxy Studios
Posts: 1024
Joined: Thu Jul 19, 2012 10:19 am
Contact:

Re: How to define new colors?

Post by SephiRok »

You can't, but you can use "rgba(1.0, 0.5, 0.75, 1.0)" syntax instead.
Rok Breulj
Designer and Programmer
Proxy Studios
blackarchon
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 45
Joined: Sat Oct 12, 2013 2:25 pm
Location: Germany

Re: How to define new colors?

Post by blackarchon »

Thanks for the hint, but there seems to be something wrong. Regardless if I use "rgba(0.5, 0.0, 0.0, 1.0)", "rgba(0.5, 0.5, 0.5, 1.0)" or "rgba(0.5, 1.0, 1.0, 1.0)" - my borders are always on a dark red color. Appearantly only the red value works, but the blue and green ones are ignored. Can you confirm that? The game version is 1.1.2.
kidpython
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 25
Joined: Fri Jan 10, 2014 6:04 pm

Re: How to define new colors?

Post by kidpython »

blackarchon wrote:Thanks for the hint, but there seems to be something wrong. Regardless if I use "rgba(0.5, 0.0, 0.0, 1.0)", "rgba(0.5, 0.5, 0.5, 1.0)" or "rgba(0.5, 1.0, 1.0, 1.0)" - my borders are always on a dark red color. Appearantly only the red value works, but the blue and green ones are ignored. Can you confirm that? The game version is 1.1.2.
If you figure out how to change faction colors I am very interested in the details. The colors for the two blue factions are too similar.
SephiRok
Proxy Studios
Proxy Studios
Posts: 1024
Joined: Thu Jul 19, 2012 10:19 am
Contact:

Re: How to define new colors?

Post by SephiRok »

Sorry, it's without the commas between values.

I.e. "rgba(0.5 1.0 1.0 1.0)".
Rok Breulj
Designer and Programmer
Proxy Studios
blackarchon
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 45
Joined: Sat Oct 12, 2013 2:25 pm
Location: Germany

Re: How to define new colors?

Post by blackarchon »

Thank you, this works fine! :)
Post Reply

Return to “Pandora : Tech Support”