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:
Eduardo Bart
2013-02-04 16:33:34 -02:00
parent 0fc56c73cc
commit 4c51009ed9
4 changed files with 28 additions and 24 deletions

View File

@@ -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()