mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Minor fixes
* Fix focusing opened channel on login * Add missing options to rule violation window * Send rule violations messages in default channel * Enable show private messages in console by default * Fix battle issues with invisible creatures * Allow to use hotkeys while trading
This commit is contained in:
@@ -326,7 +326,14 @@ function onTradeWith(clickedWidget, mousePosition)
|
||||
end
|
||||
|
||||
function startUseWith(thing)
|
||||
if g_ui.isMouseGrabbed() or not thing then return end
|
||||
if not thing then return end
|
||||
if g_ui.isMouseGrabbed() then
|
||||
if selectedThing then
|
||||
selectedThing = thing
|
||||
selectedType = 'use'
|
||||
end
|
||||
return
|
||||
end
|
||||
selectedType = 'use'
|
||||
selectedThing = thing
|
||||
mouseGrabberWidget:grabMouse()
|
||||
@@ -334,7 +341,14 @@ function startUseWith(thing)
|
||||
end
|
||||
|
||||
function startTradeWith(thing)
|
||||
if g_ui.isMouseGrabbed() or not thing then return end
|
||||
if not thing then return end
|
||||
if g_ui.isMouseGrabbed() then
|
||||
if selectedThing then
|
||||
selectedThing = thing
|
||||
selectedType = 'trade'
|
||||
end
|
||||
return
|
||||
end
|
||||
selectedType = 'trade'
|
||||
selectedThing = thing
|
||||
mouseGrabberWidget:grabMouse()
|
||||
|
Reference in New Issue
Block a user