chore: cleanup editors
This commit is contained in:
@@ -188,12 +188,12 @@ void MasterEditor::DrawFileMenu() const {
|
||||
|
||||
void MasterEditor::DrawEditMenu() {
|
||||
if (ImGui::BeginMenu("Edit")) {
|
||||
MENU_ITEM2("Undo", "Ctrl+Z") {}
|
||||
MENU_ITEM2("Redo", "Ctrl+Y") {}
|
||||
MENU_ITEM2("Undo", "Ctrl+Z") { status_ = overworld_editor_.Undo(); }
|
||||
MENU_ITEM2("Redo", "Ctrl+Y") { status_ = overworld_editor_.Redo(); }
|
||||
ImGui::Separator();
|
||||
MENU_ITEM2("Cut", "Ctrl+X") {}
|
||||
MENU_ITEM2("Copy", "Ctrl+C") {}
|
||||
MENU_ITEM2("Paste", "Ctrl+V") {}
|
||||
MENU_ITEM2("Cut", "Ctrl+X") { status_ = overworld_editor_.Cut(); }
|
||||
MENU_ITEM2("Copy", "Ctrl+C") { status_ = overworld_editor_.Copy(); }
|
||||
MENU_ITEM2("Paste", "Ctrl+V") { status_ = overworld_editor_.Paste(); }
|
||||
ImGui::Separator();
|
||||
MENU_ITEM2("Find", "Ctrl+F") {}
|
||||
ImGui::Separator();
|
||||
|
||||
@@ -41,8 +41,11 @@ class OverworldEditor {
|
||||
public:
|
||||
void SetupROM(ROM &rom);
|
||||
absl::Status Update();
|
||||
|
||||
absl::Status Undo() { return absl::UnimplementedError("Undo"); }
|
||||
absl::Status Redo() { return absl::UnimplementedError("Redo"); }
|
||||
absl::Status Cut() { return absl::UnimplementedError("Cut"); }
|
||||
absl::Status Copy() { return absl::UnimplementedError("Copy"); }
|
||||
absl::Status Paste() { return absl::UnimplementedError("Paste"); }
|
||||
|
||||
private:
|
||||
absl::Status DrawToolset();
|
||||
|
||||
@@ -23,8 +23,8 @@ static int overworldCustomMosaicArray = 0x1301F0;
|
||||
|
||||
class ScreenEditor {
|
||||
public:
|
||||
void SetupROM(ROM &rom) { rom_ = rom; }
|
||||
ScreenEditor();
|
||||
void SetupROM(ROM &rom) { rom_ = rom; }
|
||||
void Update();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user