MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / OnActiveItem

Method OnActiveItem

ogsr_engine/xrGame/PDA.cpp:560–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558void CPda::UpdateXForm() { CInventoryItem::UpdateXForm(); }
559
560void CPda::OnActiveItem()
561{
562 if (!this_is_3d_pda || !smart_cast<CActor*>(H_Parent()))
563 return;
564
565 SwitchState(eShowing);
566
567 if (!psActorFlags.test(AF_3D_PDA))
568 return;
569
570 auto pGameSP = smart_cast<CUIGameSP*>(HUD().GetUI()->UIGame());
571 pGameSP->ShowHidePda(true);
572
573 if (pGameSP->PdaMenu->m_pActiveSection == eptNoActiveTab)
574 pGameSP->PdaMenu->SetActiveSubdialog((EPdaTabs)eptQuests);
575
576 m_fZoomRotationFactor = 0.f;
577}
578
579void CPda::OnHiddenItem()
580{

Callers

nothing calls this directly

Calls 6

H_ParentFunction · 0.85
UIGameMethod · 0.80
GetUIMethod · 0.80
ShowHidePdaMethod · 0.80
SetActiveSubdialogMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected