Updated to OTCv8 3.1 rev 131

This commit is contained in:
OTCv8
2022-02-15 21:11:37 +00:00
parent 5a3e429d32
commit 80177bd151
136 changed files with 2685 additions and 5381 deletions

View File

@@ -49,24 +49,9 @@ local defaultOptions = {
walkStairsDelay = 50,
walkTeleportDelay = 200,
walkCtrlTurnDelay = 150,
topBar = true,
actionbarBottom1 = true,
actionbarBottom2 = false,
actionbarBottom3 = false,
actionbarLeft1 = false,
actionbarLeft2 = false,
actionbarLeft3 = false,
actionbarRight1 = false,
actionbarRight2 = false,
actionbarRight3 = false,
actionbarLock = true,
profile = 1
actionBar1 = true,
actionBar2 = false
}
local optionsWindow
@@ -78,8 +63,7 @@ local generalPanel
local interfacePanel
local consolePanel
local graphicsPanel
local audioPanel
local customPanel
local soundPanel
local extrasPanel
local audioButton
@@ -117,7 +101,6 @@ 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')
@@ -129,9 +112,6 @@ 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
@@ -376,20 +356,12 @@ 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:find("actionbar") then
elseif key == 'actionBar1' or key == 'actionBar2' then
modules.game_actionbar.show()
end
if key == 'topBar' then
modules.game_topbar.show()
end
end
function getOption(key)