| 558 | void CPda::UpdateXForm() { CInventoryItem::UpdateXForm(); } |
| 559 | |
| 560 | void 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 | |
| 579 | void CPda::OnHiddenItem() |
| 580 | { |
nothing calls this directly
no test coverage detected