|
|
@@ -130,6 +130,13 @@ namespace BansheeEngine
|
|
|
if(!mIsDisabled && isDirty() && (mWidget != nullptr))
|
|
|
{
|
|
|
RectI clipRect(mLeft, mTop, mWidth, mHeight);
|
|
|
+ if (mClipRect.width > 0 && mClipRect.height > 0)
|
|
|
+ {
|
|
|
+ RectI newClipRect = RectI(mLeft + mClipRect.x, mTop + mClipRect.y, mClipRect.width, mClipRect.height);
|
|
|
+ newClipRect.clip(clipRect);
|
|
|
+ clipRect = newClipRect;
|
|
|
+ }
|
|
|
+
|
|
|
mLayout->_updateLayout(mLeft, mTop, mWidth, mHeight, clipRect, mWidget->getDepth(), mDepth);
|
|
|
mIsDirty = false;
|
|
|
}
|
|
|
@@ -159,6 +166,13 @@ namespace BansheeEngine
|
|
|
mIsDirty = true;
|
|
|
}
|
|
|
|
|
|
+ void GUIArea::setClipRect(const RectI& clipRect)
|
|
|
+ {
|
|
|
+ mClipRect = clipRect;
|
|
|
+
|
|
|
+ mIsDirty = true;
|
|
|
+ }
|
|
|
+
|
|
|
void GUIArea::updateSizeBasedOnParent(UINT32 parentWidth, UINT32 parentHeight)
|
|
|
{
|
|
|
if(mResizeXWithWidget)
|