parent
778559c7b9
commit
67bd00556d
|
@ -39,6 +39,10 @@ Panel
|
||||||
id: fullscreen
|
id: fullscreen
|
||||||
!text: tr('Fullscreen')
|
!text: tr('Fullscreen')
|
||||||
tooltip: Ctrl+Shift+F
|
tooltip: Ctrl+Shift+F
|
||||||
|
|
||||||
|
OptionCheckBox
|
||||||
|
id: dontStretchShrink
|
||||||
|
!text: tr('Don\'t stretch/shrink Game Window')
|
||||||
|
|
||||||
Label
|
Label
|
||||||
id: backgroundFrameRateLabel
|
id: backgroundFrameRateLabel
|
||||||
|
@ -46,7 +50,7 @@ Panel
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: prev.bottom
|
anchors.top: prev.bottom
|
||||||
margin-top: 6
|
margin-top: 12
|
||||||
@onSetup: |
|
@onSetup: |
|
||||||
local value = modules.client_options.getOption('backgroundFrameRate')
|
local value = modules.client_options.getOption('backgroundFrameRate')
|
||||||
local text = value
|
local text = value
|
||||||
|
|
|
@ -25,7 +25,8 @@ local defaultOptions = {
|
||||||
ambientLight = 25,
|
ambientLight = 25,
|
||||||
displayNames = true,
|
displayNames = true,
|
||||||
displayHealth = true,
|
displayHealth = true,
|
||||||
displayText = true
|
displayText = true,
|
||||||
|
dontStretchShrink = false
|
||||||
}
|
}
|
||||||
|
|
||||||
local optionsWindow
|
local optionsWindow
|
||||||
|
@ -223,6 +224,10 @@ function setOption(key, value, force)
|
||||||
gameMapPanel:setDrawHealthBars(value)
|
gameMapPanel:setDrawHealthBars(value)
|
||||||
elseif key == 'displayText' then
|
elseif key == 'displayText' then
|
||||||
gameMapPanel:setDrawTexts(value)
|
gameMapPanel:setDrawTexts(value)
|
||||||
|
elseif key == 'dontStretchShrink' then
|
||||||
|
addEvent(function()
|
||||||
|
modules.game_interface.updateStretchShrink()
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- change value for keybind updates
|
-- change value for keybind updates
|
||||||
|
|
Loading…
Reference in New Issue