mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-12 12:35:26 -05:00
Code style update.
This commit is contained in:
@@ -12,21 +12,24 @@ namespace
|
||||
|
||||
ExtrasMenuState::ExtrasMenuState(void)
|
||||
: m_extrasMenu(32, 8, 1000, 24, 555),
|
||||
m_renderTarget(sdl::TextureManager::createLoadTexture(SECONDARY_TARGET, 1080, 555, SDL_TEXTUREACCESS_STATIC | SDL_TEXTUREACCESS_TARGET))
|
||||
m_renderTarget(sdl::TextureManager::createLoadTexture(SECONDARY_TARGET,
|
||||
1080,
|
||||
555,
|
||||
SDL_TEXTUREACCESS_STATIC | SDL_TEXTUREACCESS_TARGET))
|
||||
{
|
||||
const char *extrasString = nullptr;
|
||||
int currentString = 0;
|
||||
while ((extrasString = strings::getByName(strings::names::EXTRAS_MENU, currentString++)) != nullptr)
|
||||
while ((extrasString = strings::get_by_name(strings::names::EXTRAS_MENU, currentString++)) != nullptr)
|
||||
{
|
||||
m_extrasMenu.addOption(extrasString);
|
||||
m_extrasMenu.add_option(extrasString);
|
||||
}
|
||||
}
|
||||
|
||||
void ExtrasMenuState::update(void)
|
||||
{
|
||||
m_extrasMenu.update(AppState::hasFocus());
|
||||
m_extrasMenu.update(AppState::has_focus());
|
||||
|
||||
if (input::buttonPressed(HidNpadButton_B))
|
||||
if (input::button_pressed(HidNpadButton_B))
|
||||
{
|
||||
AppState::deactivate();
|
||||
}
|
||||
@@ -35,6 +38,6 @@ void ExtrasMenuState::update(void)
|
||||
void ExtrasMenuState::render(void)
|
||||
{
|
||||
m_renderTarget->clear(colors::TRANSPARENT);
|
||||
m_extrasMenu.render(m_renderTarget->get(), AppState::hasFocus());
|
||||
m_extrasMenu.render(m_renderTarget->get(), AppState::has_focus());
|
||||
m_renderTarget->render(NULL, 201, 91);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user