Version 1.9

This commit is contained in:
OTCv8
2020-01-21 23:45:52 +01:00
parent 11ad766308
commit be8704ee92
56 changed files with 3517 additions and 483 deletions

View File

@@ -62,7 +62,7 @@ Panel
anchors.left: parent.left
anchors.right: parent.right
margin-top: 3
minimum: 0
minimum: 50
maximum: 300
Label

View File

@@ -3,6 +3,18 @@ Panel
id: classicView
!text: tr('Classic view')
OptionCheckBox
id: cacheMap
!text: tr('Cache map (for non-classic view)')
OptionCheckBox
id: actionBar1
!text: tr("Show first action bar")
OptionCheckBox
id: actionBar2
!text: tr("Show second action bar")
OptionCheckBox
id: showPing
!text: tr('Show connection ping')
@@ -41,7 +53,7 @@ Panel
!text: tr('Highlight things under cursor')
Label
margin-top: 12
margin-top: 5
width: 90
anchors.left: parent.left
anchors.top: prev.bottom
@@ -110,7 +122,7 @@ Panel
self:addOption("4th right panel")
Label
margin-top: 12
margin-top: 3
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom

View File

@@ -4,6 +4,7 @@ local defaultOptions = {
showPing = true,
fullscreen = false,
classicView = true,
cacheMap = false,
classicControl = true,
smartWalk = false,
dash = false,
@@ -49,7 +50,10 @@ local defaultOptions = {
walkTurnDelay = 100,
walkStairsDelay = 50,
walkTeleportDelay = 200,
walkCtrlTurnDelay = 150
walkCtrlTurnDelay = 150,
actionBar1 = true,
actionBar2 = false
}
local optionsWindow
@@ -343,8 +347,10 @@ function setOption(key, value, force)
g_settings.set(key, value)
options[key] = value
if key == 'classicView' or key == 'rightPanels' or key == 'leftPanels' then
if key == 'classicView' or key == 'rightPanels' or key == 'leftPanels' or key == 'cacheMap' then
modules.game_interface.refreshViewMode()
elseif key == 'actionBar1' or key == 'actionBar2' then
modules.game_actionbar.show()
end
end