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