Option: Don't Stretch/Shrink Game Window

Sets gameMapPanel to size 480 x 352
Prevents resizing.
This commit is contained in:
Samuel
2012-10-10 01:25:50 +02:00
parent 95e46dbbaf
commit 478e796dbd
5 changed files with 25 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ local defaultOptions = {
showFps = true,
showPing = true,
fullscreen = false,
dontStretchShrink = false,
classicControl = false,
walkBooster = false,
smartWalk = false,
@@ -144,6 +145,10 @@ function Options.setOption(key, value)
end)
elseif key == 'fullscreen' then
g_window.setFullscreen(value)
elseif key == 'dontStretchShrink' then
addEvent(function()
modules.game_interface.updateStretchShrink()
end)
elseif key == 'enableMusic' then
g_sounds.enableMusic(value)
elseif key == 'showLeftPanel' then