2
3
4
5
8#include "Systems/SlateSystem.h"
11#include "Visualizer/ImguiVisualizer.h"
12#include "Utilities/ImguiUtilities.h"
18 const std::string& panelName ,
26
27
28 m_Visualizer = SlateSystem::GetRegister()->Register<ImguiVisualizer>(
false,
"Visualizer");
31
32
33 m_Utilities = SlateSystem::GetRegister()->Register<ImguiUtilities>(
false,
"Utilities");
36
37
38 m_ViewportMenu = SlateSystem::GetRegister()->Register<ImguiViewportMenu>(
false,
"ViewportMenu");
45 if (ImGui::BeginMenu(m_PanelName.c_str()))
63 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Asset Stores))) {}
64 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Assets))) {}
65 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Content))) {}
66 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Environment))) {}
67 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Examples))) {}
68 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Materials))) {}
69 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Showcases))) {}
70 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, SimReady Explorer))) {}
77 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, NavMesh))) {}
84 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Editor))) {}
85 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Playback Controls))) {}
92 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, AR))) {}
93 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, MDL Material Graph))) {}
94 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Movie Capture))) {}
95 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Render Settings))) {}
96 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Tablet AR))) {}
97 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, VR))) {}
119
120
121 m_Visualizer->OnRender();
124
125
126 m_Utilities->OnRender();
129
130
131 m_ViewportMenu->OnRender();
154 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Collection))) {}
155 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, DeepSearch))) {}
156 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Hotkeys))) {}
157 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Layer))) {}
158 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Property))) {}
159 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Script Editor))) {}
160 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Stage))) {}
161 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, ToolBar))) {}
163 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CHECK, Extensions))) {}
166
167
#define ICON_TEXT(icon, text)
#define SPICES_PROFILE_ZONE
FrameInfo Class. This class defines the FrameInfo data.
static void MainMenuTitleSeparator()
Draw main menu titile separator.
The ImGuiH Class. This class defines helper function for slate render.
ImguiSlate(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function. Init with Slate's name.
This Class defines the basic behaves of specific slate. When we add an new Slate, we need inherit fro...
ImguiWindow(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
virtual void OnRender() override
This interface is called On SlateRenderer Render.
The ImguiWindow Class. This class defines how to render a window menu.