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

Method OnDisableInfo

ogsr_engine/xrGame/actor_communication.cpp:168–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void CActor::OnDisableInfo(shared_str info_id) const
169{
170 CInventoryOwner::OnDisableInfo(info_id);
171
172#ifdef REMOVE_ARTICLES_ON_DISABLE_INFO
173 CInfoPortion info_portion;
174 info_portion.Load(info_id);
175 AddEncyclopediaArticle(&info_portion, true);
176#endif
177
178 if (!HUD().GetUI())
179 return;
180
181 //только если находимся в режиме single
182 CUIGameSP* pGameSP = smart_cast<CUIGameSP*>(HUD().GetUI()->UIGame());
183 if (!pGameSP)
184 return;
185
186 if (pGameSP->TalkMenu->IsShown())
187 pGameSP->TalkMenu->NeedUpdateQuestions();
188}
189
190void CActor::ReceivePhrase(DIALOG_SHARED_PTR& phrase_dialog)
191{

Callers

nothing calls this directly

Calls 5

GetUIMethod · 0.80
UIGameMethod · 0.80
IsShownMethod · 0.80
NeedUpdateQuestionsMethod · 0.80
LoadMethod · 0.45

Tested by

no test coverage detected