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#include "util/i18n/tr.h"
6
10
11namespace yaze {
12namespace editor {
13
19 public:
20 explicit MusicAssemblyPanel(AssemblyEditor* assembly_editor)
21 : assembly_editor_(assembly_editor) {}
22
23 // ==========================================================================
24 // WindowContent Identity
25 // ==========================================================================
26
27 std::string GetId() const override { return "music.assembly"; }
28 std::string GetDisplayName() const override { return "Assembly View"; }
29 std::string GetIcon() const override { return ICON_MD_CODE; }
30 std::string GetEditorCategory() const override { return "Music"; }
31 int GetPriority() const override { return 30; }
32
33 // ==========================================================================
34 // WindowContent Drawing
35 // ==========================================================================
36
37 void Draw(bool* p_open) override {
38 if (!assembly_editor_) {
39 ImGui::TextDisabled(tr("Assembly editor not available"));
40 return;
41 }
42
44 }
45
46 private:
48};
49
50} // namespace editor
51} // namespace yaze
52
53#endif // YAZE_APP_EDITOR_MUSIC_PANELS_MUSIC_ASSEMBLY_PANEL_H_
Text editor for modifying assembly code.
WindowContent 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.
Base interface for all logical window content components.
#define ICON_MD_CODE
Definition icons.h:434