mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
rework splitter implementation
This commit is contained in:
@@ -714,6 +714,10 @@ void UIWidget::setLayout(const UILayoutPtr& layout)
|
||||
|
||||
void UIWidget::setRect(const Rect& rect)
|
||||
{
|
||||
if(rect.width() > 8192 || rect.height() > 8192) {
|
||||
logError("attempt to set huge rect size (", rect,") for ", m_id);
|
||||
return;
|
||||
}
|
||||
// only update if the rect really changed
|
||||
Rect oldRect = m_rect;
|
||||
if(rect == oldRect)
|
||||
|
@@ -49,7 +49,7 @@ namespace Proto {
|
||||
|
||||
#if PROTOCOL>=861
|
||||
constexpr int NumViolationReasons = 19;
|
||||
#elif PROTOCOL==860
|
||||
#elif PROTOCOL>=860
|
||||
constexpr int NumViolationReasons = 20;
|
||||
#endif
|
||||
|
||||
@@ -246,7 +246,7 @@ namespace Proto {
|
||||
ServerSpeakRVRAnswer,
|
||||
ServerSpeakRVRContinue,
|
||||
ServerSpeakChannelRed2
|
||||
#elif PROTOCOL==860
|
||||
#elif PROTOCOL>=860
|
||||
ServerSpeakSay = 1,
|
||||
ServerSpeakWhisper,
|
||||
ServerSpeakYell,
|
||||
@@ -269,7 +269,7 @@ namespace Proto {
|
||||
};
|
||||
|
||||
enum MessageTypes {
|
||||
#if PROTOCOL>=862
|
||||
#if PROTOCOL>=861
|
||||
MessageConsoleOrange = 13,
|
||||
MessageConsoleOrange2,
|
||||
MessageWarning,
|
||||
@@ -280,7 +280,7 @@ namespace Proto {
|
||||
MessageStatusSmall,
|
||||
MessageConsoleBlue,
|
||||
MessageConsoleRed
|
||||
#elif PROTOCOL==860
|
||||
#elif PROTOCOL>=860
|
||||
MessageConsoleRed = 18,
|
||||
MessageConsoleOrange,
|
||||
MessageConsoleOrange2,
|
||||
|
Reference in New Issue
Block a user