MenuItemManager::MenuItemManager(ScriptAssemblyManager& scriptObjectManager) :mScriptObjectManager(scriptObjectManager), mMenuItemAttribute(nullptr), mPathField(nullptr), mShortcutField(nullptr), mPriorityField(nullptr), mSeparatorField(nullptr) { mDomainLoadedConn = ScriptObjectManager::instance().onRefreshDomainLoaded.connect(std::bind(&MenuItemManager::reloadAssemblyData, this)); reloadAssemblyData(); }
void ScriptInspectorUtility::startUp() { mDomainLoadedConn = ScriptObjectManager::instance().onRefreshDomainLoaded.connect(&ScriptInspectorUtility::reloadAssemblyData); reloadAssemblyData(); }
ScriptGizmoManager::ScriptGizmoManager(ScriptAssemblyManager& scriptObjectManager) :mScriptObjectManager(scriptObjectManager), mDrawGizmoAttribute(nullptr), mFlagsField(nullptr) { mDomainLoadedConn = ScriptObjectManager::instance().onRefreshDomainLoaded.connect(std::bind(&ScriptGizmoManager::reloadAssemblyData, this)); reloadAssemblyData(); }