/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/AngelScript/EditorPluginAngelScript/EditorPluginAngelScript.cpp
53 строки
2 KB
Jan Krassnigg
Added asset specific help buttons (#1540)
20 апр 2025, 14:17
Не верифицирован
20 апр 2025, 14:17
ba2f80c
Код
Авторство
О чём код?
#include <EditorPluginAngelScript/EditorPluginAngelScriptPCH.h> #include <EditorFramework/Actions/AssetActions.h> #include <EditorFramework/Actions/ProjectActions.h> #include <EditorPluginAngelScript/Actions/AngelScriptActions.h> #include <EditorPluginAngelScript/AngelScriptAsset/AngelScriptAsset.h> #include <GuiFoundation/Action/ActionMapManager.h> #include <GuiFoundation/Action/CommandHistoryActions.h> #include <GuiFoundation/Action/DocumentActions.h> #include <GuiFoundation/Action/EditActions.h> #include <GuiFoundation/Action/StandardMenus.h> #include <GuiFoundation/PropertyGrid/PropertyMetaState.h> void OnLoadPlugin() { ezAngelScriptActions::RegisterActions(); // AngelScript { // Menu Bar { ezActionMapManager::RegisterActionMap("AngelScriptAssetMenuBar", "AssetMenuBar"); ezEditActions::MapActions("AngelScriptAssetMenuBar", false, false); ezAngelScriptActions::MapActionsMenu("AngelScriptAssetMenuBar"); } // Tool Bar { ezActionMapManager::RegisterActionMap("AngelScriptAssetToolBar", "AssetToolbar"); ezAngelScriptActions::MapActionsToolbar("AngelScriptAssetToolBar"); } ezPropertyMetaState::GetSingleton()->m_Events.AddEventHandler(ezAngelScriptAssetDocument::PropertyMetaStateEventHandler); } } void OnUnloadPlugin() { ezPropertyMetaState::GetSingleton()->m_Events.RemoveEventHandler(ezAngelScriptAssetDocument::PropertyMetaStateEventHandler); ezAngelScriptActions::UnregisterActions(); } EZ_PLUGIN_ON_LOADED() { OnLoadPlugin(); } EZ_PLUGIN_ON_UNLOADED() { OnUnloadPlugin(); }