mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Fixed missing check for highlighted font color on GUI icon button
This commit is contained in:
parent
938e28b6f3
commit
0d610b7aac
1 changed files with 2 additions and 2 deletions
|
|
@ -230,7 +230,7 @@ void GuiIconButtonCtrl::renderButton( Point2I &offset, const RectI& updateRect )
|
||||||
bool highlight = mMouseOver;
|
bool highlight = mMouseOver;
|
||||||
bool depressed = mDepressed;
|
bool depressed = mDepressed;
|
||||||
|
|
||||||
ColorI fontColor = mActive ? (highlight ? mProfile->mFontColor : mProfile->mFontColor) : mProfile->mFontColorNA;
|
ColorI fontColor = mActive ? (highlight ? mProfile->mFontColorHL : mProfile->mFontColor) : mProfile->mFontColorNA;
|
||||||
|
|
||||||
RectI boundsRect(offset, getExtent());
|
RectI boundsRect(offset, getExtent());
|
||||||
|
|
||||||
|
|
@ -436,4 +436,4 @@ DefineEngineMethod( GuiIconButtonCtrl, setBitmap, void, (const char* buttonFilen
|
||||||
char* argBuffer = Con::getArgBuffer( 512 );
|
char* argBuffer = Con::getArgBuffer( 512 );
|
||||||
Platform::makeFullPathName( buttonFilename, argBuffer, 512 );
|
Platform::makeFullPathName( buttonFilename, argBuffer, 512 );
|
||||||
object->setBitmap( argBuffer );
|
object->setBitmap( argBuffer );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue