Skip to content

Commit

Permalink
move audio editor to enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
louist103 committed Dec 22, 2024
1 parent fc4d1fc commit 8364276
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
11 changes: 5 additions & 6 deletions mm/2s2h/BenGui/BenMenuBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ void DrawSettingsMenu() {
extern std::shared_ptr<HudEditorWindow> mHudEditorWindow;
extern std::shared_ptr<ItemTrackerWindow> mItemTrackerWindow;
extern std::shared_ptr<ItemTrackerSettingsWindow> mItemTrackerSettingsWindow;
extern std::shared_ptr<AudioEditor> mAudioEditorWindow;


void DrawEnhancementsMenu() {
if (UIWidgets::BeginMenu("Enhancements")) {
Expand Down Expand Up @@ -806,6 +808,9 @@ void DrawEnhancementsMenu() {
UIWidgets::WindowButton("Item Tracker Settings", "gWindows.ItemTrackerSettings",
mItemTrackerSettingsWindow);
}
if (mAudioEditorWindow) {
UIWidgets::WindowButton("Audio Editor", "gWindows.AudioEditor", mAudioEditorWindow);
}

ImGui::EndMenu();
}
Expand Down Expand Up @@ -851,8 +856,6 @@ extern std::shared_ptr<ActorViewerWindow> mActorViewerWindow;
extern std::shared_ptr<CollisionViewerWindow> mCollisionViewerWindow;
extern std::shared_ptr<EventLogWindow> mEventLogWindow;

extern std::shared_ptr<AudioEditor> mAudioEditorWindow;

const char* logLevels[] = {
"trace", "debug", "info", "warn", "error", "critical", "off",
};
Expand Down Expand Up @@ -979,10 +982,6 @@ void DrawDeveloperToolsMenu() {
UIWidgets::WindowButton("Event Log", "gWindows.EventLog", mEventLogWindow);
}

if (mAudioEditorWindow) {
UIWidgets::WindowButton("Audio Editor", "gWindows.AudioEditor", mAudioEditorWindow);
}

ImGui::EndMenu();
}
}
Expand Down
14 changes: 7 additions & 7 deletions mm/2s2h/BenGui/SearchableMenuItems.h
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,13 @@ void AddEnhancements() {
"",
WIDGET_WINDOW_BUTTON,
{ .size = UIWidgets::Sizes::Inline, .windowName = "Item Tracker Settings" } } } } });
enhancementsSidebar.push_back({ "Audio Editor",
1,
{ { { "Popout Audio Editor",
"gWindows.AudioEditor",
"Enables the audio editor window",
WIDGET_WINDOW_BUTTON,
{ .size = UIWidgets::Sizes::Inline, .windowName = "Audio Editor" } } } } });
}

void AddDevTools() {
Expand Down Expand Up @@ -1670,13 +1677,6 @@ void AddDevTools() {
"Enables the event log window",
WIDGET_WINDOW_BUTTON,
{ .size = UIWidgets::Sizes::Inline, .windowName = "Event Log" } } } } });
devToolsSidebar.push_back({ "Audio Editor",
1,
{ { { "Popout Audio Editor",
"gWindows.AudioEditor",
"Enables the audio editor window",
WIDGET_WINDOW_BUTTON,
{ .size = UIWidgets::Sizes::Inline, .windowName = "Audio Editor" } } } } });
}

void SearchMenuGetItem(widgetInfo& widget) {
Expand Down

0 comments on commit 8364276

Please sign in to comment.