void ezGameObjectSelectionActions::MapContextMenuActions(const char* szMapping, const char* szPath) { ezActionMap* pMap = ezActionMapManager::GetActionMap(szMapping); EZ_ASSERT_DEV(pMap != nullptr, "The given mapping ('{0}') does not exist, mapping the actions failed!", szMapping); ezStringBuilder sSubPath(szPath, "/SelectionCategory"); pMap->MapAction(s_hSelectionCategory, szPath, 5.0f); pMap->MapAction(s_hFocusOnSelectionAllViews, sSubPath, 1.0f); }
void ezGameObjectSelectionActions::MapActions(const char* szMapping, const char* szPath) { ezActionMap* pMap = ezActionMapManager::GetActionMap(szMapping); EZ_ASSERT_DEV(pMap != nullptr, "The given mapping ('{0}') does not exist, mapping the actions failed!", szMapping); ezStringBuilder sSubPath(szPath, "/SelectionCategory"); pMap->MapAction(s_hSelectionCategory, szPath, 5.0f); pMap->MapAction(s_hShowInScenegraph, sSubPath, 2.0f); pMap->MapAction(s_hFocusOnSelection, sSubPath, 3.0f); pMap->MapAction(s_hFocusOnSelectionAllViews, sSubPath, 3.5f); pMap->MapAction(s_hSnapCameraToObject, sSubPath, 8.0f); pMap->MapAction(s_hMoveCameraHere, sSubPath, 10.0f); }
void ezParticleActions::MapActions(const char* szMapping, const char* szPath) { ezActionMap* pMap = ezActionMapManager::GetActionMap(szMapping); EZ_ASSERT_DEV(pMap != nullptr, "The given mapping ('{0}') does not exist, mapping the actions failed!", szMapping); pMap->MapAction(s_hCategory, "", 11.0f); const char* szSubPath = "ParticleCategory"; pMap->MapAction(s_hPauseEffect, szSubPath, 0.5f); pMap->MapAction(s_hRestartEffect, szSubPath, 1.0f); pMap->MapAction(s_hAutoRestart, szSubPath, 2.0f); pMap->MapAction(s_hSimulationSpeedMenu, szSubPath, 3.0f); ezStringBuilder sSubPath(szSubPath, "/PFX.Speed.Menu"); for (ezUInt32 i = 0; i < EZ_ARRAY_SIZE(s_hSimulationSpeed); ++i) pMap->MapAction(s_hSimulationSpeed[i], sSubPath, i + 1.0f); pMap->MapAction(s_hRenderVisualizers, szSubPath, 4.0f); }