Add a button to show the top menu when it's hidden

This commit is contained in:
Kamil Chojnowski
2017-11-19 02:00:02 +01:00
parent 483988f814
commit 68371c98d4
3 changed files with 20 additions and 0 deletions

View File

@@ -177,9 +177,11 @@ function toggle()
menu:hide()
modules.client_background.getBackground():addAnchor(AnchorTop, 'parent', AnchorTop)
modules.game_interface.getRootPanel():addAnchor(AnchorTop, 'parent', AnchorTop)
modules.game_interface.getShowTopMenuButton():show()
else
menu:show()
modules.client_background.getBackground():addAnchor(AnchorTop, 'topMenu', AnchorBottom)
modules.game_interface.getRootPanel():addAnchor(AnchorTop, 'topMenu', AnchorBottom)
modules.game_interface.getShowTopMenuButton():hide()
end
end