multi lang support
This commit is contained in:
@@ -36,12 +36,13 @@ private:
|
||||
SDL_Event *mEventHandler; // Manejador de eventos
|
||||
SDL_Rect mBackgroundWindow; // Ventana visible para la textura de fondo del titulo
|
||||
SDL_Renderer *mRenderer; // El renderizador de la ventana
|
||||
SDL_Texture *mBackbuffer; // Textura para usar como backbuffer
|
||||
//SDL_Texture *mBackbuffer; // Textura para usar como backbuffer
|
||||
SDL_Texture *mBackground; // Textura dibujar el fondo del titulo
|
||||
SmartSprite *mCoffeeBitmap; // Sprite con la palabra COFFEE para la pantalla de titulo
|
||||
SmartSprite *mCrisisBitmap; // Sprite con la palabra CRISIS para la pantalla de titulo
|
||||
Sprite *mTile; // Sprite para dibujar el fondo de pantalla del título
|
||||
std::string *mFileList; // Lista de ficheros
|
||||
std::string *mTextStrings; // Vector con los textos del juego
|
||||
Uint16 mBackgroundCounter; // Temporizador para el fondo de tiles de la pantalla de titulo
|
||||
Uint16 mCounter; // Temporizador para la pantalla de titulo
|
||||
Uint32 mTicks; // Contador de ticks para ajustar la velocidad del programa
|
||||
@@ -75,8 +76,8 @@ private:
|
||||
// Cambia el valor de la variable de modo de pantalla completa
|
||||
void switchFullScreenModeVar();
|
||||
|
||||
// Actualiza los elementos del menu de opciones
|
||||
void updateOptionsMenuLabels();
|
||||
// Actualiza los elementos de los menus
|
||||
void updateMenuLabels();
|
||||
|
||||
// Aplica las opciones de menu seleccionadas
|
||||
void applyOptions();
|
||||
@@ -89,16 +90,13 @@ private:
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
Title(SDL_Window *window, SDL_Renderer *renderer, Input *input, std::string *fileList, options_t *options);
|
||||
Title(SDL_Window *window, SDL_Renderer *renderer, Input *input, std::string *fileList, options_t *options, std::string *textStrings);
|
||||
|
||||
// Destructor
|
||||
~Title();
|
||||
|
||||
// Inicializa las variables necesarias para la sección 'Title'
|
||||
void init(Uint8 subsection = TITLE_SECTION_1);
|
||||
|
||||
// Resetea las variables necesarias para la sección 'Title'
|
||||
void reset(Uint8 subsection = TITLE_SECTION_1);
|
||||
void init(bool demo = true, Uint8 subsection = TITLE_SECTION_1);
|
||||
|
||||
// Bucle para el titulo del juego
|
||||
section_t run(Uint8 subsection = TITLE_SECTION_1);
|
||||
|
||||
Reference in New Issue
Block a user