yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
about_panel.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_UI_ABOUT_PANEL_H_
2#define YAZE_APP_EDITOR_UI_ABOUT_PANEL_H_
3
6#include "imgui/imgui.h"
7#include "yaze_config.h"
8
9namespace yaze::editor {
10
11class AboutPanel : public EditorPanel {
12 public:
13 std::string GetId() const override { return "yaze.about"; }
14 std::string GetDisplayName() const override { return "About Yaze"; }
15 std::string GetIcon() const override { return ICON_MD_INFO; }
16 std::string GetEditorCategory() const override { return "Settings"; }
17 PanelScope GetScope() const override { return PanelScope::kGlobal; }
18
19 void Draw(bool* p_open) override {
20 ImGui::Text("Yaze - Yet Another Zelda Editor");
21 ImGui::Separator();
22 ImGui::Text("Version: %d.%d.%d", YAZE_VERSION_MAJOR, YAZE_VERSION_MINOR, YAZE_VERSION_PATCH);
23 ImGui::Text("Architecture: Unified Panel System");
24
25 if (ImGui::Button("Close")) {
26 if (p_open) *p_open = false;
27 }
28 }
29};
30
31} // namespace yaze::editor
32
33#endif // YAZE_APP_EDITOR_UI_ABOUT_PANEL_H_
std::string GetId() const override
Unique identifier for this panel.
Definition about_panel.h:13
std::string GetIcon() const override
Material Design icon for this panel.
Definition about_panel.h:15
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Definition about_panel.h:16
PanelScope GetScope() const override
Get the registration scope for this panel.
Definition about_panel.h:17
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Definition about_panel.h:14
void Draw(bool *p_open) override
Draw the panel content.
Definition about_panel.h:19
Base interface for all logical panel components.
#define ICON_MD_INFO
Definition icons.h:993
Editors are the view controllers for the application.
PanelScope
Defines whether a panel is session-scoped or global.