Re-added "Don't stretch/shrink" option

Closes #345
This commit is contained in:
Sam
2013-10-09 18:17:50 +02:00
parent 778559c7b9
commit 67bd00556d
2 changed files with 11 additions and 2 deletions

View File

@@ -25,7 +25,8 @@ local defaultOptions = {
ambientLight = 25,
displayNames = true,
displayHealth = true,
displayText = true
displayText = true,
dontStretchShrink = false
}
local optionsWindow
@@ -223,6 +224,10 @@ function setOption(key, value, force)
gameMapPanel:setDrawHealthBars(value)
elseif key == 'displayText' then
gameMapPanel:setDrawTexts(value)
elseif key == 'dontStretchShrink' then
addEvent(function()
modules.game_interface.updateStretchShrink()
end)
end
-- change value for keybind updates