mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-16 21:23:46 +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
This commit is contained in:
parent
a43458677a
commit
40974dd14b
11 changed files with 31 additions and 31 deletions
|
|
@ -184,7 +184,7 @@ void GuiGameSettingsCtrl::onRenderListOption(Point2I currentOffset)
|
|||
bool arrowOnR = (isSelected() || isHighlighted()) && (mWrapOptions || (mSelectedOption < mOptions.size() - 1));
|
||||
if (arrowOnL)
|
||||
{
|
||||
if (mPreviousBitmapAsset.notNull())
|
||||
if (getPreviousBitmap())
|
||||
{
|
||||
arrowOffset.x = currentOffset.x + mColumnSplit;
|
||||
arrowOffset.y = currentOffset.y + arrowOffsetY;
|
||||
|
|
@ -205,7 +205,7 @@ void GuiGameSettingsCtrl::onRenderListOption(Point2I currentOffset)
|
|||
}
|
||||
if (arrowOnR)
|
||||
{
|
||||
if (mNextBitmapAsset.notNull())
|
||||
if (getNextBitmap())
|
||||
{
|
||||
arrowOffset.x = currentOffset.x + getWidth() - mRightPad - mArrowSize;
|
||||
arrowOffset.y = currentOffset.y + arrowOffsetY;
|
||||
|
|
@ -369,7 +369,7 @@ void GuiGameSettingsCtrl::onRenderKeybindOption(Point2I currentOffset)
|
|||
buttonSize.x = height;
|
||||
buttonSize.y = height;
|
||||
|
||||
if (mKeybindBitmapAsset.notNull())
|
||||
if (getKeybindBitmap())
|
||||
{
|
||||
RectI rect(button, buttonSize);
|
||||
drawer->clearBitmapModulation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue