improve minimap

This commit is contained in:
Eduardo Bart
2012-06-22 02:26:22 -03:00
parent aed779a2c8
commit d39cf361ab
20 changed files with 144 additions and 77 deletions

View File

@@ -65,6 +65,15 @@ function GameInterface.init()
Keyboard.bindKeyDown('Ctrl+L', GameInterface.tryLogout, gameRootPanel)
Keyboard.bindKeyDown('Ctrl+W', function() g_map.cleanTexts() TextMessage.clearMessages() end, gameRootPanel)
Keyboard.bindKeyDown('Ctrl+.', function()
if gameMapPanel:isKeepAspectRatioEnabled() then
gameMapPanel:setKeepAspectRatio(false)
else
gameMapPanel:setKeepAspectRatio(true)
gameMapPanel:setVisibleDimension({ width = 15, height = 11 })
end
end)
if g_game.isOnline() then
GameInterface.show()
end