void LLFloaterPathfindingConsole::onOpen(const LLSD& pKey) { LLFloater::onOpen(pKey); //make sure we have a pathing system if ( LLPathingLib::getInstance() == NULL ) { setConsoleState(kConsoleStateLibraryNotImplemented); LL_WARNS() <<"Errror: cannot find pathing library implementation."<<LL_ENDL; } else { if (!mNavMeshZoneSlot.connected()) { mNavMeshZoneSlot = mNavMeshZone.registerNavMeshZoneListener(boost::bind(&LLFloaterPathfindingConsole::handleNavMeshZoneStatus, this, _1)); } mIsNavMeshUpdating = false; initializeNavMeshZoneForCurrentRegion(); registerSavedSettingsListeners(); fillInColorsForNavMeshVisualization(); } if (!mRegionBoundarySlot.connected()) { mRegionBoundarySlot = gAgent.addRegionChangedCallback(boost::bind(&LLFloaterPathfindingConsole::onRegionBoundaryCross, this)); } if (!mTeleportFailedSlot.connected()) { mTeleportFailedSlot = LLViewerParcelMgr::getInstance()->setTeleportFailedCallback(boost::bind(&LLFloaterPathfindingConsole::onRegionBoundaryCross, this)); } if (!mPathEventSlot.connected()) { mPathEventSlot = LLPathfindingPathTool::getInstance()->registerPathEventListener(boost::bind(&LLFloaterPathfindingConsole::onPathEvent, this)); } setDefaultInputs(); updatePathTestStatus(); if (mViewTestTabContainer->getCurrentPanelIndex() == XUI_TEST_TAB_INDEX) { switchIntoTestPathMode(); } // <FS:CR> Show an alert dialog if using the Opensim viewer as functionality will be limited without Havok #ifdef OPENSIM LLSD args; args["FEATURE"] = getString("no_havok"); LLNotificationsUtil::add("NoHavok", args); #endif // OPENSIM // </FS:CR> }
void LLFloaterPathfindingConsole::onOpen(const LLSD& pKey) { LLFloater::onOpen(pKey); //make sure we have a pathing system if ( LLPathingLib::getInstance() == NULL ) { setConsoleState(kConsoleStateLibraryNotImplemented); LL_WARNS() <<"Errror: cannot find pathing library implementation."<<LL_ENDL; } else { if (!mNavMeshZoneSlot.connected()) { mNavMeshZoneSlot = mNavMeshZone.registerNavMeshZoneListener(boost::bind(&LLFloaterPathfindingConsole::handleNavMeshZoneStatus, this, _1)); } mIsNavMeshUpdating = false; initializeNavMeshZoneForCurrentRegion(); registerSavedSettingsListeners(); fillInColorsForNavMeshVisualization(); } if (!mRegionBoundarySlot.connected()) { mRegionBoundarySlot = gAgent.addRegionChangedCallback(boost::bind(&LLFloaterPathfindingConsole::onRegionBoundaryCross, this)); } if (!mTeleportFailedSlot.connected()) { mTeleportFailedSlot = LLViewerParcelMgr::getInstance()->setTeleportFailedCallback(boost::bind(&LLFloaterPathfindingConsole::onRegionBoundaryCross, this)); } if (!mPathEventSlot.connected()) { mPathEventSlot = LLPathfindingPathTool::getInstance()->registerPathEventListener(boost::bind(&LLFloaterPathfindingConsole::onPathEvent, this)); } setDefaultInputs(); updatePathTestStatus(); if (mViewTestTabContainer->getCurrentPanelIndex() == XUI_TEST_TAB_INDEX) { switchIntoTestPathMode(); } }
void ModelData::setDefaultMixes(const GeneralSettings & settings) { if (IS_TARANIS(GetEepromInterface()->getBoard())) { setDefaultInputs(settings); } for (int i=0; i<NUM_STICKS; i++) { MixData * mix = &mixData[i]; mix->destCh = i+1; mix->weight = 100; if (IS_TARANIS(GetEepromInterface()->getBoard())) { mix->srcRaw = RawSource(SOURCE_TYPE_VIRTUAL_INPUT, i); } else { mix->srcRaw = RawSource(SOURCE_TYPE_STICK, i); } } }
void LLFloaterPathfindingConsole::onClose(bool pIsAppQuitting) { switchOutOfTestPathMode(); if (mPathEventSlot.connected()) { mPathEventSlot.disconnect(); } if (mTeleportFailedSlot.connected()) { mTeleportFailedSlot.disconnect(); } if (mRegionBoundarySlot.connected()) { mRegionBoundarySlot.disconnect(); } if (mNavMeshZoneSlot.connected()) { mNavMeshZoneSlot.disconnect(); } if (LLPathingLib::getInstance() != NULL) { mNavMeshZone.disable(); } deregisterSavedSettingsListeners(); setDefaultInputs(); setConsoleState(kConsoleStateUnknown); cleanupRenderableRestoreItems(); LLFloater::onClose(pIsAppQuitting); }