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 "
util/i18n/tr.h
"
8
#include "yaze_config.h"
9
10
namespace
yaze::editor
{
11
12
class
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_
yaze::editor::AboutPanel
Definition
about_panel.h:12
yaze::editor::AboutPanel::GetId
std::string GetId() const override
Unique identifier for this panel.
Definition
about_panel.h:14
yaze::editor::AboutPanel::GetIcon
std::string GetIcon() const override
Material Design icon for this panel.
Definition
about_panel.h:16
yaze::editor::AboutPanel::GetEditorCategory
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Definition
about_panel.h:17
yaze::editor::AboutPanel::GetDisplayName
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Definition
about_panel.h:15
yaze::editor::AboutPanel::GetScope
WindowScope GetScope() const override
Get the registration scope for this window.
Definition
about_panel.h:18
yaze::editor::AboutPanel::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
about_panel.h:20
yaze::editor::WindowContent
Base interface for all logical window content components.
Definition
editor_panel.h:90
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:53
yaze::editor::WindowScope::kGlobal
@ kGlobal
tr.h
editor_panel.h
src
app
editor
shell
windows
about_panel.h
Generated by
1.10.0