mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 22:43:27 +02:00
Add a button to show the top menu when it's hidden
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user