/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/AngelScript/EditorPluginAngelScript/Actions/AngelScriptActions.h
43 строки
1 KB
Jan Krassnigg
Added toolbar menus to select snapping options (#1504)
09 мар 2025, 18:11
Не верифицирован
09 мар 2025, 18:11
087f036
Код
Авторство
О чём код?
#pragma once #include <EditorPluginAngelScript/EditorPluginAngelScriptDLL.h> #include <GuiFoundation/Action/BaseActions.h> #include <GuiFoundation/GuiFoundationDLL.h> class ezAngelScriptAssetDocument; struct ezAngelScriptAssetEvent; class ezAngelScriptActions { public: static void RegisterActions(); static void UnregisterActions(); static void MapActionsMenu(ezStringView sMapping); static void MapActionsToolbar(ezStringView sMapping); static ezActionDescriptorHandle s_hCategory; static ezActionDescriptorHandle s_hOpenInVSC; static ezActionDescriptorHandle s_hSyncExposedParams; }; class ezAngelScriptAction : public ezButtonAction { EZ_ADD_DYNAMIC_REFLECTION(ezAngelScriptAction, ezButtonAction); public: enum class ActionType { OpenInVSC, SyncExposedParameters, }; ezAngelScriptAction(const ezActionContext& context, const char* szName, ActionType type); virtual void Execute(const ezVariant& value) override; private: ezAngelScriptAssetDocument* m_pDocument = nullptr; ActionType m_Type; };