mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 06:33:26 +02:00
Version 1.7
This commit is contained in:
@@ -84,6 +84,25 @@ Panel
|
||||
minimum: 0
|
||||
maximum: 300
|
||||
|
||||
Label
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
id: walkCtrlTurnDelayLabel
|
||||
margin-top: 10
|
||||
@onSetup: |
|
||||
local value = modules.client_options.getOption('walkTurnDelay')
|
||||
self:setText(tr('Walk delay after ctrl turn: %s ms', value))
|
||||
|
||||
OptionScrollbar
|
||||
id: walkCtrlTurnDelay
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
margin-top: 3
|
||||
minimum: 0
|
||||
maximum: 300
|
||||
|
||||
Label
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: parent.left
|
||||
|
@@ -48,7 +48,8 @@ local defaultOptions = {
|
||||
walkFirstStepDelay = 200,
|
||||
walkTurnDelay = 100,
|
||||
walkStairsDelay = 50,
|
||||
walkTeleportDelay = 200
|
||||
walkTeleportDelay = 200,
|
||||
walkCtrlTurnDelay = 150
|
||||
}
|
||||
|
||||
local optionsWindow
|
||||
@@ -315,6 +316,8 @@ function setOption(key, value, force)
|
||||
generalPanel:getChildById('walkStairsDelayLabel'):setText(tr('Walk delay after floor change: %s ms', value))
|
||||
elseif key == 'walkTeleportDelay' then
|
||||
generalPanel:getChildById('walkTeleportDelayLabel'):setText(tr('Walk delay after teleport: %s ms', value))
|
||||
elseif key == 'walkCtrlTurnDelay' then
|
||||
generalPanel:getChildById('walkCtrlTurnDelayLabel'):setText(tr('Walk delay after ctrl turn: %s ms', value))
|
||||
end
|
||||
|
||||
-- change value for keybind updates
|
||||
|
Reference in New Issue
Block a user