Repository navigation
Expand file tree
/
Copy pathPokemonLZA_Settings.cpp
More file actions
80 lines (55 loc) · 1.69 KB
/
Copy pathPokemonLZA_Settings.cpp
File metadata and controls
80 lines (55 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* 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("<font size=4><b>General Settings:</b></font>")
, m_start_game_timings("<font size=4><b>Start Game Timings:</b></font>")
, START_GAME_WAIT(
"<b>Start Game Wait:</b><br>Wait this long for the game to load.",
LockMode::LOCK_WHILE_RUNNING,
"40 s"
)
, ENTER_GAME_WAIT0(
"<b>Enter Game Wait:</b><br>Wait this long for the game to enter the overworld.",
LockMode::LOCK_WHILE_RUNNING,
"60 s"
)
, m_advanced_options(
"<font size=4><b>Advanced Options:</b> You should not need to touch anything below here.</font>"
)
{
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);
}
}
}
}