/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/ProcGen/EditorPluginProcGen/EditorPluginProcGen.cpp
58 строк
1 KB
Sanakan8472
Adding parent mapping support for action maps (#1316)
04 июн 2024, 13:59
Не верифицирован
04 июн 2024, 13:59
4dcf115
Код
Авторство
О чём код?
#include <EditorPluginProcGen/EditorPluginProcGenPCH.h> #include <EditorFramework/Actions/AssetActions.h> #include <EditorFramework/Actions/ProjectActions.h> #include <EditorPluginProcGen/Actions/ProcGenActions.h> #include <GuiFoundation/Action/CommandHistoryActions.h> #include <GuiFoundation/Action/DocumentActions.h> #include <GuiFoundation/Action/EditActions.h> #include <GuiFoundation/Action/StandardMenus.h> static void ToolsProjectEventHandler(const ezToolsProjectEvent& e); void OnLoadPlugin() { // Asset { // Menu Bar { const char* szMenuBar = "ProcGenAssetMenuBar"; ezActionMapManager::RegisterActionMap(szMenuBar, "AssetMenuBar"); ezEditActions::MapActions(szMenuBar, false, false); } // Tool Bar { const char* szToolBar = "ProcGenAssetToolBar"; ezActionMapManager::RegisterActionMap(szToolBar, "AssetToolbar"); } } // Scene { // Menu Bar { ezProcGenActions::RegisterActions(); ezProcGenActions::MapMenuActions(); } // Tool Bar { } } } void OnUnloadPlugin() { ezProcGenActions::UnregisterActions(); } EZ_PLUGIN_ON_LOADED() { OnLoadPlugin(); } EZ_PLUGIN_ON_UNLOADED() { OnUnloadPlugin(); }