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

@@ -26,6 +26,36 @@ Panel
!text: tr('Enable smart walking')
!tooltip: tr('Will detect when to use diagonal step based on the\nkeys you are pressing')
OptionCheckBox
id: ignoreServerDirection
!text: tr('Ignore server direction')
!tooltip: tr('Doesn\'t change direction when walk is canceled')
OptionCheckBox
id: realDirection
!text: tr('Show real direction')
!tooltip: tr('Shows real creature direction while it\'s walking')
Label
anchors.top: prev.bottom
anchors.left: parent.left
anchors.right: parent.right
id: hotkeyDelayLabel
margin-top: 10
!tooltip: tr('Give you some time to make a turn while walking if you press many keys simultaneously')
@onSetup: |
local value = modules.client_options.getOption('hotkeyDelay')
self:setText(tr('Hotkey delay: %s ms', value))
OptionScrollbar
id: hotkeyDelay
anchors.top: prev.bottom
anchors.left: parent.left
anchors.right: parent.right
margin-top: 3
minimum: 5
maximum: 50
Label
anchors.top: prev.bottom
anchors.left: parent.left

View File

@@ -40,11 +40,14 @@ local defaultOptions = {
turnDelay = 30,
hotkeyDelay = 30,
ignoreServerDirection = true,
realDirection = false,
wsadWalking = false,
walkFirstStepDelay = 200,
walkTurnDelay = 100,
walkStairsDelay = 50,
walkTeleportDelay = 200
walkTeleportDelay = 200
}
local optionsWindow
@@ -292,6 +295,12 @@ function setOption(key, value, force)
if modules.game_console and modules.game_console.consoleToggleChat:isChecked() ~= value then
modules.game_console.consoleToggleChat:setChecked(value)
end
elseif key == 'ignoreServerDirection' then
g_game.ignoreServerDirection(value)
elseif key == 'realDirection' then
g_game.showRealDirection(value)
elseif key == 'hotkeyDelay' then
generalPanel:getChildById('hotkeyDelayLabel'):setText(tr('Hotkey delay: %s ms', value))
elseif key == 'walkFirstStepDelay' then
generalPanel:getChildById('walkFirstStepDelayLabel'):setText(tr('Walk delay after first step: %s ms', value))
elseif key == 'walkTurnDelay' then