Functions | |
void | SwitchComponents (ftxui::ScreenInteractive &screen, LayoutID layout) |
bool | HandleInput (ftxui::ScreenInteractive &screen, ftxui::Event &event, int &selected) |
void | ReturnIfRomNotLoaded (ftxui::ScreenInteractive &screen) |
void | ApplyBpsPatchComponent (ftxui::ScreenInteractive &screen) |
void | GenerateSaveFileComponent (ftxui::ScreenInteractive &screen) |
void | LoadRomComponent (ftxui::ScreenInteractive &screen) |
Element | ColorBox (const Color &color) |
void | PaletteEditorComponent (ftxui::ScreenInteractive &screen) |
void | HelpComponent (ftxui::ScreenInteractive &screen) |
void | MainMenuComponent (ftxui::ScreenInteractive &screen) |
void yaze::cli::anonymous_namespace{tui.cc}::SwitchComponents | ( | ftxui::ScreenInteractive & | screen, |
LayoutID | layout ) |
Definition at line 17 of file tui.cc.
References SwitchComponents().
Referenced by ApplyBpsPatchComponent(), GenerateSaveFileComponent(), HandleInput(), HelpComponent(), LoadRomComponent(), MainMenuComponent(), PaletteEditorComponent(), ReturnIfRomNotLoaded(), and SwitchComponents().
bool yaze::cli::anonymous_namespace{tui.cc}::HandleInput | ( | ftxui::ScreenInteractive & | screen, |
ftxui::Event & | event, | ||
int & | selected ) |
Definition at line 26 of file tui.cc.
References HandleInput(), yaze::cli::kExit, and SwitchComponents().
Referenced by HandleInput(), and MainMenuComponent().
void yaze::cli::anonymous_namespace{tui.cc}::ReturnIfRomNotLoaded | ( | ftxui::ScreenInteractive & | screen | ) |
Definition at line 43 of file tui.cc.
References yaze::cli::kError, ReturnIfRomNotLoaded(), and SwitchComponents().
Referenced by PaletteEditorComponent(), and ReturnIfRomNotLoaded().
void yaze::cli::anonymous_namespace{tui.cc}::ApplyBpsPatchComponent | ( | ftxui::ScreenInteractive & | screen | ) |
Definition at line 50 of file tui.cc.
References yaze::util::ApplyBpsPatch(), ApplyBpsPatchComponent(), yaze::cli::kError, yaze::cli::kMainMenu, yaze::core::LoadFile(), and SwitchComponents().
Referenced by ApplyBpsPatchComponent().
void yaze::cli::anonymous_namespace{tui.cc}::GenerateSaveFileComponent | ( | ftxui::ScreenInteractive & | screen | ) |
Definition at line 125 of file tui.cc.
References GenerateSaveFileComponent(), yaze::cli::kMainMenu, and SwitchComponents().
Referenced by GenerateSaveFileComponent().
void yaze::cli::anonymous_namespace{tui.cc}::LoadRomComponent | ( | ftxui::ScreenInteractive & | screen | ) |
Definition at line 221 of file tui.cc.
References yaze::cli::kError, yaze::cli::kMainMenu, LoadRomComponent(), and SwitchComponents().
Referenced by LoadRomComponent().
Element yaze::cli::anonymous_namespace{tui.cc}::ColorBox | ( | const Color & | color | ) |
Definition at line 260 of file tui.cc.
References ColorBox().
Referenced by ColorBox(), and PaletteEditorComponent().
void yaze::cli::anonymous_namespace{tui.cc}::PaletteEditorComponent | ( | ftxui::ScreenInteractive & | screen | ) |
Definition at line 264 of file tui.cc.
References ColorBox(), yaze::cli::kMainMenu, PaletteEditorComponent(), ReturnIfRomNotLoaded(), and SwitchComponents().
Referenced by PaletteEditorComponent().
void yaze::cli::anonymous_namespace{tui.cc}::HelpComponent | ( | ftxui::ScreenInteractive & | screen | ) |
Definition at line 387 of file tui.cc.
References HelpComponent(), yaze::cli::kMainMenu, and SwitchComponents().
Referenced by HelpComponent().
void yaze::cli::anonymous_namespace{tui.cc}::MainMenuComponent | ( | ftxui::ScreenInteractive & | screen | ) |
Definition at line 500 of file tui.cc.
References HandleInput(), yaze::cli::kApplyBpsPatch, yaze::cli::kExit, yaze::cli::kGenerateSaveFile, yaze::cli::kHelp, yaze::cli::kLoadRom, yaze::cli::kMainMenuEntries, yaze::cli::kPaletteEditor, MainMenuComponent(), and SwitchComponents().
Referenced by MainMenuComponent().