SpiecsEngine
 
Loading...
Searching...
No Matches
ImguiHelp.cpp
Go to the documentation of this file.
1/**
2* @file ImguiHelp.cpp.
3* @brief The ImguiHelp Class Implementation.
4* @author Spices.
5*/
6
7#include "Pchheader.h"
8#include "ImguiHelp.h"
9
10#include "Systems/SlateSystem.h"
11#include "ImguiAbout.h"
12
13namespace Spices {
14
16 const std::string& panelName ,
17 FrameInfo& frameInfo
18 )
19 : ImguiSlate(panelName, frameInfo)
20 {
22
23 /**
24 * @brief Instance a ImguiAbout.
25 */
26 m_About = SlateSystem::GetRegister()->Register<ImguiAbout>(true, "About SpicesEngine");
27 }
28
30 {
32
33 /**
34 * @brief Begin render About.
35 */
36 if (ImGui::BeginMenu(m_PanelName.c_str()))
37 {
39
40 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, Provide Feedback))) {}
41 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, Spices UI Docs))) {}
42 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, User Manual), "F1")) {}
43 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, Discover Kit SDK))) {}
44 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, Developers Manual))) {}
45
46 /**
47 * @brief Render About.
48 */
49 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, About))) m_About->SetWindowState(true);
50
51 /**
52 * @brief End render Visualizer.
53 */
54 ImGui::EndMenu();
55 }
56 }
57}
#define ICON_TEXT(icon, text)
Definition ImguiHelper.h:24
#define ICON_EMPTY
Definition ImguiHelper.h:26
#define SPICES_PROFILE_ZONE
FrameInfo Class. This class defines the FrameInfo data.
Definition FrameInfo.h:32
static void MainMenuTitleSeparator()
Draw main menu titile separator.
The ImGuiH Class. This class defines helper function for slate render.
Definition ImguiHelper.h:61
virtual void OnRender() override
This interface is called On SlateRenderer Render.
Definition ImguiHelp.cpp:29
ImguiHelp(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
Definition ImguiHelp.cpp:15
The ImguiHelp Class. This class defines how to render a Help.
Definition ImguiHelp.h:23
ImguiSlate(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function. Init with Slate's name.
Definition ImguiUtils.h:35
This Class defines the basic behaves of specific slate. When we add an new Slate, we need inherit fro...
Definition ImguiUtils.h:27