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

Method PdaContentsChanged

ogsr_engine/xrGame/ui/UIPdaWnd.cpp:396–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396void CUIPdaWnd::PdaContentsChanged(pda_section::part type, bool flash, bool force_update)
397{
398 if (type == pda_section::encyclopedia)
399 {
400 if (force_update)
401 UIEncyclopediaWnd->ResetArticles();
402 else
403 UIEncyclopediaWnd->ReloadArticles();
404 }
405 else if (type == pda_section::news)
406 {
407 UIDiaryWnd->AddNews();
408 UIDiaryWnd->MarkNewsAsRead(UIDiaryWnd->IsShown());
409 }
410 else if (type == pda_section::quests)
411 {
412 UIEventsWnd->Reload();
413 }
414 else if (type == pda_section::contacts)
415 {
416 UIPdaContactsWnd->Reload();
417 flash = false;
418 }
419
420 else if (type == pda_section::journal || type == pda_section::info)
421 {
422 if (force_update)
423 UIDiaryWnd->ResetJournal();
424 else
425 UIDiaryWnd->ReloadJournal();
426 }
427
428 if (flash)
429 {
430 g_pda_info_state |= type;
431 HUD().GetUI()->UIMainIngameWnd->SetFlashIconState_(CUIMainIngameWnd::efiPdaTask, true);
432 }
433}
434void draw_sign(CUIStatic* s, Fvector2& pos)
435{
436 s->SetWndPos(pos);

Callers 8

AddGameNewsMethod · 0.80
NewPdaContactMethod · 0.80
LostPdaContactMethod · 0.80
GiveGameTaskToActorMethod · 0.80
SetTaskStateMethod · 0.80
cleanupMethod · 0.80
shedule_UpdateMethod · 0.80

Calls 10

ResetArticlesMethod · 0.80
ReloadArticlesMethod · 0.80
MarkNewsAsReadMethod · 0.80
IsShownMethod · 0.80
ResetJournalMethod · 0.80
ReloadJournalMethod · 0.80
SetFlashIconState_Method · 0.80
GetUIMethod · 0.80
AddNewsMethod · 0.45
ReloadMethod · 0.45

Tested by

no test coverage detected