Updated to OTCv8 3.1 rev 132

This commit is contained in:
OTCv8
2022-02-17 11:22:38 +00:00
parent 80177bd151
commit db1d638018
135 changed files with 5381 additions and 2684 deletions

View File

@@ -49,9 +49,24 @@ local defaultOptions = {
walkStairsDelay = 50,
walkTeleportDelay = 200,
walkCtrlTurnDelay = 150,
actionBar1 = true,
actionBar2 = false
topBar = true,
actionbarBottom1 = true,
actionbarBottom2 = false,
actionbarBottom3 = false,
actionbarLeft1 = false,
actionbarLeft2 = false,
actionbarLeft3 = false,
actionbarRight1 = false,
actionbarRight2 = false,
actionbarRight3 = false,
actionbarLock = true,
profile = 1
}
local optionsWindow
@@ -63,7 +78,8 @@ local generalPanel
local interfacePanel
local consolePanel
local graphicsPanel
local soundPanel
local audioPanel
local customPanel
local extrasPanel
local audioButton
@@ -101,6 +117,7 @@ function init()
audioPanel = g_ui.loadUI('audio')
optionsTabBar:addTab(tr('Audio'), audioPanel, '/images/optionstab/audio')
extrasPanel = g_ui.createWidget('OptionPanel')
for _, v in ipairs(g_extras.getAll()) do
local extrasButton = g_ui.createWidget('OptionCheckBox')
@@ -112,6 +129,9 @@ function init()
optionsTabBar:addTab(tr('Extras'), extrasPanel, '/images/optionstab/extras')
end
customPanel = g_ui.loadUI('custom')
optionsTabBar:addTab(tr('Custom'), customPanel, '/images/optionstab/features')
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
@@ -356,12 +376,20 @@ function setOption(key, value, force)
g_settings.set(key, value)
options[key] = value
if key == "profile" then
modules.client_profiles.onProfileChange()
end
if key == 'classicView' or key == 'rightPanels' or key == 'leftPanels' or key == 'cacheMap' then
modules.game_interface.refreshViewMode()
elseif key == 'actionBar1' or key == 'actionBar2' then
elseif key:find("actionbar") then
modules.game_actionbar.show()
end
if key == 'topBar' then
modules.game_topbar.show()
end
end
function getOption(key)