mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-12 20:45:11 -05:00
Add comments to states.
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
#include "tasks/update.hpp"
|
||||
#include "ui/PopMessageManager.hpp"
|
||||
|
||||
// ---- Construction ----
|
||||
|
||||
MainMenuState::MainMenuState()
|
||||
: m_renderTarget(sdl::TextureManager::load("mainMenuTarget", 200, 555, SDL_TEXTUREACCESS_TARGET))
|
||||
, m_background(sdl::TextureManager::load("mainBackground", "romfs:/Textures/MenuBackground.png"))
|
||||
@@ -37,6 +39,8 @@ MainMenuState::MainMenuState()
|
||||
MainMenuState::check_for_update();
|
||||
}
|
||||
|
||||
// ---- Public functions ----
|
||||
|
||||
void MainMenuState::update()
|
||||
{
|
||||
const int selected = m_mainMenu->get_selected();
|
||||
@@ -110,6 +114,8 @@ void MainMenuState::refresh_view_states()
|
||||
}
|
||||
}
|
||||
|
||||
// ---- Private functions ----
|
||||
|
||||
void MainMenuState::initialize_settings_extras()
|
||||
{
|
||||
if (!sm_settingsState || !sm_extrasState)
|
||||
|
||||
Reference in New Issue
Block a user