Cleanup MasterEditor remove unnecessary fns
This commit is contained in:
@@ -72,13 +72,35 @@ void MasterEditor::UpdateScreen() {
|
|||||||
DrawInfoPopup();
|
DrawInfoPopup();
|
||||||
|
|
||||||
TAB_BAR("##TabBar")
|
TAB_BAR("##TabBar")
|
||||||
DrawOverworldEditor();
|
|
||||||
DrawDungeonEditor();
|
TAB_ITEM("Overworld")
|
||||||
DrawGraphicsEditor();
|
status_ = overworld_editor_.Update();
|
||||||
DrawMusicEditor();
|
END_TAB_ITEM()
|
||||||
DrawSpriteEditor();
|
|
||||||
DrawScreenEditor();
|
TAB_ITEM("Dungeon")
|
||||||
DrawPaletteEditor();
|
dungeon_editor_.Update();
|
||||||
|
END_TAB_ITEM()
|
||||||
|
|
||||||
|
TAB_ITEM("Graphics")
|
||||||
|
status_ = graphics_editor_.Update();
|
||||||
|
END_TAB_ITEM()
|
||||||
|
|
||||||
|
TAB_ITEM("Music")
|
||||||
|
music_editor_.Update();
|
||||||
|
END_TAB_ITEM()
|
||||||
|
|
||||||
|
TAB_ITEM("Sprites")
|
||||||
|
status_ = sprite_editor_.Update();
|
||||||
|
END_TAB_ITEM()
|
||||||
|
|
||||||
|
TAB_ITEM("Screens")
|
||||||
|
screen_editor_.Update();
|
||||||
|
END_TAB_ITEM()
|
||||||
|
|
||||||
|
TAB_ITEM("Palettes")
|
||||||
|
status_ = palette_editor_.Update();
|
||||||
|
END_TAB_ITEM()
|
||||||
|
|
||||||
END_TAB_BAR()
|
END_TAB_BAR()
|
||||||
|
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
@@ -324,48 +346,6 @@ void MasterEditor::DrawHelpMenu() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MasterEditor::DrawOverworldEditor() {
|
|
||||||
TAB_ITEM("Overworld")
|
|
||||||
status_ = overworld_editor_.Update();
|
|
||||||
END_TAB_ITEM()
|
|
||||||
}
|
|
||||||
|
|
||||||
void MasterEditor::DrawDungeonEditor() {
|
|
||||||
TAB_ITEM("Dungeon")
|
|
||||||
dungeon_editor_.Update();
|
|
||||||
END_TAB_ITEM()
|
|
||||||
}
|
|
||||||
|
|
||||||
void MasterEditor::DrawGraphicsEditor() {
|
|
||||||
TAB_ITEM("Graphics")
|
|
||||||
status_ = graphics_editor_.Update();
|
|
||||||
END_TAB_ITEM()
|
|
||||||
}
|
|
||||||
|
|
||||||
void MasterEditor::DrawPaletteEditor() {
|
|
||||||
TAB_ITEM("Palettes")
|
|
||||||
status_ = palette_editor_.Update();
|
|
||||||
END_TAB_ITEM()
|
|
||||||
}
|
|
||||||
|
|
||||||
void MasterEditor::DrawScreenEditor() {
|
|
||||||
TAB_ITEM("Screens")
|
|
||||||
screen_editor_.Update();
|
|
||||||
END_TAB_ITEM()
|
|
||||||
}
|
|
||||||
|
|
||||||
void MasterEditor::DrawMusicEditor() {
|
|
||||||
TAB_ITEM("Music")
|
|
||||||
music_editor_.Update();
|
|
||||||
END_TAB_ITEM()
|
|
||||||
}
|
|
||||||
|
|
||||||
void MasterEditor::DrawSpriteEditor() {
|
|
||||||
TAB_ITEM("Sprites")
|
|
||||||
status_ = sprite_editor_.Update();
|
|
||||||
END_TAB_ITEM()
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace editor
|
} // namespace editor
|
||||||
} // namespace app
|
} // namespace app
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
@@ -50,14 +50,6 @@ class MasterEditor : public SharedROM {
|
|||||||
void DrawViewMenu();
|
void DrawViewMenu();
|
||||||
void DrawHelpMenu();
|
void DrawHelpMenu();
|
||||||
|
|
||||||
void DrawOverworldEditor();
|
|
||||||
void DrawDungeonEditor();
|
|
||||||
void DrawGraphicsEditor();
|
|
||||||
void DrawPaletteEditor();
|
|
||||||
void DrawMusicEditor();
|
|
||||||
void DrawScreenEditor();
|
|
||||||
void DrawSpriteEditor();
|
|
||||||
|
|
||||||
bool about_ = false;
|
bool about_ = false;
|
||||||
bool rom_info_ = false;
|
bool rom_info_ = false;
|
||||||
bool backup_rom_ = true;
|
bool backup_rom_ = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user