-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRED2Launcher.h
73 lines (52 loc) · 1.32 KB
/
RED2Launcher.h
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
#ifndef _RED2Launcher_RED2Launcher_h
#define _RED2Launcher_RED2Launcher_h
#include <CtrlLib/CtrlLib.h>
#include "config_ini_writer.h"
using namespace Upp;
extern const char* LanguageList[];
#define LAYOUTFILE <Launcher/RED2Launcher.lay>
#include <CtrlCore/lay.h>
//------------------------
class ControlsWindow : public WithKeyControlsWindow<TopWindow> {
public:
ControlsWindow();
void InitButtons(bool controller);
PsyXKeyboardMapping keyboardCtrls;
PsyXControllerMapping controllerCtrls;
protected:
typedef WithKeyControlsWindow<TopWindow> BaseCtrl;
virtual void Close();
bool InitSDL2();
void CloseSDL2();
void UpdateSDL2();
String waitingVal;
int* waitingAction { nullptr };
EditString* waitingEdit { nullptr};
bool waitingController {false};
};
struct ConfigWindow : public WithConfigWindowLayout<TopWindow> {
public:
ConfigWindow();
void LoadConfig();
bool StoreConfig();
protected:
FileSel fs;
ControlsWindow ctrlWindow;
};
//------------------------
class SetupWizardWindow : public WithSetupWizardWindow<TopWindow> {
public:
SetupWizardWindow();
protected:
FileSel fs;
};
//------------------------
class RED2Launcher : public WithRED2LauncherLayout<TopWindow> {
public:
RED2Launcher();
protected:
void LaunchGame();
ConfigWindow configWindow;
SetupWizardWindow wizardWindow;
};
#endif