mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
use of get<some name> methods that already return nulls/false when attempting to load
in contexts where we would want to try first (pt2)
This commit is contained in:
parent
40974dd14b
commit
8bd145d54f
7 changed files with 17 additions and 25 deletions
|
|
@ -380,7 +380,7 @@ void GuiIconButtonCtrl::renderButton( Point2I &offset, const RectI& updateRect )
|
|||
if ( mTextLocation == TextLocRight )
|
||||
{
|
||||
Point2I start( mTextMargin, ( getHeight() - mProfile->mFont->getHeight() ) / 2 );
|
||||
if (mBitmapAsset.notNull() && mIconLocation != IconLocNone)
|
||||
if (getBitmap() && mIconLocation != IconLocNone)
|
||||
{
|
||||
start.x = getWidth() - (iconRect.extent.x + mButtonMargin.x + textWidth);
|
||||
}
|
||||
|
|
@ -400,7 +400,7 @@ void GuiIconButtonCtrl::renderButton( Point2I &offset, const RectI& updateRect )
|
|||
if ( mTextLocation == TextLocCenter )
|
||||
{
|
||||
Point2I start;
|
||||
if (mBitmapAsset.notNull() && mIconLocation == IconLocLeft )
|
||||
if (getBitmap() && mIconLocation == IconLocLeft )
|
||||
{
|
||||
start.set( ( getWidth() - textWidth - iconRect.extent.x ) / 2 + iconRect.extent.x,
|
||||
( getHeight() - mProfile->mFont->getHeight() ) / 2 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue