mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
implement chat colors, rework on UI layout update system
This commit is contained in:
@@ -257,18 +257,18 @@ public:
|
||||
return tmp;
|
||||
}
|
||||
|
||||
void bound(const TRect<T> &r) {
|
||||
void bound(const TRect<T> &r, bool resize = false) {
|
||||
if(isNull() || r.isNull())
|
||||
return;
|
||||
|
||||
if(right() > r.right())
|
||||
moveRight(r.right());
|
||||
if(bottom() > r.bottom())
|
||||
moveBottom(r.bottom());
|
||||
if(left() < r.left())
|
||||
moveLeft(r.left());
|
||||
if(top() < r.top())
|
||||
moveTop(r.top());
|
||||
if(bottom() > r.bottom())
|
||||
moveBottom(r.bottom());
|
||||
if(right() > r.right())
|
||||
moveRight(r.right());
|
||||
}
|
||||
|
||||
TRect<T>& operator=(const TRect<T>& other) { x1 = other.x1; y1 = other.y1; x2 = other.x2; y2 = other.y2; return *this; }
|
||||
|
Reference in New Issue
Block a user