Changing Color

11/08/2014 18:54 raventh1984#1
Hi elitepvpers,

I am doing some optic changes. And what i want to do next is for the Elemental Bonus.

Atm its white so if we have for Example

Electric

The weapon is giving me in white
Electric +3
Critical Chance+3

However what i want is 2 diff colors
Example
Electric+3 must be yellow
Critical Chance+3 must be in an other color for now lets say red.

Now i can change the hole thing from white to an different color by using an different dwItemColor

But how can i do it for 2 things
I have taken an look into WndManager.cpp and come across this

Code:
dwItemColor[FIRST_TC].dwResistElectricity	= D3DCOLOR_XRGB( 255, 255, 255 );
The second
Code:
dwItemColor[SECOND_TC].dwResistElectricity	= D3DCOLOR_XRGB(  21,  55, 152 );
How do you call the SECOND_TC i cant find it in the source or i cant figure it out how.

Any help would be appreciated.

With kind regards.
11/09/2014 13:37 BinayFlyff#2
SECOND_TC is a Constant variable.