|
@@ -5,6 +5,7 @@ gameMapPanel = nil
|
5
|
5
|
gameRightPanel = nil
|
6
|
6
|
gameLeftPanel = nil
|
7
|
7
|
gameBottomPanel = nil
|
|
8
|
+showTopMenuButton = nil
|
8
|
9
|
logoutButton = nil
|
9
|
10
|
mouseGrabberWidget = nil
|
10
|
11
|
countWindow = nil
|
|
@@ -55,6 +56,11 @@ function init()
|
55
|
56
|
logoutButton = modules.client_topmenu.addLeftButton('logoutButton', tr('Exit'),
|
56
|
57
|
'/images/topbuttons/logout', tryLogout, true)
|
57
|
58
|
|
|
59
|
+ showTopMenuButton = gameMapPanel:getChildById('showTopMenuButton')
|
|
60
|
+ showTopMenuButton.onClick = function()
|
|
61
|
+ modules.client_topmenu.toggle()
|
|
62
|
+ end
|
|
63
|
+
|
58
|
64
|
setupViewMode(0)
|
59
|
65
|
|
60
|
66
|
bindKeys()
|
|
@@ -800,6 +806,10 @@ function getBottomPanel()
|
800
|
806
|
return gameBottomPanel
|
801
|
807
|
end
|
802
|
808
|
|
|
809
|
+function getShowTopMenuButton()
|
|
810
|
+ return showTopMenuButton
|
|
811
|
+end
|
|
812
|
+
|
803
|
813
|
function onLeftPanelVisibilityChange(leftPanel, visible)
|
804
|
814
|
if not visible and g_game.isOnline() then
|
805
|
815
|
local children = leftPanel:getChildren()
|