mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
@@ -331,14 +331,14 @@ function startUseWith(thing)
|
||||
selectedType = 'use'
|
||||
selectedThing = thing
|
||||
mouseGrabberWidget:grabMouse()
|
||||
g_mouse.setTargetCursor()
|
||||
g_mouse.setCursor('target')
|
||||
end
|
||||
|
||||
function startTradeWith(thing)
|
||||
selectedType = 'trade'
|
||||
selectedThing = thing
|
||||
mouseGrabberWidget:grabMouse()
|
||||
g_mouse.setTargetCursor()
|
||||
g_mouse.setCursor('target')
|
||||
end
|
||||
|
||||
function createThingMenu(menuPosition, lookThing, useThing, creatureThing)
|
||||
|
@@ -16,7 +16,8 @@ function UIGameMap:onDragEnter(mousePos)
|
||||
if not thing then return false end
|
||||
|
||||
self.currentDragThing = thing
|
||||
g_mouse.setTargetCursor()
|
||||
|
||||
g_mouse.setCursor('target')
|
||||
self.allowNextRelease = false
|
||||
return true
|
||||
end
|
||||
|
@@ -6,7 +6,7 @@ function UIItem:onDragEnter(mousePos)
|
||||
|
||||
self:setBorderWidth(1)
|
||||
self.currentDragThing = item
|
||||
g_mouse.setTargetCursor()
|
||||
g_mouse.setCursor('target')
|
||||
return true
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user