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