guiBitmapButtonTextCtrl text colors
by Howard Dortch · in Torque 3D Professional · 08/13/2015 (8:13 am) · 0 replies
I couldn't get colors to work for this gui object so in GuiBitmapButtonTextCtrl::renderButton
I changed the code to this and now it works
Not sure if this is the right place to post and not sure if this is the proper way to handle the colors but here it is
ColorI fontColor;
if(mActive)
{
fontColor = mProfile->mFontColor;
if(mMouseOver)
{
fontColor = mProfile->mFontColorHL;
}
if(mDepressed)
{
fontColor = mProfile->mFontColorSEL;
}
}
else
{
fontColor = mProfile->mFontColorNA;
}
GFX->getDrawUtil()->setBitmapModulation( fontColor );
I changed the code to this and now it works
Not sure if this is the right place to post and not sure if this is the proper way to handle the colors but here it is
ColorI fontColor;
if(mActive)
{
fontColor = mProfile->mFontColor;
if(mMouseOver)
{
fontColor = mProfile->mFontColorHL;
}
if(mDepressed)
{
fontColor = mProfile->mFontColorSEL;
}
}
else
{
fontColor = mProfile->mFontColorNA;
}
GFX->getDrawUtil()->setBitmapModulation( fontColor );