yaze
0.2.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
tui.h
Go to the documentation of this file.
1
#ifndef YAZE_CLI_TUI_H
2
#define YAZE_CLI_TUI_H
3
4
#include <ftxui/component/component.hpp>
5
#include <ftxui/dom/elements.hpp>
6
#include <ftxui/screen/screen.hpp>
7
#include <string>
8
#include <vector>
9
10
#include "
app/rom.h
"
11
12
namespace
yaze
{
17
namespace
cli
{
18
const
std::vector<std::string>
kMainMenuEntries
= {
19
"Load ROM"
,
20
"Apply BPS Patch"
,
21
"Generate Save File"
,
22
"Palette Editor"
,
23
"Help"
,
24
"Exit"
,
25
};
26
27
enum class
MainMenuEntry
{
28
kLoadRom
,
29
kApplyBpsPatch
,
30
kGenerateSaveFile
,
31
kPaletteEditor
,
32
kHelp
,
33
kExit
,
34
};
35
36
enum
LayoutID
{
37
kLoadRom
,
38
kApplyBpsPatch
,
39
kGenerateSaveFile
,
40
kPaletteEditor
,
41
kHelp
,
42
kExit
,
43
kMainMenu
,
44
kError
,
45
};
46
47
struct
Context
{
48
Rom
rom
;
49
LayoutID
current_layout
=
LayoutID::kMainMenu
;
50
std::string
error_message
;
51
};
52
53
static
Context
app_context;
54
55
void
ShowMain
();
56
57
}
// namespace cli
58
}
// namespace yaze
59
60
#endif
// YAZE_CLI_TUI_H
yaze::Rom
The Rom class is used to load, save, and modify Rom data.
Definition
rom.h:59
yaze::cli
Namespace for the command line interface.
Definition
compress.cc:4
yaze::cli::kMainMenuEntries
const std::vector< std::string > kMainMenuEntries
Definition
tui.h:18
yaze::cli::MainMenuEntry
MainMenuEntry
Definition
tui.h:27
yaze::cli::ShowMain
void ShowMain()
Definition
tui.cc:568
yaze::cli::LayoutID
LayoutID
Definition
tui.h:36
yaze::cli::kGenerateSaveFile
@ kGenerateSaveFile
Definition
tui.h:39
yaze::cli::kMainMenu
@ kMainMenu
Definition
tui.h:43
yaze::cli::kError
@ kError
Definition
tui.h:44
yaze::cli::kPaletteEditor
@ kPaletteEditor
Definition
tui.h:40
yaze::cli::kHelp
@ kHelp
Definition
tui.h:41
yaze::cli::kExit
@ kExit
Definition
tui.h:42
yaze::cli::kLoadRom
@ kLoadRom
Definition
tui.h:37
yaze::cli::kApplyBpsPatch
@ kApplyBpsPatch
Definition
tui.h:38
yaze
Main namespace for the application.
Definition
controller.cc:18
rom.h
yaze::cli::Context
Definition
tui.h:47
yaze::cli::Context::error_message
std::string error_message
Definition
tui.h:50
yaze::cli::Context::current_layout
LayoutID current_layout
Definition
tui.h:49
yaze::cli::Context::rom
Rom rom
Definition
tui.h:48
src
cli
tui.h
Generated by
1.13.2