/* Pokemon Legends ZA * * From: https://github.com/PokemonAutomation/ * */ #include "Pokemon/Pokemon_Strings.h" #include "PokemonLZA_Settings.h" namespace PokemonAutomation{ namespace NintendoSwitch{ namespace PokemonLZA{ using namespace Pokemon; GameSettings& GameSettings::instance(){ static GameSettings settings; return settings; } GameSettings::GameSettings() : BatchOption(LockMode::LOCK_WHILE_RUNNING) , m_general("General Settings:") , m_start_game_timings("Start Game Timings:") , START_GAME_WAIT( "Start Game Wait:
Wait this long for the game to load.", LockMode::LOCK_WHILE_RUNNING, "40 s" ) , ENTER_GAME_WAIT0( "Enter Game Wait:
Wait this long for the game to enter the overworld.", LockMode::LOCK_WHILE_RUNNING, "60 s" ) , m_advanced_options( "Advanced Options: You should not need to touch anything below here." ) { PA_ADD_STATIC(m_general); PA_ADD_STATIC(m_start_game_timings); PA_ADD_OPTION(START_GAME_WAIT); PA_ADD_OPTION(ENTER_GAME_WAIT0); PA_ADD_STATIC(m_advanced_options); } GameSettings_Descriptor::GameSettings_Descriptor() : OptionsPanelDescriptor( "PokemonLZA:GlobalSettings", STRING_POKEMON + " LZA", "Game Settings", "Programs/PokemonLZA/PokemonSettings.html", "Global " + STRING_POKEMON + " Legends ZA Settings" ) {} GameSettingsPanel::GameSettingsPanel() : settings(GameSettings::instance()) { PA_ADD_OPTION(settings); } } } }