mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 06:33:26 +02:00
Version 0.99 BETA
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user