diff --git a/modules/client_entergame/entergame.otui b/modules/client_entergame/entergame.otui index 7a9d2d71..bf60297c 100644 --- a/modules/client_entergame/entergame.otui +++ b/modules/client_entergame/entergame.otui @@ -40,7 +40,9 @@ MainWindow LineEdit id: serverHostLineEdit - tooltip: Only protocol 8.6 is supported + tooltip: |- + Make sure that your client uses + the correct game protocol version anchors.left: serverLabel.left anchors.right: serverLabel.right anchors.top: serverLabel.bottom diff --git a/modules/core_lib/mouse.lua b/modules/core_lib/mouse.lua index 3f079fd1..1e2c70ec 100644 --- a/modules/core_lib/mouse.lua +++ b/modules/core_lib/mouse.lua @@ -1,19 +1,29 @@ Mouse = {} +local cursorChanged = true + function Mouse.setTargetCursor() g_window.setMouseCursor('/core_styles/cursors/targetcursor.png', {x=9,y=9}) + cursorChanged = true end function Mouse.setHorizontalCursor() g_window.setMouseCursor('/core_styles/cursors/horizontal.png', {x=9,y=4}) + cursorChanged = true end function Mouse.setVerticalCursor() g_window.setMouseCursor('/core_styles/cursors/vertical.png', {x=4,y=9}) + cursorChanged = true end function Mouse.restoreCursor() g_window.restoreMouseCursor() + cursorChanged = false +end + +function Mouse.isCursorChanged() + return cursorChanged end function Mouse.isPressed() diff --git a/modules/core_lib/widgets/uiresizeborder.lua b/modules/core_lib/widgets/uiresizeborder.lua index 8f6eaa73..cece93b1 100644 --- a/modules/core_lib/widgets/uiresizeborder.lua +++ b/modules/core_lib/widgets/uiresizeborder.lua @@ -10,7 +10,7 @@ end function UIResizeBorder:onHoverChange(hovered) if hovered then - if g_ui.getDraggingWidget() then return end + if Mouse.isCursorChanged() or Mouse.isPressed() then return end if self:getWidth() > self:getHeight() then Mouse.setVerticalCursor() self.vertical = true diff --git a/modules/core_lib/widgets/uisplitter.lua b/modules/core_lib/widgets/uisplitter.lua index e1b90ac5..a06fa9d4 100644 --- a/modules/core_lib/widgets/uisplitter.lua +++ b/modules/core_lib/widgets/uisplitter.lua @@ -9,7 +9,7 @@ end function UISplitter:onHoverChange(hovered) if hovered then - if g_ui.getDraggingWidget() then return end + if Mouse.isCursorChanged() or Mouse.isPressed() then return end if self:getWidth() > self:getHeight() then Mouse.setVerticalCursor() self.vertical = true diff --git a/src/framework/CMakeLists.txt b/src/framework/CMakeLists.txt index d165b492..df2c51c5 100644 --- a/src/framework/CMakeLists.txt +++ b/src/framework/CMakeLists.txt @@ -65,6 +65,7 @@ IF(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInf OPTION(CRASH_HANDLER "Generate crash reports" ON) ELSE() MESSAGE(STATUS "Debug information: OFF") + OPTION(CRASH_HANDLER "Generate crash reports" OFF) ENDIF() IF(CMAKE_BUILD_TYPE STREQUAL "Release")