Add comments to states.

This commit is contained in:
J-D-K
2025-10-30 13:34:03 -04:00
parent 17410fd8a9
commit ec2417d068
32 changed files with 226 additions and 34 deletions

View File

@@ -20,6 +20,8 @@ namespace
constexpr std::string_view SECONDARY_TARGET = "SecondaryTarget";
} // namespace
// ---- Construction ----
TextTitleSelectState::TextTitleSelectState(data::User *user)
: TitleSelectCommon()
, m_user(user)
@@ -29,6 +31,8 @@ TextTitleSelectState::TextTitleSelectState(data::User *user)
TextTitleSelectState::refresh();
}
// ---- Public functions ----
void TextTitleSelectState::update()
{
const bool hasFocus = BaseState::has_focus();
@@ -79,6 +83,8 @@ void TextTitleSelectState::refresh()
}
}
// ---- Private functions ----
void TextTitleSelectState::create_backup_menu()
{
const int selected = m_titleSelectMenu->get_selected();