MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / DisplayMap

Method DisplayMap

engine/Poseidon/UI/Map/UIMapDisplay.cpp:541–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541DisplayMap::DisplayMap(ControlsContainer* parent, RString resource) : Display(parent)
542{
543 _alwaysShow = true;
544
545 _cursor = CursorArrow;
546 // _debriefing = false;
547 _selectWeapons = false;
548 _currentSlot = -1;
549 _needsHUDRefresh = (GWorld->FocusOn() == nullptr);
550
551 Load(resource);
552 // FIX
553 AdjustMapVisibleRect();
554
555 Init();
556 ResetHUD();
557
558 ShowMap(true);
559 ShowCompass(true);
560 ShowWatch(true);
561 ShowWalkieTalkie(true);
562 ShowNotepad(true);
563 // ShowWarrant(IsCampaign());
564 ShowWarrant(false);
565 ShowGPS(false);
566
567 if (_langCbToken >= 0)
568 UnregisterLanguageChangedCallback(_langCbToken);
569 _langCbToken = RegisterLanguageChangedCallback(
570 [this]()
571 {
572 RefreshLocalizedText();
573 RefreshLanguage();
574 });
575}
576
577void DisplayMap::SwitchBriefingSection(RString section)
578{

Callers

nothing calls this directly

Calls 11

ShowMapFunction · 0.85
ShowCompassFunction · 0.85
ShowWatchFunction · 0.85
ShowWalkieTalkieFunction · 0.85
ShowNotepadFunction · 0.85
ShowWarrantFunction · 0.85
ShowGPSFunction · 0.85
FocusOnMethod · 0.80
InitFunction · 0.50

Tested by

no test coverage detected