|
|
@ -5,6 +5,7 @@ gameMapPanel = nil
|
|
|
|
gameRightPanel = nil
|
|
|
|
gameRightPanel = nil
|
|
|
|
gameLeftPanel = nil
|
|
|
|
gameLeftPanel = nil
|
|
|
|
gameBottomPanel = nil
|
|
|
|
gameBottomPanel = nil
|
|
|
|
|
|
|
|
showTopMenuButton = nil
|
|
|
|
logoutButton = nil
|
|
|
|
logoutButton = nil
|
|
|
|
mouseGrabberWidget = nil
|
|
|
|
mouseGrabberWidget = nil
|
|
|
|
countWindow = nil
|
|
|
|
countWindow = nil
|
|
|
@ -55,6 +56,11 @@ function init()
|
|
|
|
logoutButton = modules.client_topmenu.addLeftButton('logoutButton', tr('Exit'),
|
|
|
|
logoutButton = modules.client_topmenu.addLeftButton('logoutButton', tr('Exit'),
|
|
|
|
'/images/topbuttons/logout', tryLogout, true)
|
|
|
|
'/images/topbuttons/logout', tryLogout, true)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showTopMenuButton = gameMapPanel:getChildById('showTopMenuButton')
|
|
|
|
|
|
|
|
showTopMenuButton.onClick = function()
|
|
|
|
|
|
|
|
modules.client_topmenu.toggle()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
setupViewMode(0)
|
|
|
|
setupViewMode(0)
|
|
|
|
|
|
|
|
|
|
|
|
bindKeys()
|
|
|
|
bindKeys()
|
|
|
@ -800,6 +806,10 @@ function getBottomPanel()
|
|
|
|
return gameBottomPanel
|
|
|
|
return gameBottomPanel
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getShowTopMenuButton()
|
|
|
|
|
|
|
|
return showTopMenuButton
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function onLeftPanelVisibilityChange(leftPanel, visible)
|
|
|
|
function onLeftPanelVisibilityChange(leftPanel, visible)
|
|
|
|
if not visible and g_game.isOnline() then
|
|
|
|
if not visible and g_game.isOnline() then
|
|
|
|
local children = leftPanel:getChildren()
|
|
|
|
local children = leftPanel:getChildren()
|
|
|
|