Change AppState to BaseState. Update headers.

This commit is contained in:
J-D-K
2025-07-18 06:22:55 -04:00
parent f7163f8dd7
commit 6af4bed9fa
46 changed files with 519 additions and 367 deletions

View File

@@ -103,7 +103,7 @@ TitleInfoState::~TitleInfoState()
void TitleInfoState::update()
{
// Grab this instead of calling the function over and over.
bool hasFocus = AppState::has_focus();
const bool hasFocus = BaseState::has_focus();
// Update slide panel.
sm_slidePanel->update(hasFocus);
@@ -119,7 +119,7 @@ void TitleInfoState::update()
else if (sm_slidePanel->is_closed())
{
sm_slidePanel->reset();
AppState::deactivate();
BaseState::deactivate();
}
}
@@ -131,7 +131,7 @@ void TitleInfoState::render()
static constexpr int SIZE_RECT_WIDTH = SIZE_PANEL_WIDTH - SIZE_PANEL_SUB;
// This is whether or not the state currently has focus.
bool hasFocus = AppState::has_focus();
bool hasFocus = BaseState::has_focus();
// Clear the title and publisher targets.
sm_titleTarget->clear(colors::DIALOG_BOX);
@@ -240,5 +240,5 @@ void TitleInfoState::render()
colors::WHITE,
m_saveDataType.c_str());
sm_slidePanel->render(NULL, AppState::has_focus());
sm_slidePanel->render(NULL, hasFocus);
}