working on text notifications

This commit is contained in:
2021-08-28 00:55:27 +02:00
parent 3f53ba333b
commit cc8ef6e927
2 changed files with 18 additions and 6 deletions

View File

@@ -166,8 +166,7 @@ bool Director::initSDL()
else else
{ {
// Crea un renderizador para la ventana con vsync // Crea un renderizador para la ventana con vsync
//mRenderer = SDL_CreateRenderer(mWindow, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC); mRenderer = SDL_CreateRenderer(mWindow, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
mRenderer = SDL_CreateRenderer(mWindow, -1, SDL_RENDERER_ACCELERATED);
if (mRenderer == NULL) if (mRenderer == NULL)
{ {
printf("Renderer could not be created!\nSDL Error: %s\n", SDL_GetError()); printf("Renderer could not be created!\nSDL Error: %s\n", SDL_GetError());

View File

@@ -257,12 +257,25 @@ void Title::init(bool demo, Uint8 subsection)
mMenu.title->centerMenu(SCREEN_CENTER_X); mMenu.title->centerMenu(SCREEN_CENTER_X);
mMenu.title->centerMenuElements(); mMenu.title->centerMenuElements();
mMenu.options->init("OPTIONS", 0, 14 * BLOCK, MENU_BACKGROUND_SOLID); //mMenu.options->init("OPTIONS", 0, 14 * BLOCK, MENU_BACKGROUND_SOLID);
mMenu.options->addItem(mTextStrings[4]); //mMenu.options->addItem(mTextStrings[4]);
//mMenu.options->addItem(mTextStrings[7]);
//mMenu.options->addItem(mTextStrings[8], 0, 5);
//mMenu.options->addItem(mTextStrings[9]);
//mMenu.options->addItem(mTextStrings[10]);
//mMenu.options->setDefaultActionWhenCancel(4);
//mMenu.options->setBackgroundColor(0x30, 0x30, 0x40, 192);
//mMenu.options->setSelectorColor(0xe5, 0x1c, 0x23, 255);
//mMenu.options->setSelectorTextColor(0xFF, 0xF1, 0x76);
//mMenu.options->centerMenu(SCREEN_CENTER_X);
//mMenu.options->centerMenuElements();
mMenu.options->init("OPTIONS", 0, BLOCK, MENU_BACKGROUND_SOLID);
mMenu.options->addItem(mTextStrings[4]); // WINDOW
mMenu.options->addItem(mTextStrings[7]); mMenu.options->addItem(mTextStrings[7]);
mMenu.options->addItem(mTextStrings[8], 0, 5); mMenu.options->addItem(mTextStrings[8], 0, 5);
mMenu.options->addItem(mTextStrings[9]); mMenu.options->addItem(mTextStrings[9]); // ACCEPT
mMenu.options->addItem(mTextStrings[10]); mMenu.options->addItem(mTextStrings[10]); // CANCEL
mMenu.options->setDefaultActionWhenCancel(4); mMenu.options->setDefaultActionWhenCancel(4);
mMenu.options->setBackgroundColor(0x30, 0x30, 0x40, 192); mMenu.options->setBackgroundColor(0x30, 0x30, 0x40, 192);
mMenu.options->setSelectorColor(0xe5, 0x1c, 0x23, 255); mMenu.options->setSelectorColor(0xe5, 0x1c, 0x23, 255);