| 394 | } |
| 395 | |
| 396 | void 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 | } |
| 434 | void draw_sign(CUIStatic* s, Fvector2& pos) |
| 435 | { |
| 436 | s->SetWndPos(pos); |
no test coverage detected