yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
music_assembly_panel.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_MUSIC_PANELS_MUSIC_ASSEMBLY_PANEL_H_
2#define YAZE_APP_EDITOR_MUSIC_PANELS_MUSIC_ASSEMBLY_PANEL_H_
3
4#include <string>
5
9
10namespace yaze {
11namespace editor {
12
18 public:
19 explicit MusicAssemblyPanel(AssemblyEditor* assembly_editor)
20 : assembly_editor_(assembly_editor) {}
21
22 // ==========================================================================
23 // EditorPanel Identity
24 // ==========================================================================
25
26 std::string GetId() const override { return "music.assembly"; }
27 std::string GetDisplayName() const override { return "Assembly View"; }
28 std::string GetIcon() const override { return ICON_MD_CODE; }
29 std::string GetEditorCategory() const override { return "Music"; }
30 int GetPriority() const override { return 30; }
31
32 // ==========================================================================
33 // EditorPanel Drawing
34 // ==========================================================================
35
36 void Draw(bool* p_open) override {
37 if (!assembly_editor_) {
38 ImGui::TextDisabled("Assembly editor not available");
39 return;
40 }
41
43 }
44
45 private:
47};
48
49} // namespace editor
50} // namespace yaze
51
52#endif // YAZE_APP_EDITOR_MUSIC_PANELS_MUSIC_ASSEMBLY_PANEL_H_
Text editor for modifying assembly code.
Base interface for all logical panel components.
EditorPanel wrapper for the assembly editor view in Music context.
MusicAssemblyPanel(AssemblyEditor *assembly_editor)
std::string GetId() const override
Unique identifier for this panel.
void Draw(bool *p_open) override
Draw the panel content.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
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.
#define ICON_MD_CODE
Definition icons.h:434