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

@@ -34,6 +34,8 @@ namespace
};
} // namespace
// ---- Construction ----
UserOptionState::UserOptionState(data::User *user, TitleSelectCommon *titleSelect)
: m_user(user)
, m_titleSelect(titleSelect)
@@ -45,6 +47,8 @@ UserOptionState::UserOptionState(data::User *user, TitleSelectCommon *titleSelec
UserOptionState::initialize_data_struct();
}
// ---- Public functions ----
void UserOptionState::update()
{
const bool hasFocus = BaseState::has_focus();
@@ -91,6 +95,8 @@ void UserOptionState::render()
void UserOptionState::refresh_required() { m_refreshRequired = true; }
// ---- Private functions ----
void UserOptionState::create_menu_panel()
{
static constexpr int SIZE_PANEL_WIDTH = 480;