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
4
#include "
app/editor/system/workspace/editor_panel.h
"
5
#include "
app/gui/core/icons.h
"
6
#include "imgui/imgui.h"
7
#include "yaze_config.h"
8
9
namespace
yaze::editor
{
10
11
class
AboutPanel
:
public
WindowContent
{
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
WindowScope
GetScope
()
const override
{
return
WindowScope::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,
23
YAZE_VERSION_PATCH);
24
ImGui::Text(
"Architecture: Unified Panel System"
);
25
26
if
(ImGui::Button(
"Close"
)) {
27
if
(p_open)
28
*p_open =
false
;
29
}
30
}
31
};
32
33
}
// namespace yaze::editor
34
35
#endif
// YAZE_APP_EDITOR_SHELL_WINDOWS_ABOUT_PANEL_H_
yaze::editor::AboutPanel
Definition
about_panel.h:11
yaze::editor::AboutPanel::GetId
std::string GetId() const override
Unique identifier for this panel.
Definition
about_panel.h:13
yaze::editor::AboutPanel::GetIcon
std::string GetIcon() const override
Material Design icon for this panel.
Definition
about_panel.h:15
yaze::editor::AboutPanel::GetEditorCategory
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Definition
about_panel.h:16
yaze::editor::AboutPanel::GetDisplayName
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Definition
about_panel.h:14
yaze::editor::AboutPanel::GetScope
WindowScope GetScope() const override
Get the registration scope for this window.
Definition
about_panel.h:17
yaze::editor::AboutPanel::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
about_panel.h:19
yaze::editor::WindowContent
Base interface for all logical window content components.
Definition
editor_panel.h:89
icons.h
ICON_MD_INFO
#define ICON_MD_INFO
Definition
icons.h:993
yaze::editor
Editors are the view controllers for the application.
Definition
patch_export_usage.cc:9
yaze::editor::WindowScope
WindowScope
Defines whether a window is session-scoped or global.
Definition
editor_panel.h:52
yaze::editor::WindowScope::kGlobal
@ kGlobal
editor_panel.h
src
app
editor
shell
windows
about_panel.h
Generated by
1.10.0