Save gamemap height #207. UISplitter needs a rework.

This commit is contained in:
Henrique Santiago 2013-02-14 13:54:33 -02:00
parent d9ee4dccbe
commit 5fc1ac8051
1 changed files with 17 additions and 0 deletions

View File

@ -49,6 +49,7 @@ function init()
setupViewMode(0)
bindKeys()
load()
if g_game.isOnline() then
show()
@ -111,6 +112,7 @@ function bindKeys()
end
function terminate()
save()
hide()
stopSmartWalk()
@ -177,6 +179,21 @@ function hide()
modules.client_background.show()
end
function save()
local settings = {}
settings.splitterMarginBottom = bottomSplitter:getMarginBottom()
g_settings.setNode('GameInterface', settings)
end
function load()
local settings = g_settings.getNode('GameInterface')
if settings then
if settings.splitterMarginBottom then
bottomSplitter:setMarginBottom(settings.splitterMarginBottom)
end
end
end
function onLoginAdvice(message)
displayInfoBox(tr("For Your Information"), message)
end