/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/Kraut/EditorPluginKraut/EditorPluginKraut.cpp
35 строк
1 KB
Jan Krassnigg
Integrated Kraut tree editing into EZ Kraut asset (#1873)
22 мар 2026, 14:01
Не верифицирован
22 мар 2026, 14:01
ab7bce8
Код
Авторство
О чём код?
#include <EditorPluginKraut/EditorPluginKrautPCH.h> #include <EditorFramework/Actions/AssetActions.h> #include <EditorFramework/Actions/ProjectActions.h> #include <EditorPluginKraut/Actions/KrautActions.h> #include <EditorPluginKraut/KrautTreeAsset/KrautTreeAssetObjects.h> #include <GuiFoundation/Action/ActionMapManager.h> #include <GuiFoundation/Action/CommandHistoryActions.h> #include <GuiFoundation/Action/DocumentActions.h> #include <GuiFoundation/Action/StandardMenus.h> #include <GuiFoundation/PropertyGrid/PropertyMetaState.h> EZ_PLUGIN_ON_LOADED() { ezPropertyMetaState::GetSingleton()->m_Events.AddEventHandler(ezKrautTreeAssetProperties::PropertyMetaStateEventHandler); ezKrautActions::RegisterActions(); // Menu Bar { ezActionMapManager::RegisterActionMap("KrautTreeAssetMenuBar", "AssetMenuBar"); } // Tool Bar { ezActionMapManager::RegisterActionMap("KrautTreeAssetToolBar", "AssetToolbar"); ezKrautActions::MapActions("KrautTreeAssetToolBar"); } } EZ_PLUGIN_ON_UNLOADED() { ezPropertyMetaState::GetSingleton()->m_Events.RemoveEventHandler(ezKrautTreeAssetProperties::PropertyMetaStateEventHandler); ezKrautActions::UnregisterActions(); }