From b5eba5346ca418dc30564a1d05b2dceb0bbef9bf Mon Sep 17 00:00:00 2001 From: JuanJakobo Date: Mon, 11 Jul 2022 10:51:49 +0200 Subject: [PATCH] hide Panel --- src/handler/mainMenu.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/handler/mainMenu.cpp b/src/handler/mainMenu.cpp index 5d01df8..e5ff51e 100644 --- a/src/handler/mainMenu.cpp +++ b/src/handler/mainMenu.cpp @@ -15,10 +15,9 @@ using std::string; MainMenu::MainMenu(const string &name) { - //Define panel size _panelMenuHeight = ScreenHeight() / 18; - _panelMenuBeginY = 0; _mainMenuWidth = ScreenWidth() / 3; + _panelMenuBeginY = 0; _panelMenuBeginX = ScreenWidth() - _mainMenuWidth; _menuButtonRect = iRect(_mainMenuWidth * 2, _panelMenuBeginY, _mainMenuWidth, _panelMenuHeight, ALIGN_RIGHT); @@ -30,10 +29,10 @@ MainMenu::MainMenu(const string &name) DrawTextRect2(&_menuButtonRect, "Menu"); DrawLine(0, _panelMenuHeight - 1, ScreenWidth(), _panelMenuHeight - 1, BLACK); - _contentRect = iRect(0, _panelMenuHeight, ScreenWidth(), (ScreenHeight() - PanelHeight() - _panelMenuHeight), 0); + _contentRect = iRect(0, _panelMenuHeight, ScreenWidth(), (ScreenHeight() - _panelMenuHeight), 0); - SetHardTimer("PANELUPDATE", panelHandlerStatic, 110000); - DrawPanel(NULL, "", NULL, -1); + SetPanelType(0); + PartialUpdate(0, _panelMenuBeginY, ScreenWidth(), _panelMenuHeight); } MainMenu::~MainMenu() @@ -76,4 +75,4 @@ int MainMenu::createMenu(bool loggedIn, bool workOffline, iv_menuhandler handler OpenMenu(mainMenu, 0, _panelMenuBeginX, _panelMenuBeginY, handler); return 1; -} \ No newline at end of file +}