Fix #283 and more:

* Might have fixed death window issue but not confirmed
* Stop hotkey window from display while offline
* Moved some required features to >= 840 if statement
  (protocol 840/842 arent supported in otclient yet)
This commit is contained in:
BeniS
2013-02-28 01:01:51 +13:00
parent ef20f59a98
commit 0bf909d52f
6 changed files with 24 additions and 14 deletions

View File

@@ -33,7 +33,10 @@ function displayDeadMessage()
end
function openWindow()
if deathWindow then return end
if deathWindow then
deathWindow:destroy()
return
end
deathWindow = g_ui.createWidget('DeathWindow', rootWidget)
local okButton = deathWindow:getChildById('buttonOk')
local cancelButton = deathWindow:getChildById('buttonCancel')