2
3
4
5
9#include "Systems/SlateSystem.h"
11#include "Preferences/ImguiPreferences.h"
16 const std::string& panelName,
24
25
26 m_ImguiPreferences = SlateSystem::GetRegister()->Register<ImguiPreferences>(
true,
"Preferences");
34
35
36 if (ImGui::BeginMenu(m_PanelName.c_str()))
45 if (ImGui::BeginMenu(
"Select Recent"))
49 if (ImGui::MenuItem(
"Select All",
"Ctrl+A")) {}
50 if (ImGui::MenuItem(
"Select None",
"Escape")) {}
51 if (ImGui::MenuItem(
"Select Invert",
"Ctrl+i")) {}
52 if (ImGui::MenuItem(
"Select Parent",
"Up")) {}
53 if (ImGui::MenuItem(
"Select Leaf")) {}
54 if (ImGui::MenuItem(
"Select Hierarchy")) {}
55 if (ImGui::MenuItem(
"Select Similar")) {}
57 if (ImGui::MenuItem(
"Create Selection Set")) {}
58 if (ImGui::BeginMenu(
"Select Set"))
62 if (ImGui::BeginMenu(
"Select by Kind"))
64 if (ImGui::MenuItem(
"Assembly")) {}
65 if (ImGui::MenuItem(
"Group")) {}
66 if (ImGui::MenuItem(
"Component")) {}
67 if (ImGui::MenuItem(
"Subcomponent")) {}
74 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CONTROL_POINT_DUPLICATE, Duplicate),
"Ctrl+D")) {}
75 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CONTROL_POINT_DUPLICATE, Duplicate-All Layers))) {}
76 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CONTROL_POINT_DUPLICATE, Duplicate-Collapsed))) {}
77 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CONTROL_POINT_DUPLICATE, Parent),
"P")) {}
78 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_CONTROL_POINT_DUPLICATE, Unparent),
"Shift+P")) {}
83 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_RESTORE_FROM_TRASH, Delete),
"Del")) {}
84 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_RESTORE_FROM_TRASH, Delete-All Layers))) {}
85 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_DRIVE_FILE_RENAME_OUTLINE, Rename),
"F2")) {}
90 if (ImGui::MenuItem(
"Restart selected")) {}
91 if (ImGui::MenuItem(
"Restart all")) {}
92 if (ImGui::MenuItem(
"Toggle active selected")) {}
93 if (ImGui::MenuItem(
"Toggle active all")) {}
95 if (ImGui::MenuItem(
"Upgrade to latest standards")) {}
105 if (ImGui::MenuItem(
ICON_TEXT(ICON_MD_FILTER_VINTAGE, Preferences))) { m_ImguiPreferences->SetWindowState(
true); }
108
109
#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.
virtual void OnRender() override
This interface is called On SlateRenderer Render.
ImguiEdit(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
The ImguiEdit Class. This class defines how to render a edit menu.
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...