yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
menu_inspector_panel.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_ORACLE_PANELS_MENU_INSPECTOR_PANEL_H_
2#define YAZE_APP_EDITOR_ORACLE_PANELS_MENU_INSPECTOR_PANEL_H_
3
4#include <string>
5#include <vector>
6
11#include "imgui/imgui.h"
12#include "imgui/misc/cpp/imgui_stdlib.h"
13
14namespace yaze::editor {
15
17 public:
18 std::string GetId() const override { return "oracle.menu_inspector"; }
19 std::string GetDisplayName() const override { return "Menu Inspector"; }
20 std::string GetIcon() const override { return ICON_MD_MENU_BOOK; }
21 std::string GetEditorCategory() const override { return "Agent"; }
24 "Tools > Hack Workflows > Assets");
25 }
26 std::string GetWorkflowGroup() const override { return "Assets"; }
27 std::string GetWorkflowDescription() const override {
28 return "Inspect menu registries and generated menu assets for the project";
29 }
33 float GetPreferredWidth() const override { return 520.0f; }
34
35 void Draw(bool* p_open) override;
36
37 private:
38 void EnsureProjectPath();
39 void RefreshRegistry();
40 void DrawToolbar();
41 void DrawSummary() const;
42 void DrawBinsTab();
44 void DrawComponentsTab();
45 bool MatchesFilter(const std::string& value, const std::string& filter) const;
46
47 std::string project_path_;
49 bool has_registry_ = false;
51 std::string last_error_;
52 std::string status_message_;
53
54 bool bins_missing_only_ = false;
55 std::string draw_filter_;
57
58 std::vector<const core::OracleMenuComponent*> filtered_components_;
60 int edit_row_ = 0;
61 int edit_col_ = 0;
62};
63
64} // namespace yaze::editor
65
66#endif // YAZE_APP_EDITOR_ORACLE_PANELS_MENU_INSPECTOR_PANEL_H_
void Draw(bool *p_open) override
Draw the panel content.
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
std::vector< const core::OracleMenuComponent * > filtered_components_
std::string GetWorkflowDescription() const override
Optional workflow description for menus/command palette.
std::string GetWorkflowGroup() const override
Optional workflow group for hack-centric actions.
bool MatchesFilter(const std::string &value, const std::string &filter) const
std::string GetEditorCategory() const override
Editor category this panel belongs to.
WindowLifecycle GetWindowLifecycle() const override
Get the lifecycle category for this window.
std::string GetId() const override
Unique identifier for this panel.
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
Base interface for all logical window content components.
#define ICON_MD_MENU_BOOK
Definition icons.h:1197
Editors are the view controllers for the application.
WindowLifecycle
Defines lifecycle behavior for editor windows.
@ CrossEditor
User can pin to persist across editors.
static WindowPresentationPolicy Diagnostic()
WindowPresentationPolicy WithHost(std::string host_name) const
Returns a copy that names the hosting surface.