mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Merge pull request #959 from Azaezel/alpha41/guiiconBorderfix
fix GuiIconButtonCtrl not taking borderThickness entires
This commit is contained in:
commit
36771d9f0b
2 changed files with 22 additions and 6 deletions
|
|
@ -247,8 +247,10 @@ void GuiIconButtonCtrl::renderButton( Point2I &offset, const RectI& updateRect )
|
|||
}
|
||||
else
|
||||
{
|
||||
drawer->drawRectFill(boundsRect, mProfile->mFillColorHL);
|
||||
drawer->drawRect(boundsRect, mProfile->mBorderColorHL);
|
||||
if (mProfile->mBorder != 0)
|
||||
renderFilledBorder(boundsRect, mProfile->mBorderColorHL, mProfile->mFillColorHL, mProfile->mBorderThickness);
|
||||
else
|
||||
GFX->getDrawUtil()->drawRectFill(boundsRect, mProfile->mFillColorHL);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -266,13 +268,17 @@ void GuiIconButtonCtrl::renderButton( Point2I &offset, const RectI& updateRect )
|
|||
{
|
||||
if (mActive)
|
||||
{
|
||||
drawer->drawRectFill(boundsRect, mProfile->mFillColor);
|
||||
drawer->drawRect(boundsRect, mProfile->mBorderColor);
|
||||
if (mProfile->mBorder != 0)
|
||||
renderFilledBorder(boundsRect, mProfile->mBorderColor, mProfile->mFillColor, mProfile->mBorderThickness);
|
||||
else
|
||||
GFX->getDrawUtil()->drawRectFill(boundsRect, mProfile->mFillColor);
|
||||
}
|
||||
else
|
||||
{
|
||||
drawer->drawRectFill(boundsRect, mProfile->mFillColorNA);
|
||||
drawer->drawRect(boundsRect, mProfile->mBorderColorNA);
|
||||
if (mProfile->mBorder != 0)
|
||||
renderFilledBorder(boundsRect, mProfile->mBorderColorNA, mProfile->mFillColorNA, mProfile->mBorderThickness);
|
||||
else
|
||||
GFX->getDrawUtil()->drawRectFill(boundsRect, mProfile->mFillColor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue