mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 06:33:26 +02:00
Version 2.4 - http://otclient.net/showthread.php?tid=160
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Panel
|
||||
OptionPanel
|
||||
OptionCheckBox
|
||||
id: enableAudio
|
||||
!text: tr('Enable audio')
|
||||
@@ -10,9 +10,6 @@ Panel
|
||||
Label
|
||||
id: musicSoundVolumeLabel
|
||||
!text: tr('Music volume: %d', 100)
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 6
|
||||
@onSetup: |
|
||||
local value = modules.client_options.getOption('musicSoundVolume')
|
||||
@@ -20,9 +17,6 @@ Panel
|
||||
|
||||
OptionScrollbar
|
||||
id: musicSoundVolume
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 3
|
||||
minimum: 0
|
||||
maximum: 100
|
||||
@@ -30,9 +24,6 @@ Panel
|
||||
Label
|
||||
id: botSoundVolumeLabel
|
||||
!text: tr('Bot sound volume: %d', 100)
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 6
|
||||
@onSetup: |
|
||||
local value = modules.client_options.getOption('botSoundVolume')
|
||||
@@ -40,9 +31,6 @@ Panel
|
||||
|
||||
OptionScrollbar
|
||||
id: botSoundVolume
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 3
|
||||
minimum: 0
|
||||
maximum: 100
|
||||
|
@@ -1,4 +1,4 @@
|
||||
Panel
|
||||
OptionPanel
|
||||
OptionCheckBox
|
||||
id: showInfoMessagesInConsole
|
||||
!text: tr('Show info messages in console')
|
||||
|
@@ -1,8 +1,11 @@
|
||||
Panel
|
||||
OptionPanel
|
||||
OptionCheckBox
|
||||
id: classicControl
|
||||
!text: tr('Classic control')
|
||||
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
OptionCheckBox
|
||||
id: autoChaseOverride
|
||||
!text: tr('Allow auto chase override')
|
||||
@@ -15,6 +18,8 @@ Panel
|
||||
id: wsadWalking
|
||||
!text: tr('Enable WSAD walking')
|
||||
!tooltip: tr('Disable chat and allow walk using WSAD keys')
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
OptionCheckBox
|
||||
id: dash
|
||||
@@ -27,9 +32,6 @@ Panel
|
||||
!tooltip: tr('Will detect when to use diagonal step based on the\nkeys you are pressing')
|
||||
|
||||
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')
|
||||
@@ -39,114 +41,107 @@ Panel
|
||||
|
||||
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
|
||||
anchors.right: parent.right
|
||||
id: walkFirstStepDelayLabel
|
||||
margin-top: 10
|
||||
@onSetup: |
|
||||
local value = modules.client_options.getOption('walkFirstStepDelay')
|
||||
self:setText(tr('Walk delay after first step: %s ms', value))
|
||||
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
OptionScrollbar
|
||||
id: walkFirstStepDelay
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
margin-top: 3
|
||||
minimum: 50
|
||||
maximum: 300
|
||||
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
Label
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
id: walkTurnDelayLabel
|
||||
margin-top: 10
|
||||
@onSetup: |
|
||||
local value = modules.client_options.getOption('walkTurnDelay')
|
||||
self:setText(tr('Walk delay after turn: %s ms', value))
|
||||
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
OptionScrollbar
|
||||
id: walkTurnDelay
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
margin-top: 3
|
||||
minimum: 0
|
||||
maximum: 300
|
||||
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
Label
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
id: walkCtrlTurnDelayLabel
|
||||
margin-top: 10
|
||||
$mobile:
|
||||
visible: false
|
||||
@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
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
Label
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
id: walkStairsDelayLabel
|
||||
margin-top: 10
|
||||
@onSetup: |
|
||||
local value = modules.client_options.getOption('walkStairsDelay')
|
||||
self:setText(tr('Walk delay after floor change: %s ms', value))
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
OptionScrollbar
|
||||
id: walkStairsDelay
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
margin-top: 3
|
||||
minimum: 0
|
||||
maximum: 300
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
Label
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
id: walkTeleportDelayLabel
|
||||
margin-top: 10
|
||||
@onSetup: |
|
||||
local value = modules.client_options.getOption('walkTeleportDelay')
|
||||
self:setText(tr('Walk delay after teleport: %s ms', value))
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
OptionScrollbar
|
||||
id: walkTeleportDelay
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
margin-top: 3
|
||||
minimum: 0
|
||||
maximum: 300
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
Button
|
||||
id: changeLocale
|
||||
!text: tr('Change language')
|
||||
@onClick: modules.client_locales.createWindow()
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: prev.left
|
||||
margin-top: 12
|
||||
width: 120
|
||||
Panel
|
||||
height: 30
|
||||
margin-top: 10
|
||||
|
||||
Button
|
||||
id: changeLocale
|
||||
!text: tr('Change language')
|
||||
@onClick: modules.client_locales.createWindow()
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
width: 150
|
||||
|
@@ -1,36 +1,22 @@
|
||||
Panel
|
||||
OptionPanel
|
||||
Label
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
text-wrap: false
|
||||
@onSetup: |
|
||||
self:setText(tr("GPU: ") .. g_graphics.getRenderer())
|
||||
|
||||
Label
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
text-wrap: false
|
||||
@onSetup: |
|
||||
self:setText(tr("Version: ") .. g_graphics.getVersion())
|
||||
|
||||
HorizontalSeparator
|
||||
id: separator
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin: 5 5 5 5
|
||||
|
||||
OptionCheckBox
|
||||
id: vsync
|
||||
!text: tr('Enable vertical synchronization')
|
||||
!tooltip: tr('Limits FPS (usually to 60)')
|
||||
@onSetup: |
|
||||
if g_window.getPlatformType() == 'WIN32-EGL' then
|
||||
self:setEnabled(false)
|
||||
self:setText(tr('Enable vertical synchronization') .. " " .. tr('(OpenGL only)'))
|
||||
end
|
||||
|
||||
OptionCheckBox
|
||||
id: showFps
|
||||
@@ -47,17 +33,11 @@ Panel
|
||||
|
||||
Label
|
||||
margin-top: 12
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
id: optimizationLevelLabel
|
||||
!text: tr("Optimization level")
|
||||
|
||||
ComboBox
|
||||
id: optimizationLevel
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 3
|
||||
margin-right: 2
|
||||
margin-left: 2
|
||||
@@ -70,12 +50,13 @@ Panel
|
||||
self:addOption("High")
|
||||
self:addOption("Maximum")
|
||||
|
||||
Label
|
||||
!text: tr('High/Maximum optimization level may cause visual defects.')
|
||||
margin-top: 5
|
||||
|
||||
Label
|
||||
id: backgroundFrameRateLabel
|
||||
!text: tr('Game framerate limit: %s', 'max')
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 12
|
||||
@onSetup: |
|
||||
local value = modules.client_options.getOption('backgroundFrameRate')
|
||||
@@ -87,18 +68,12 @@ Panel
|
||||
|
||||
OptionScrollbar
|
||||
id: backgroundFrameRate
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 3
|
||||
minimum: 10
|
||||
maximum: 201
|
||||
|
||||
Label
|
||||
id: ambientLightLabel
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 6
|
||||
@onSetup: |
|
||||
local value = modules.client_options.getOption('ambientLight')
|
||||
@@ -106,9 +81,6 @@ Panel
|
||||
|
||||
OptionScrollbar
|
||||
id: ambientLight
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 3
|
||||
minimum: 0
|
||||
maximum: 100
|
||||
@@ -116,10 +88,9 @@ Panel
|
||||
Label
|
||||
id: tips
|
||||
margin-top: 20
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
text-auto-resize: true
|
||||
text-align: left
|
||||
text-wrap: true
|
||||
!text: tr("If you have FPS issues:\n- Use OpenGL version (_gl)\n- Disable vertical synchronization\n- Set higher optimization level\n- Lower screen resolution\nOr report it via email to otclient@otclient.ovh")
|
||||
!text: tr("If you have FPS issues:\n- Use OpenGL version (_gl)\n- Disable vertical synchronization\n- Set higher optimization level\n- Lower screen resolution\nOr report it on forum: http://otclient.net")
|
||||
$mobile:
|
||||
visible: false
|
@@ -1,20 +1,18 @@
|
||||
Panel
|
||||
OptionPanel
|
||||
Label
|
||||
width: 130
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
id: layoutLabel
|
||||
!text: tr("Layout (change requries client restart)")
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
ComboBox
|
||||
id: layout
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 3
|
||||
margin-right: 2
|
||||
margin-left: 2
|
||||
$mobile:
|
||||
visible: false
|
||||
@onOptionChange: modules.client_options.setOption(self:getId(), self:getCurrentOption().text)
|
||||
@onSetup: |
|
||||
self:addOption("Default")
|
||||
@@ -28,11 +26,17 @@ Panel
|
||||
id: classicView
|
||||
!text: tr('Classic view')
|
||||
margin-top: 5
|
||||
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
OptionCheckBox
|
||||
id: cacheMap
|
||||
!text: tr('Cache map (for non-classic view)')
|
||||
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
OptionCheckBox
|
||||
id: actionBar1
|
||||
!text: tr("Show first action bar")
|
||||
@@ -57,6 +61,8 @@ Panel
|
||||
OptionCheckBox
|
||||
id: displayHealthOnTop
|
||||
!text: tr('Display creature health bars above texts')
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
OptionCheckBox
|
||||
id: hidePlayerBars
|
||||
@@ -65,6 +71,8 @@ Panel
|
||||
OptionCheckBox
|
||||
id: displayMana
|
||||
!text: tr('Show player mana bar')
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
OptionCheckBox
|
||||
id: topHealtManaBar
|
||||
@@ -73,93 +81,92 @@ Panel
|
||||
OptionCheckBox
|
||||
id: showHealthManaCircle
|
||||
!text: tr('Show health and mana circle')
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
OptionCheckBox
|
||||
id: highlightThingsUnderCursor
|
||||
!text: tr('Highlight things under cursor')
|
||||
|
||||
Label
|
||||
margin-top: 5
|
||||
width: 90
|
||||
anchors.left: parent.left
|
||||
anchors.top: prev.bottom
|
||||
id: leftPanelsLabel
|
||||
!text: tr("Left panels")
|
||||
|
||||
Label
|
||||
width: 90
|
||||
anchors.left: prev.right
|
||||
anchors.top: prev.top
|
||||
id: rightPanelsLabel
|
||||
!text: tr("Right panels")
|
||||
|
||||
Label
|
||||
width: 130
|
||||
anchors.left: prev.right
|
||||
anchors.top: prev.top
|
||||
id: backpackPanelLabel
|
||||
!text: tr("Container's panel")
|
||||
!tooltip: tr("Open new containers in selected panel")
|
||||
|
||||
ComboBox
|
||||
id: leftPanels
|
||||
anchors.left: leftPanelsLabel.left
|
||||
anchors.right: leftPanelsLabel.right
|
||||
anchors.top: leftPanelsLabel.bottom
|
||||
Panel
|
||||
height: 40
|
||||
margin-top: 3
|
||||
margin-right: 20
|
||||
@onOptionChange: modules.client_options.setOption(self:getId(), self.currentIndex)
|
||||
@onSetup: |
|
||||
self:addOption("0")
|
||||
self:addOption("1")
|
||||
self:addOption("2")
|
||||
self:addOption("3")
|
||||
self:addOption("4")
|
||||
|
||||
Label
|
||||
width: 90
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
id: leftPanelsLabel
|
||||
!text: tr("Left panels")
|
||||
|
||||
ComboBox
|
||||
id: rightPanels
|
||||
anchors.left: rightPanelsLabel.left
|
||||
anchors.right: rightPanelsLabel.right
|
||||
anchors.top: rightPanelsLabel.bottom
|
||||
margin-top: 3
|
||||
margin-right: 20
|
||||
@onOptionChange: modules.client_options.setOption(self:getId(), self.currentIndex)
|
||||
@onSetup: |
|
||||
self:addOption("1")
|
||||
self:addOption("2")
|
||||
self:addOption("3")
|
||||
self:addOption("4")
|
||||
Label
|
||||
width: 90
|
||||
anchors.left: prev.right
|
||||
anchors.top: prev.top
|
||||
id: rightPanelsLabel
|
||||
!text: tr("Right panels")
|
||||
|
||||
ComboBox
|
||||
id: containerPanel
|
||||
anchors.left: backpackPanelLabel.left
|
||||
anchors.right: backpackPanelLabel.right
|
||||
anchors.top: backpackPanelLabel.bottom
|
||||
margin-top: 3
|
||||
@onOptionChange: modules.client_options.setOption(self:getId(), self.currentIndex)
|
||||
@onSetup: |
|
||||
self:addOption("1st left panel")
|
||||
self:addOption("2nd left panel")
|
||||
self:addOption("3rd left panel")
|
||||
self:addOption("4th left panel")
|
||||
self:addOption("1st right panel")
|
||||
self:addOption("2nd right panel")
|
||||
self:addOption("3rd right panel")
|
||||
self:addOption("4th right panel")
|
||||
Label
|
||||
width: 130
|
||||
anchors.left: prev.right
|
||||
anchors.top: prev.top
|
||||
id: backpackPanelLabel
|
||||
!text: tr("Container's panel")
|
||||
!tooltip: tr("Open new containers in selected panel")
|
||||
|
||||
ComboBox
|
||||
id: leftPanels
|
||||
anchors.left: leftPanelsLabel.left
|
||||
anchors.right: leftPanelsLabel.right
|
||||
anchors.top: leftPanelsLabel.bottom
|
||||
margin-top: 3
|
||||
margin-right: 20
|
||||
@onOptionChange: modules.client_options.setOption(self:getId(), self.currentIndex)
|
||||
@onSetup: |
|
||||
self:addOption("0")
|
||||
self:addOption("1")
|
||||
self:addOption("2")
|
||||
self:addOption("3")
|
||||
self:addOption("4")
|
||||
|
||||
ComboBox
|
||||
id: rightPanels
|
||||
anchors.left: rightPanelsLabel.left
|
||||
anchors.right: rightPanelsLabel.right
|
||||
anchors.top: rightPanelsLabel.bottom
|
||||
margin-top: 3
|
||||
margin-right: 20
|
||||
@onOptionChange: modules.client_options.setOption(self:getId(), self.currentIndex)
|
||||
@onSetup: |
|
||||
self:addOption("1")
|
||||
self:addOption("2")
|
||||
self:addOption("3")
|
||||
self:addOption("4")
|
||||
|
||||
ComboBox
|
||||
id: containerPanel
|
||||
anchors.left: backpackPanelLabel.left
|
||||
anchors.right: backpackPanelLabel.right
|
||||
anchors.top: backpackPanelLabel.bottom
|
||||
margin-top: 3
|
||||
@onOptionChange: modules.client_options.setOption(self:getId(), self.currentIndex)
|
||||
@onSetup: |
|
||||
self:addOption("1st left panel")
|
||||
self:addOption("2nd left panel")
|
||||
self:addOption("3rd left panel")
|
||||
self:addOption("4th left panel")
|
||||
self:addOption("1st right panel")
|
||||
self:addOption("2nd right panel")
|
||||
self:addOption("3rd right panel")
|
||||
self:addOption("4th right panel")
|
||||
|
||||
Label
|
||||
margin-top: 3
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
id: crosshairLabel
|
||||
!text: tr("Crosshair")
|
||||
|
||||
ComboBox
|
||||
id: crosshair
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 3
|
||||
margin-right: 2
|
||||
margin-left: 2
|
||||
@@ -171,9 +178,6 @@ Panel
|
||||
|
||||
Label
|
||||
id: floorFadingLabel
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 6
|
||||
@onSetup: |
|
||||
local value = modules.client_options.getOption('floorFading')
|
||||
@@ -181,17 +185,11 @@ Panel
|
||||
|
||||
OptionScrollbar
|
||||
id: floorFading
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 3
|
||||
minimum: 0
|
||||
maximum: 2000
|
||||
|
||||
Label
|
||||
id: floorFadingLabel2
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 6
|
||||
!text: (tr('Floor fading doesn\'t work with enabled light'))
|
||||
|
@@ -4,9 +4,9 @@ local defaultOptions = {
|
||||
showFps = true,
|
||||
showPing = true,
|
||||
fullscreen = false,
|
||||
classicView = true,
|
||||
classicView = not g_app.isMobile(),
|
||||
cacheMap = false,
|
||||
classicControl = true,
|
||||
classicControl = not g_app.isMobile(),
|
||||
smartWalk = false,
|
||||
dash = false,
|
||||
autoChaseOverride = true,
|
||||
@@ -18,9 +18,9 @@ local defaultOptions = {
|
||||
showPrivateMessagesInConsole = true,
|
||||
showPrivateMessagesOnScreen = true,
|
||||
rightPanels = 1,
|
||||
leftPanels = 2,
|
||||
leftPanels = g_app.isMobile() and 1 or 2,
|
||||
containerPanel = 8,
|
||||
backgroundFrameRate = 100,
|
||||
backgroundFrameRate = 60,
|
||||
enableAudio = true,
|
||||
enableMusicSound = false,
|
||||
musicSoundVolume = 100,
|
||||
@@ -42,10 +42,7 @@ local defaultOptions = {
|
||||
dontStretchShrink = false,
|
||||
turnDelay = 30,
|
||||
hotkeyDelay = 30,
|
||||
|
||||
ignoreServerDirection = true,
|
||||
realDirection = false,
|
||||
|
||||
|
||||
wsadWalking = false,
|
||||
walkFirstStepDelay = 200,
|
||||
walkTurnDelay = 100,
|
||||
@@ -104,20 +101,23 @@ function init()
|
||||
audioPanel = g_ui.loadUI('audio')
|
||||
optionsTabBar:addTab(tr('Audio'), audioPanel, '/images/optionstab/audio')
|
||||
|
||||
extrasPanel = g_ui.createWidget('Panel')
|
||||
extrasPanel = g_ui.createWidget('OptionPanel')
|
||||
for _, v in ipairs(g_extras.getAll()) do
|
||||
local extrasButton = g_ui.createWidget('OptionCheckBox')
|
||||
extrasButton:setId(v)
|
||||
extrasButton:setText(g_extras.getDescription(v))
|
||||
extrasPanel:addChild(extrasButton)
|
||||
end
|
||||
if not g_game.getFeature(GameNoDebug) then
|
||||
if not g_game.getFeature(GameNoDebug) and not g_app.isMobile() then
|
||||
optionsTabBar:addTab(tr('Extras'), extrasPanel, '/images/optionstab/extras')
|
||||
end
|
||||
|
||||
optionsButton = modules.client_topmenu.addLeftButton('optionsButton', tr('Options'), '/images/topbuttons/options', toggle)
|
||||
audioButton = modules.client_topmenu.addLeftButton('audioButton', tr('Audio'), '/images/topbuttons/audio', function() toggleOption('enableAudio') end)
|
||||
|
||||
if g_app.isMobile() then
|
||||
audioButton:hide()
|
||||
end
|
||||
|
||||
addEvent(function() setup() end)
|
||||
|
||||
connect(g_game, { onGameStart = online,
|
||||
@@ -316,10 +316,6 @@ 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
|
||||
|
@@ -2,25 +2,23 @@ OptionCheckBox < CheckBox
|
||||
@onCheckChange: modules.client_options.setOption(self:getId(), self:isChecked())
|
||||
height: 16
|
||||
|
||||
$first:
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
|
||||
$!first:
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 2
|
||||
|
||||
OptionScrollbar < HorizontalScrollBar
|
||||
step: 1
|
||||
@onValueChange: modules.client_options.setOption(self:getId(), self:getValue())
|
||||
|
||||
OptionPanel < Panel
|
||||
layout:
|
||||
type: verticalBox
|
||||
|
||||
MainWindow
|
||||
id: optionsWindow
|
||||
!text: tr('Options')
|
||||
size: 480 460
|
||||
size: 490 500
|
||||
$mobile:
|
||||
size: 490 360
|
||||
|
||||
@onEnter: modules.client_options.hide()
|
||||
@onEscape: modules.client_options.hide()
|
||||
|
Reference in New Issue
Block a user