diff --git a/source/define_buttons.cpp b/source/define_buttons.cpp index ef40f99..98096c5 100644 --- a/source/define_buttons.cpp +++ b/source/define_buttons.cpp @@ -36,7 +36,7 @@ void DefineButtons::render() } // Comprueba el botón que se ha pulsado -void DefineButtons::doControllerButtonDown(SDL_ControllerButtonEvent &event) +void DefineButtons::doControllerButtonDown(const SDL_ControllerButtonEvent &event) { // Solo pilla botones del mando que toca if (input_->getJoyIndex(event.which) != static_cast(index_controller_)) @@ -124,8 +124,6 @@ void DefineButtons::incIndexButton() saveBindingsToOptions(); // Deshabilita - //index_controller_ = 0; - //index_button_ = 0; enabled_ = false; } } diff --git a/source/define_buttons.h b/source/define_buttons.h index 5dba350..f69bf54 100644 --- a/source/define_buttons.h +++ b/source/define_buttons.h @@ -1,13 +1,14 @@ #pragma once -#include // para SDL_ControllerButtonEvent -#include // para SDL_GameControllerButton -#include // para shared_ptr, unique_ptr -#include // para string -#include // para vector -class Input; -class Text; -enum class InputType : int; +#include // Para SDL_ControllerButtonEvent +#include // Para SDL_GameControllerButton +#include // Para size_t +#include // Para shared_ptr, unique_ptr +#include // Para string +#include // Para vector +class Input; // lines 8-8 +class Text; // lines 9-9 +enum class InputType : int; // lines 10-10 struct DefineButtonsButton { @@ -41,7 +42,7 @@ private: void incIndexButton(); // Comprueba el botón que se ha pulsado - void doControllerButtonDown(SDL_ControllerButtonEvent &event); + void doControllerButtonDown(const SDL_ControllerButtonEvent &event); // Asigna los botones definidos al input void bindButtons(); diff --git a/source/director.cpp b/source/director.cpp index 27e6575..0b35c99 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -7,17 +7,17 @@ #include // Para SDL_SetHint, SDL_HINT_RENDER_DR... #include // Para SDL_SCANCODE_0, SDL_SCANCODE_DOWN #include // Para SDL_bool, Uint32 -#include // Para SDL_GetTicks +#include // Para duration, system_clock #include // Para errno, EEXIST, EACCES, ENAMETOO... #include // Para printf, perror -#include // Para strcmp #include // Para mkdir, stat, S_IRWXU #include // Para getuid -#include // Para exit, EXIT_FAILURE, rand, srand -#include // Para basic_ostream, operator<<, cout +#include // Para min +#include // Para exit, EXIT_FAILURE, size_t, rand +#include // Para basic_ostream, operator<<, basi... #include // Para make_unique, unique_ptr, make_s... #include // Para runtime_error -#include // Para operator+, allocator, char_traits +#include // Para operator+, char_traits, allocator #include // Para vector #include "asset.h" // Para Asset, AssetType #include "dbgtxt.h" // Para dbg_init @@ -27,13 +27,13 @@ #include "input.h" // Para Input, InputType #include "instructions.h" // Para Instructions #include "intro.h" // Para Intro -#include "jail_audio.h" // Para JA_EnableMusic, JA_EnableSound +#include "jail_audio.h" // Para JA_SetMusicVolume, JA_SetSoundV... #include "lang.h" // Para Code, loadFromFile #include "logo.h" // Para Logo #include "manage_hiscore_table.h" // Para ManageHiScoreTable #include "notifier.h" // Para Notifier #include "on_screen_help.h" // Para OnScreenHelp -#include "options.h" // Para Options, options, OptionsContro... +#include "options.h" // Para Options, OptionsController, opt... #include "param.h" // Para Param, ParamGame, param, loadPa... #include "resource.h" // Para Resource #include "screen.h" // Para Screen @@ -41,7 +41,6 @@ #include "text.h" // Para Text #include "title.h" // Para Title #include "utils.h" // Para Overrides, overrides -#include #ifndef _WIN32 #include // para getpwuid, passwd @@ -511,8 +510,6 @@ void Director::setFileList() // Comprueba los parametros del programa void Director::checkProgramArguments(int argc, const char *argv[]) { - const std::vector argument_list = {"--320x240", "--clear_score"}; - // Establece la ruta del programa executable_path_ = argv[0]; diff --git a/source/game.cpp b/source/game.cpp index 59d4a26..4f40b5b 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -1,39 +1,39 @@ #include "game.h" -#include "asset.h" // for Asset -#include "background.h" // for Background -#include "balloon.h" // for Balloon, BALLOON_SCORE, BALLOON_VE... -#include "balloon_formations.h" // for BalloonFormations, BalloonFormatio... -#include "bullet.h" // for Bullet, BulletType, BulletMoveStatus -#include "explosions.h" // for Explosions -#include "fade.h" // for Fade, FadeType -#include "global_inputs.h" // for check -#include "input.h" // for InputType, Input, INPUT_DO_NOT_ALL... -#include "item.h" // for Item, ItemType -#include "jail_audio.h" // for JA_PlaySound, JA_GetMusicState -#include "lang.h" // for getText -#include "manage_hiscore_table.h" // for ManageHiScoreTable, HiScoreEntry -#include "notifier.h" // for Notifier -#include "param.h" // for Param, param, ParamGame, ParamFade -#include "path_sprite.h" // for Path, PathSprite, createPath, Path... -#include "player.h" // for Player, PlayerStatus -#include "resource.h" // for Resource -#include "scoreboard.h" // for Scoreboard, ScoreboardMode, SCOREB... -#include "screen.h" // for Screen -#include "section.h" // for Name, name, Options, options -#include "smart_sprite.h" // for SmartSprite -#include "text.h" // for Text -#include "texture.h" // for Texture -#include // for SDL_BLENDMODE_BLEND -#include // for SDL_PollEvent, SDL_Event, SDL_KEYDOWN -#include // for SDLK_1, SDLK_2, SDLK_3, SDLK_4 -#include // for SDL_PIXELFORMAT_RGBA8888 -#include // for SDL_GetTicks -#include // for SDL_WINDOWEVENT_FOCUS_GAINED, SDL_... -#include // for find_if, clamp, min, remove_if -#include // for function -#include // for distance, size -#include // for accumulate -#include // for rand, size_t +#include "asset.h" // Para Asset +#include "background.h" // Para Background +#include "balloon.h" // Para Balloon, BALLOON_SCORE, BALLOON_VE... +#include "balloon_formations.h" // Para BalloonFormations, BalloonFormatio... +#include "bullet.h" // Para Bullet, BulletType, BulletMoveStatus +#include "explosions.h" // Para Explosions +#include "fade.h" // Para Fade, FadeType +#include "global_inputs.h" // Para check +#include "input.h" // Para InputType, Input, INPUT_DO_NOT_ALL... +#include "item.h" // Para Item, ItemType +#include "jail_audio.h" // Para JA_PlaySound, JA_GetMusicState +#include "lang.h" // Para getText +#include "manage_hiscore_table.h" // Para ManageHiScoreTable, HiScoreEntry +#include "notifier.h" // Para Notifier +#include "param.h" // Para Param, param, ParamGame, ParamFade +#include "path_sprite.h" // Para Path, PathSprite, createPath, Path... +#include "player.h" // Para Player, PlayerStatus +#include "resource.h" // Para Resource +#include "scoreboard.h" // Para Scoreboard, ScoreboardMode, SCOREB... +#include "screen.h" // Para Screen +#include "section.h" // Para Name, name, Options, options +#include "smart_sprite.h" // Para SmartSprite +#include "text.h" // Para Text +#include "texture.h" // Para Texture +#include // Para SDL_BLENDMODE_BLEND +#include // Para SDL_PollEvent, SDL_Event, SDL_KEYDOWN +#include // Para SDLK_1, SDLK_2, SDLK_3, SDLK_4 +#include // Para SDL_PIXELFORMAT_RGBA8888 +#include // Para SDL_GetTicks +#include // Para SDL_WINDOWEVENT_FOCUS_GAINED, SDL_... +#include // Para find_if, clamp, min, remove_if +#include // Para function +#include // Para distance, size +#include // Para accumulate +#include // Para rand, size_t struct JA_Sound_t; // lines 36-36 diff --git a/source/game.h b/source/game.h index f5a533c..9474f91 100644 --- a/source/game.h +++ b/source/game.h @@ -1,15 +1,15 @@ #pragma once -#include // for SDL_Renderer, SDL_Texture -#include // for Uint32, Uint8 -#include // for shared_ptr, unique_ptr -#include // for string -#include // for vector -#include "balloon.h" // for Balloon -#include "manage_hiscore_table.h" // for HiScoreEntry -#include "options.h" // for Options, OptionsGame, options -#include "player.h" // for Player -#include "utils.h" // for Demo +#include // Para SDL_Renderer, SDL_Texture +#include // Para Uint32, Uint8 +#include // Para shared_ptr, unique_ptr +#include // Para string +#include // Para vector +#include "balloon.h" // Para Balloon +#include "manage_hiscore_table.h" // Para HiScoreEntry +#include "options.h" // Para Options, OptionsGame, options +#include "player.h" // Para Player +#include "utils.h" // Para Demo class Asset; // lines 14-14 class Background; // lines 15-15 class BalloonFormations; // lines 16-16 diff --git a/source/input.cpp b/source/input.cpp index a6899c9..b997efb 100644 --- a/source/input.cpp +++ b/source/input.cpp @@ -1,11 +1,13 @@ #include "input.h" -#include // para SDL_INIT_GAMECONTROLLER, SDL_InitSubS... -#include // para SDL_GetError -#include // para SDL_ENABLE -#include // para SDL_GetKeyboardState -#include // para basic_ostream, operator<<, cout, basi... -#include -#include +#include // Para SDL_INIT_GAMECONTROLLER, SDL_InitSubS... +#include // Para SDL_GetError +#include // Para SDL_ENABLE +#include // Para SDL_GetKeyboardState +#include // Para find +#include // Para basic_ostream, operator<<, cout, endl +#include // Para distance +#include // Para unordered_map, operator==, _Node_cons... +#include // Para pair // [SINGLETON] Hay que definir las variables estáticas, desde el .h sólo la hemos declarado Input *Input::input_ = nullptr; @@ -80,14 +82,7 @@ bool Input::checkInput(InputType input, bool repeat, InputDeviceToUse device, in if (repeat) { - if (keyStates[key_bindings_[input_index].scancode] != 0) - { - success_keyboard = true; - } - else - { - success_keyboard = false; - } + success_keyboard = keyStates[key_bindings_[input_index].scancode] != 0; } else { @@ -108,12 +103,8 @@ bool Input::checkInput(InputType input, bool repeat, InputDeviceToUse device, in if (keyStates[key_bindings_[input_index].scancode] == 0) { key_bindings_[input_index].active = false; - success_keyboard = false; - } - else - { - success_keyboard = false; } + success_keyboard = false; } } } @@ -126,22 +117,15 @@ bool Input::checkInput(InputType input, bool repeat, InputDeviceToUse device, in { if (repeat) { - if (SDL_GameControllerGetButton(connected_controllers_[controller_index], controller_bindings_[controller_index][input_index].button) != 0) - { - success_controller = true; - } - else - { - success_controller = false; - } + success_controller = SDL_GameControllerGetButton(connected_controllers_.at(controller_index), controller_bindings_.at(controller_index).at(input_index).button) != 0; } else { - if (!controller_bindings_[controller_index][input_index].active) + if (!controller_bindings_.at(controller_index).at(input_index).active) { - if (SDL_GameControllerGetButton(connected_controllers_[controller_index], controller_bindings_[controller_index][input_index].button) != 0) + if (SDL_GameControllerGetButton(connected_controllers_.at(controller_index), controller_bindings_.at(controller_index).at(input_index).button) != 0) { - controller_bindings_[controller_index][input_index].active = true; + controller_bindings_.at(controller_index).at(input_index).active = true; success_controller = true; } else @@ -151,15 +135,11 @@ bool Input::checkInput(InputType input, bool repeat, InputDeviceToUse device, in } else { - if (SDL_GameControllerGetButton(connected_controllers_[controller_index], controller_bindings_[controller_index][input_index].button) == 0) + if (SDL_GameControllerGetButton(connected_controllers_.at(controller_index), controller_bindings_.at(controller_index).at(input_index).button) == 0) { - controller_bindings_[controller_index][input_index].active = false; - success_controller = false; - } - else - { - success_controller = false; + controller_bindings_.at(controller_index).at(input_index).active = false; } + success_controller = false; } } } @@ -171,11 +151,6 @@ bool Input::checkInput(InputType input, bool repeat, InputDeviceToUse device, in // Comprueba si hay almenos un input activo bool Input::checkAnyInput(InputDeviceToUse device, int controller_index) { - if (device == InputDeviceToUse::ANY) - { - controller_index = 0; - } - if (device == InputDeviceToUse::KEYBOARD || device == InputDeviceToUse::ANY) { const Uint8 *mKeystates = SDL_GetKeyboardState(nullptr); @@ -411,10 +386,4 @@ bool Input::checkAxisInput(InputType input, int controller_index) const default: return false; } -} - -// Establece el indice de mando que usará el teclado -void Input::setKeyboardIndex(int index) -{ - keyboard_index_ = index; } \ No newline at end of file diff --git a/source/input.h b/source/input.h index 153e55f..6a9c332 100644 --- a/source/input.h +++ b/source/input.h @@ -95,7 +95,6 @@ private: int num_joysticks_ = 0; // Número de joysticks conectados int num_gamepads_ = 0; // Número de mandos conectados std::string game_controller_db_path_; // Ruta al archivo gamecontrollerdb.txt - int keyboard_index_ = 0; // Comprueba el eje del mando bool checkAxisInput(InputType input, int controller_index = 0) const; @@ -161,7 +160,4 @@ public: // Obtiene el indice a partir del nombre del mando int getIndexByName(const std::string &name) const; - - // Establece el indice de mando que usará el teclado - void setKeyboardIndex(int index); }; \ No newline at end of file diff --git a/source/logo.cpp b/source/logo.cpp index 0c47993..4102e89 100644 --- a/source/logo.cpp +++ b/source/logo.cpp @@ -12,6 +12,7 @@ #include "section.h" // Para Name, name, Options, options #include "sprite.h" // Para Sprite #include "texture.h" // Para Texture +#include "utils.h" // Para Color, Zone // Constructor Logo::Logo() diff --git a/source/logo.h b/source/logo.h index 7de5a72..a3b1b86 100644 --- a/source/logo.h +++ b/source/logo.h @@ -1,12 +1,12 @@ #pragma once -#include // para SDL_Point -#include // para Uint32 -#include // para unique_ptr, shared_ptr -#include // para vector -#include "sprite.h" // para Sprite -#include "utils.h" // para Color -class Texture; +#include // Para SDL_Point +#include // Para Uint32 +#include // Para shared_ptr, unique_ptr +#include // Para vector +class Sprite; +class Texture; // lines 9-9 +struct Color; /* Esta clase gestiona un estado del programa. Se encarga de dibujar por pantalla el diff --git a/source/options.cpp b/source/options.cpp index f57f357..64259cb 100644 --- a/source/options.cpp +++ b/source/options.cpp @@ -1,13 +1,14 @@ #include "options.h" -#include // para SDL_GameControllerButton, SDL_C... -#include // para max, min -#include // para basic_ostream, operator<<, basi... -#include // para cout -#include // para vector -#include "input.h" // para inputs_e, InputDeviceToUse::ANY, INPUT_... -#include "lang.h" // para lang_e -#include "screen.h" // para ScreenVideoMode, ScreenFilter -#include "utils.h" // para OptionsController, Options, op_... +#include // Para SDL_GameControllerButton +#include // Para clamp +#include // Para basic_ostream, operator<<, basi... +#include // Para cout +#include // Para swap +#include // Para vector +#include "input.h" // Para InputDeviceToUse +#include "lang.h" // Para Code +#include "screen.h" // Para ScreenVideoMode, ScreenFilter +#include "utils.h" // Para boolToString, stringToBool, get... // Variables Options options; @@ -382,7 +383,7 @@ void swapOptionsControllers() // Averigua quien está usando el teclado int getPlayerWhoUsesKeyboard() { - for (auto &controller : options.controllers) + for (const auto &controller : options.controllers) { if (controller.type == InputDeviceToUse::ANY) { diff --git a/source/options.h b/source/options.h index e2e5179..5777524 100644 --- a/source/options.h +++ b/source/options.h @@ -1,18 +1,16 @@ #pragma once -#include // Para SDL_GameControllerButton -#include // Para Uint8 -#include "manage_hiscore_table.h" -#include // Para vector -#include "input.h" -#include -enum class InputType : int; -enum class ScreenFilter : int; -enum class ScreenVideoMode : int; +#include // Para SDL_CONTROLLER_BUTTON_B, SDL_CO... +#include // Para string +#include // Para vector +#include "input.h" // Para InputType, InputDeviceToUse +#include "manage_hiscore_table.h" // Para HiScoreEntry +enum class ScreenFilter : int; // lines 10-10 +enum class ScreenVideoMode : int; // lines 11-11 namespace lang { enum class Code : int; -} +} // lines 14-14 // Dificultad del juego enum class GameDifficulty @@ -76,7 +74,7 @@ struct OptionsController { int index; // Indice en el vector de mandos int player_id; // Jugador asociado al mando - InputDeviceToUse type; // Indica si se utilizará teclado o mando o ambos + InputDeviceToUse type; // Indica si se utilizará teclado o mando o ambos std::string name; // Nombre del dispositivo bool plugged; // Indica si el mando se encuentra conectado std::vector inputs; // Listado de inputs @@ -84,11 +82,9 @@ struct OptionsController // Constructor por defecto OptionsController() - : index(-1), player_id(-1), type(InputDeviceToUse::CONTROLLER), name(""), plugged(false) - { - inputs = {InputType::FIRE_LEFT, InputType::FIRE_CENTER, InputType::FIRE_RIGHT, InputType::START, InputType::SERVICE}; - buttons = {SDL_CONTROLLER_BUTTON_X, SDL_CONTROLLER_BUTTON_Y, SDL_CONTROLLER_BUTTON_B, SDL_CONTROLLER_BUTTON_START, SDL_CONTROLLER_BUTTON_BACK}; - } + : index(-1), player_id(-1), type(InputDeviceToUse::CONTROLLER), name(""), plugged(false), + inputs{InputType::FIRE_LEFT, InputType::FIRE_CENTER, InputType::FIRE_RIGHT, InputType::START, InputType::SERVICE}, + buttons{SDL_CONTROLLER_BUTTON_X, SDL_CONTROLLER_BUTTON_Y, SDL_CONTROLLER_BUTTON_B, SDL_CONTROLLER_BUTTON_START, SDL_CONTROLLER_BUTTON_BACK} {} }; // Estructura con todas las opciones de configuración del programa diff --git a/source/path_sprite.cpp b/source/path_sprite.cpp index e534428..a3dcb53 100644 --- a/source/path_sprite.cpp +++ b/source/path_sprite.cpp @@ -1,8 +1,8 @@ #include "path_sprite.h" -#include // for abs -#include // for abs -#include // for function -#include // for move +#include // Para abs +#include // Para abs +#include // Para function +#include // Para move // Devuelve un vector con los puntos que conforman la ruta std::vector createPath(int start, int end, PathType type, int fixed_pos, int steps, const std::function &easingFunction) diff --git a/source/path_sprite.h b/source/path_sprite.h index dbc99af..52b6cfd 100644 --- a/source/path_sprite.h +++ b/source/path_sprite.h @@ -1,10 +1,10 @@ #pragma once -#include // for SDL_Point -#include // for function -#include // for shared_ptr -#include // for vector -#include "sprite.h" // for Sprite +#include // Para SDL_Point +#include // Para function +#include // Para shared_ptr +#include // Para vector +#include "sprite.h" // Para Sprite class Texture; // lines 8-8 enum class PathType diff --git a/source/scoreboard.h b/source/scoreboard.h index 163d2c5..873cb46 100644 --- a/source/scoreboard.h +++ b/source/scoreboard.h @@ -1,16 +1,17 @@ #pragma once -#include // para SDL_Point, SDL_Rect -#include // para SDL_Renderer, SDL_Texture -#include // para Uint32 -#include // para SDL_GetTicks -#include // para unique_ptr, shared_ptr -#include // para string -#include // para vector -#include "utils.h" // para Color -class Sprite; -class Text; -class Texture; +#include // Para SDL_Point, SDL_Rect +#include // Para SDL_Texture, SDL_Renderer +#include // Para Uint32 +#include // Para SDL_GetTicks +#include // Para size_t +#include // Para unique_ptr, shared_ptr +#include // Para string +#include // Para vector +#include "utils.h" // Para Color +class Sprite; // lines 11-11 +class Text; // lines 12-12 +class Texture; // lines 13-13 // Defines constexpr int SCOREBOARD_LEFT_PANEL = 0; diff --git a/source/screen.cpp b/source/screen.cpp index 3c0e7ec..265534d 100644 --- a/source/screen.cpp +++ b/source/screen.cpp @@ -6,12 +6,12 @@ #include // Para clamp, max, min #include // Para basic_ifstream, ifstream #include // Para istreambuf_iterator, operator== -#include // Para allocator, operator+, to_string, char_t... +#include // Para allocator, operator+, char_traits, to_s... #include // Para vector #include "asset.h" // Para Asset #include "dbgtxt.h" // Para dbg_print #include "global_inputs.h" // Para service_pressed_counter -#include "input.h" // Para Input, InputType, INPUT_DO_NOT_ALLOW_RE... +#include "jail_shader.h" // Para init, render #include "notifier.h" // Para Notifier #include "on_screen_help.h" // Para OnScreenHelp #include "options.h" // Para Options, OptionsVideo, options, Options... diff --git a/source/text.cpp b/source/text.cpp index 02d2289..473d123 100644 --- a/source/text.cpp +++ b/source/text.cpp @@ -1,16 +1,16 @@ #include "text.h" -#include // for SDL_BLENDMODE_BLEND -#include // for SDL_PIXELFORMAT_RGBA8888 -#include // for SDL_Rect -#include // for SDL_TEXTUREACCESS_TARGET -#include // for size_t -#include // for basic_ifstream, basic_istream, basic... -#include // for cerr -#include // for runtime_error -#include "screen.h" // for Screen -#include "sprite.h" // for Sprite -#include "texture.h" // for Texture -#include "utils.h" // for Color, getFileName, printWithDots +#include // Para SDL_BLENDMODE_BLEND +#include // Para SDL_PIXELFORMAT_RGBA8888 +#include // Para SDL_Rect +#include // Para SDL_TEXTUREACCESS_TARGET +#include // Para size_t +#include // Para basic_ifstream, basic_istream, basic... +#include // Para cerr +#include // Para runtime_error +#include "screen.h" // Para Screen +#include "sprite.h" // Para Sprite +#include "texture.h" // Para Texture +#include "utils.h" // Para Color, getFileName, printWithDots // Llena una estructuta TextFile desde un fichero std::shared_ptr loadTextFile(const std::string &file_path) diff --git a/source/title.cpp b/source/title.cpp index b8183c5..5655409 100644 --- a/source/title.cpp +++ b/source/title.cpp @@ -1,9 +1,10 @@ #include "title.h" #include // Para SDL_PollEvent, SDL_Event, SDL_KEYDOWN -#include // Para SDLK_1, SDLK_2, SDLK_3 +#include // Para SDLK_1, SDLK_2, SDLK_3, SDLK_4, SDLK_5 #include // Para SDL_Rect #include // Para SDL_GetTicks -#include // Para char_traits, operator+, to_string, bas... +#include // Para size_t +#include // Para char_traits, operator+, basic_string #include // Para move #include // Para vector #include "define_buttons.h" // Para DefineButtons @@ -18,7 +19,7 @@ #include "param.h" // Para Param, param, ParamGame, ParamTitle #include "resource.h" // Para Resource #include "screen.h" // Para Screen -#include "section.h" // Para Options, options, name, Name +#include "section.h" // Para Options, options, Name, name, AttractMode #include "sprite.h" // Para Sprite #include "text.h" // Para Text, TEXT_CENTER, TEXT_SHADOW #include "texture.h" // Para Texture @@ -216,15 +217,15 @@ void Title::checkEvents() resetCounter(); break; } - case SDLK_4: // Muestra la asignacion de mandos + case SDLK_4: // Intercambia la asignación del teclado { - showControllers(); + swapKeyboard(); resetCounter(); break; } - case SDLK_5: // Intercambia la asignación del teclado + case SDLK_5: // Muestra la asignacion de mandos y teclado { - swapKeyboard(); + showControllers(); resetCounter(); break; } @@ -343,5 +344,7 @@ void Title::showControllers() } } + // std::string spaces(lang::getText(100).length() + 3, ' '); + // std::string kb_text = spaces + lang::getText(69); Notifier::get()->showText({text.at(0), text.at(1)}); } diff --git a/source/title.h b/source/title.h index b66b950..7d56b0c 100644 --- a/source/title.h +++ b/source/title.h @@ -2,14 +2,17 @@ #include // Para Uint32 #include // Para unique_ptr, shared_ptr -#include "section.h" // Para Name -class DefineButtons; -class Fade; -class GameLogo; -class Sprite; -class Text; -class Texture; // lines 14-14 -class TiledBG; +class DefineButtons; // lines 6-6 +class Fade; // lines 7-7 +class GameLogo; // lines 8-8 +class Sprite; // lines 9-9 +class Text; // lines 10-10 +class Texture; // lines 11-11 +class TiledBG; // lines 12-12 +namespace section +{ + enum class Name; +} // Textos constexpr const char TEXT_COPYRIGHT[] = "@2020,2024 JailDesigner";