Version 0.99 BETA

This commit is contained in:
OTCv8
2019-10-06 12:00:34 +02:00
parent b016c1dca4
commit bc977c268e
14 changed files with 115 additions and 17 deletions

View File

@@ -373,7 +373,7 @@ function addKeyCombo(keyCombo, keySettings, focus)
updateHotkeyLabel(hotkeyLabel)
boundCombosCallback[keyCombo] = function() doKeyCombo(keyCombo) end
boundCombosCallback[keyCombo] = function() scheduleEvent(function() doKeyCombo(keyCombo) end, g_settings.getNumber('hotkeyDelay')) end
g_keyboard.bindKeyPress(keyCombo, boundCombosCallback[keyCombo])
end
@@ -392,6 +392,10 @@ function doKeyCombo(keyCombo)
return
end
end
if modules.game_walking then
modules.game_walking.checkTurn()
end
local hotKey = hotkeyList[keyCombo]
if not hotKey then return end