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

@@ -8,6 +8,8 @@
#include "stringutil.hpp"
#include "tasks/saveimport.hpp"
// ---- Construction ----
SaveImportState::SaveImportState(data::User *user)
: m_user(user)
, m_saveDir()
@@ -16,6 +18,8 @@ SaveImportState::SaveImportState(data::User *user)
SaveImportState::initialize_directory_menu();
}
// ---- Public functions ----
void SaveImportState::update()
{
const bool hasFocus = BaseState::has_focus();
@@ -39,6 +43,8 @@ void SaveImportState::render()
sm_slidePanel->render(sdl::Texture::Null, hasFocus);
}
// ---- Private functions ----
void SaveImportState::initialize_static_members()
{
static constexpr int SIZE_PANEL_WIDTH = 512;