Improved menu class

This commit is contained in:
2021-08-30 20:58:57 +02:00
parent 74c08884ae
commit 22ca349171
5 changed files with 156 additions and 180 deletions

View File

@@ -384,8 +384,8 @@ void Game::init()
// Inicializa el objeto con el menu de pausa
mMenuPause->init("PAUSE", 0, 12 * BLOCK, MENU_BACKGROUND_SOLID);
mMenuPause->addItem(mLang->getText(46));
mMenuPause->addItem(mLang->getText(47));
mMenuPause->addItem(mLang->getText(46), 2);
mMenuPause->addItem(mLang->getText(47), 0);
mMenuPause->setDefaultActionWhenCancel(0);
mMenuPause->setBackgroundColor(0x29, 0x39, 0x41, 240);
mMenuPause->setSelectorColor(0xFF, 0x7A, 0x00, 255);
@@ -395,7 +395,7 @@ void Game::init()
// Inicializa el objeto con el menu de la pantalla de game over
mMenuGameOver->init("GAME OVER", 0, PLAY_AREA_CENTER_Y + BLOCK * 4, MENU_BACKGROUND_TRANSPARENT);
mMenuGameOver->addItem(mLang->getText(48));
mMenuGameOver->addItem(mLang->getText(48), 2);
mMenuGameOver->addItem(mLang->getText(49));
mMenuGameOver->setDefaultActionWhenCancel(1);
mMenuGameOver->setBackgroundColor(0, 0, 0, 255);
@@ -2961,7 +2961,7 @@ void Game::renderMessages()
//mSpriteGetReady->render();
const color_t color = {0x17, 0x17, 0x26};
//mTextBig->writeShadowed((int)mGetReadyBitmapPath[mCounter], PLAY_AREA_CENTER_Y - 8, mLang->getText(75), color, 2);
mTextBig->writeDX(TXT_STROKE, (int)mGetReadyBitmapPath[mCounter], PLAY_AREA_CENTER_Y - 8, mLang->getText(75),1, noColor, 1, shdwTxtColor);
mTextBig->writeDX(TXT_STROKE, (int)mGetReadyBitmapPath[mCounter], PLAY_AREA_CENTER_Y - 8, mLang->getText(75), 1, noColor, 1, shdwTxtColor);
}
// Time Stopped