mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
@@ -27,10 +27,10 @@ function UIResizeBorder:onHoverChange(hovered)
|
||||
if hovered then
|
||||
if g_mouse.isCursorChanged() or g_mouse.isPressed() then return end
|
||||
if self:getWidth() > self:getHeight() then
|
||||
g_mouse.setVerticalCursor()
|
||||
g_mouse.setCursor('vertical')
|
||||
self.vertical = true
|
||||
else
|
||||
g_mouse.setHorizontalCursor()
|
||||
g_mouse.setCursor('horizontal')
|
||||
self.vertical = false
|
||||
end
|
||||
self.hovering = true
|
||||
|
@@ -14,10 +14,10 @@ function UISplitter:onHoverChange(hovered)
|
||||
if hovered and (self:canUpdateMargin(margin + 1) ~= margin or self:canUpdateMargin(margin - 1) ~= margin) then
|
||||
if g_mouse.isCursorChanged() or g_mouse.isPressed() then return end
|
||||
if self:getWidth() > self:getHeight() then
|
||||
g_mouse.setVerticalCursor()
|
||||
g_mouse.setCursor('vertical')
|
||||
self.vertical = true
|
||||
else
|
||||
g_mouse.setHorizontalCursor()
|
||||
g_mouse.setCursor('horizontal')
|
||||
self.vertical = false
|
||||
end
|
||||
self.hovering = true
|
||||
|
Reference in New Issue
Block a user