mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-20 03:45:26 +00:00
Merge pull request #635 from just-bank/engine-fixes
Various engine fixes
This commit is contained in:
commit
cd978039ac
37 changed files with 106 additions and 86 deletions
|
|
@ -1011,8 +1011,8 @@ void GuiPopUpMenuCtrl::onRender( Point2I offset, const RectI &updateRect )
|
|||
{
|
||||
// We're making use of a bitmap border, so take into account the
|
||||
// right cap of the border.
|
||||
RectI* mBitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
localStart.x = getWidth() - mBitmapBounds[2].extent.x - txt_w;
|
||||
RectI* bitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
localStart.x = getWidth() - bitmapBounds[2].extent.x - txt_w;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1024,8 +1024,8 @@ void GuiPopUpMenuCtrl::onRender( Point2I offset, const RectI &updateRect )
|
|||
{
|
||||
// We're making use of a bitmap border, so take into account the
|
||||
// right cap of the border.
|
||||
RectI* mBitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
localStart.x = (getWidth() - mBitmapBounds[2].extent.x - txt_w) / 2;
|
||||
RectI* bitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
localStart.x = (getWidth() - bitmapBounds[2].extent.x - txt_w) / 2;
|
||||
|
||||
} else
|
||||
{
|
||||
|
|
@ -1043,8 +1043,8 @@ void GuiPopUpMenuCtrl::onRender( Point2I offset, const RectI &updateRect )
|
|||
{
|
||||
// We're making use of a bitmap border, so take into account the
|
||||
// right cap of the border.
|
||||
RectI* mBitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
localStart.x = getWidth() - mBitmapBounds[2].extent.x - txt_w;
|
||||
RectI* bitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
localStart.x = getWidth() - bitmapBounds[2].extent.x - txt_w;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1095,8 +1095,8 @@ void GuiPopUpMenuCtrl::onRender( Point2I offset, const RectI &updateRect )
|
|||
{
|
||||
// We're making use of a bitmap border, so take into account the
|
||||
// right cap of the border.
|
||||
RectI* mBitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
Point2I textpos = localToGlobalCoord( Point2I( getWidth() - txt_w - mBitmapBounds[2].extent.x, localStart.y ) );
|
||||
RectI* bitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
Point2I textpos = localToGlobalCoord( Point2I( getWidth() - txt_w - bitmapBounds[2].extent.x, localStart.y ) );
|
||||
GFX->getDrawUtil()->drawText( mProfile->mFont, textpos, buff, mProfile->mFontColors );
|
||||
|
||||
} else
|
||||
|
|
|
|||
|
|
@ -1167,8 +1167,8 @@ void GuiPopUpMenuCtrlEx::onRender(Point2I offset, const RectI &updateRect)
|
|||
{
|
||||
// We're making use of a bitmap border, so take into account the
|
||||
// right cap of the border.
|
||||
RectI* mBitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
localStart.x = getWidth() - mBitmapBounds[2].extent.x - txt_w;
|
||||
RectI* bitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
localStart.x = getWidth() - bitmapBounds[2].extent.x - txt_w;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1180,8 +1180,8 @@ void GuiPopUpMenuCtrlEx::onRender(Point2I offset, const RectI &updateRect)
|
|||
{
|
||||
// We're making use of a bitmap border, so take into account the
|
||||
// right cap of the border.
|
||||
RectI* mBitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
localStart.x = (getWidth() - mBitmapBounds[2].extent.x - txt_w) / 2;
|
||||
RectI* bitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
localStart.x = (getWidth() - bitmapBounds[2].extent.x - txt_w) / 2;
|
||||
|
||||
} else
|
||||
{
|
||||
|
|
@ -1199,8 +1199,8 @@ void GuiPopUpMenuCtrlEx::onRender(Point2I offset, const RectI &updateRect)
|
|||
{
|
||||
// We're making use of a bitmap border, so take into account the
|
||||
// right cap of the border.
|
||||
RectI* mBitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
localStart.x = getWidth() - mBitmapBounds[2].extent.x - txt_w;
|
||||
RectI* bitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
localStart.x = getWidth() - bitmapBounds[2].extent.x - txt_w;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1251,8 +1251,8 @@ void GuiPopUpMenuCtrlEx::onRender(Point2I offset, const RectI &updateRect)
|
|||
{
|
||||
// We're making use of a bitmap border, so take into account the
|
||||
// right cap of the border.
|
||||
RectI* mBitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
Point2I textpos = localToGlobalCoord( Point2I( getWidth() - txt_w - mBitmapBounds[2].extent.x, localStart.y ) );
|
||||
RectI* bitmapBounds = mProfile->mBitmapArrayRects.address();
|
||||
Point2I textpos = localToGlobalCoord( Point2I( getWidth() - txt_w - bitmapBounds[2].extent.x, localStart.y ) );
|
||||
GFX->getDrawUtil()->drawText( mProfile->mFont, textpos, buff, mProfile->mFontColors );
|
||||
|
||||
} else
|
||||
|
|
|
|||
|
|
@ -3583,7 +3583,7 @@ void GuiTreeViewCtrl::onMiddleMouseDown(const GuiEvent & event)
|
|||
for (S32 j = 0; j < mSelected.size(); j++) {
|
||||
Con::printf("%d", mSelected[j]);
|
||||
}
|
||||
S32 mCurrentDragCell = mMouseOverCell.y;
|
||||
mCurrentDragCell = mMouseOverCell.y;
|
||||
S32 midpCell = (mCurrentDragCell) * mItemHeight + (mItemHeight/2);
|
||||
S32 currentY = pt.y;
|
||||
S32 yDiff = currentY-midpCell;
|
||||
|
|
@ -3648,7 +3648,7 @@ void GuiTreeViewCtrl::onMouseDown(const GuiEvent & event)
|
|||
break;
|
||||
}
|
||||
}
|
||||
S32 mCurrentDragCell = mMouseOverCell.y;
|
||||
mCurrentDragCell = mMouseOverCell.y;
|
||||
if (mVisibleItems[firstSelectedIndex] != firstItem )
|
||||
{
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue