Pasaeta de linters
This commit is contained in:
@@ -1,34 +1,34 @@
|
||||
#include "title.h"
|
||||
|
||||
#include <SDL3/SDL.h> // Para SDL_GetTicks, Uint32, SDL_EventType
|
||||
#include <SDL3/SDL.h> // Para SDL_GetTicks, Uint32, SDL_Keycode, SDL_Event, SDL_PollEvent, SDLK_1, SDLK_2, SDLK_3, SDLK_4, SDLK_5, SDLK_A, SDLK_C, SDLK_D, SDLK_F, SDLK_S, SDLK_V, SDLK_X, SDLK_Z, SDL_EventType
|
||||
|
||||
#include <algorithm> // Para find_if
|
||||
#include <cstddef> // Para size_t
|
||||
#include <iostream> // Para basic_ostream, basic_ostream::operator<<
|
||||
#include <string> // Para basic_string, char_traits, operator+
|
||||
#include <algorithm> // Para max, find_if
|
||||
#include <iostream> // Para basic_ostream, basic_ostream::operator<<, operator<<, cout, endl, hex
|
||||
#include <string> // Para char_traits, operator+, to_string, string, basic_string
|
||||
#include <vector> // Para vector
|
||||
|
||||
#include "audio.h" // Para Audio
|
||||
#include "color.h" // Para Color, Zone, NO_TEXT_COLOR, TITLE_SHADO...
|
||||
#include "color.h" // Para Color, NO_TEXT_COLOR, TITLE_SHADOW_TEXT_COLOR
|
||||
#include "define_buttons.h" // Para DefineButtons
|
||||
#include "fade.h" // Para Fade, FadeType
|
||||
#include "game_logo.h" // Para GameLogo
|
||||
#include "global_events.h" // Para check
|
||||
#include "global_inputs.h" // Para check
|
||||
#include "input.h" // Para Input, Input::DO_NOT_ALLOW_REPEAT, Input...
|
||||
#include "input.h" // Para Input
|
||||
#include "input_types.h" // Para InputAction
|
||||
#include "lang.h" // Para getText
|
||||
#include "options.h" // Para GamepadOptions, controllers, getPlayerW...
|
||||
#include "param.h" // Para Param, param, ParamGame, ParamTitle
|
||||
#include "player.h" // Para Player, PlayerState
|
||||
#include "options.h" // Para Gamepad, GamepadManager, gamepad_manager, Settings, settings, getPlayerWhoUsesKeyboard, swapControllers, swapKeyboard
|
||||
#include "param.h" // Para Param, param, ParamGame, ParamTitle, ParamFade
|
||||
#include "player.h" // Para Player
|
||||
#include "resource.h" // Para Resource
|
||||
#include "screen.h" // Para Screen
|
||||
#include "section.hpp" // Para Name, name, Options, options, AttractMode
|
||||
#include "section.hpp" // Para Name, name, Options, options, AttractMode, attract_mode
|
||||
#include "sprite.h" // Para Sprite
|
||||
#include "text.h" // Para TEXT_CENTER, TEXT_SHADOW, Text
|
||||
#include "tiled_bg.h" // Para TiledBG, TiledBGMode
|
||||
#include "ui/notifier.h" // Para Notifier
|
||||
#include "ui/service_menu.h" // Para ServiceMenu
|
||||
#include "utils.h"
|
||||
#include "utils.h" // Para Zone, BLOCK
|
||||
|
||||
class Texture;
|
||||
|
||||
@@ -87,16 +87,15 @@ void Title::update() {
|
||||
updatePlayers();
|
||||
}
|
||||
|
||||
static const auto audio = Audio::get();
|
||||
audio->update();
|
||||
Audio::update();
|
||||
}
|
||||
|
||||
// Dibuja el objeto en pantalla
|
||||
void Title::render() {
|
||||
static const auto screen = Screen::get();
|
||||
static auto* const SCREEN = Screen::get();
|
||||
|
||||
screen->start();
|
||||
screen->clean();
|
||||
SCREEN->start();
|
||||
SCREEN->clean();
|
||||
|
||||
tiled_bg_->render();
|
||||
game_logo_->render();
|
||||
@@ -106,7 +105,7 @@ void Title::render() {
|
||||
define_buttons_->render();
|
||||
fade_->render();
|
||||
|
||||
screen->render();
|
||||
SCREEN->render();
|
||||
}
|
||||
|
||||
// Comprueba los eventos
|
||||
@@ -348,7 +347,7 @@ void Title::showControllers() {
|
||||
// Crea los textos
|
||||
std::string text1 = Lang::getText("[DEFINE_BUTTONS] PLAYER") + std::to_string(static_cast<int>(Player::Id::PLAYER1)) + ": " + Options::gamepad_manager.getGamepad(Player::Id::PLAYER1).name;
|
||||
std::string text2 = Lang::getText("[DEFINE_BUTTONS] PLAYER") + std::to_string(static_cast<int>(Player::Id::PLAYER2)) + ": " + Options::gamepad_manager.getGamepad(Player::Id::PLAYER2).name;
|
||||
|
||||
|
||||
// Muestra la notificación
|
||||
Notifier::get()->show({text1, text2});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user