hide Panel

pull/23/head
JuanJakobo 2022-07-11 10:51:49 +02:00
parent 8123ccd71c
commit b5eba5346c
1 changed files with 5 additions and 6 deletions

View File

@ -15,10 +15,9 @@ using std::string;
MainMenu::MainMenu(const string &name) MainMenu::MainMenu(const string &name)
{ {
//Define panel size
_panelMenuHeight = ScreenHeight() / 18; _panelMenuHeight = ScreenHeight() / 18;
_panelMenuBeginY = 0;
_mainMenuWidth = ScreenWidth() / 3; _mainMenuWidth = ScreenWidth() / 3;
_panelMenuBeginY = 0;
_panelMenuBeginX = ScreenWidth() - _mainMenuWidth; _panelMenuBeginX = ScreenWidth() - _mainMenuWidth;
_menuButtonRect = iRect(_mainMenuWidth * 2, _panelMenuBeginY, _mainMenuWidth, _panelMenuHeight, ALIGN_RIGHT); _menuButtonRect = iRect(_mainMenuWidth * 2, _panelMenuBeginY, _mainMenuWidth, _panelMenuHeight, ALIGN_RIGHT);
@ -30,10 +29,10 @@ MainMenu::MainMenu(const string &name)
DrawTextRect2(&_menuButtonRect, "Menu"); DrawTextRect2(&_menuButtonRect, "Menu");
DrawLine(0, _panelMenuHeight - 1, ScreenWidth(), _panelMenuHeight - 1, BLACK); 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); SetPanelType(0);
DrawPanel(NULL, "", NULL, -1); PartialUpdate(0, _panelMenuBeginY, ScreenWidth(), _panelMenuHeight);
} }
MainMenu::~MainMenu() MainMenu::~MainMenu()