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

Method DisplayMainMap

engine/Poseidon/UI/Map/UIMapDialogs.cpp:79–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 if (GetNetworkManager().GetGameState() > NGSNone)
80 {
81 if (auto* ctrl = dynamic_cast<CActiveText*>(display->GetCtrl(IDC_DEBRIEFING_RESTART)))
82 ctrl->SetText(LocalizeString(IDS_DISP_CLIENT_READY));
83 if (auto* ctrl = dynamic_cast<CActiveText*>(display->GetCtrl(IDC_CANCEL)))
84 ctrl->SetText(LocalizeString(IDS_DISP_DISCONNECT));
85 }
86}
87} // namespace
88
89DisplayMainMap::DisplayMainMap(ControlsContainer* parent) : DisplayMap(parent, "RscDisplayMainMap")
90{
91 _enableDisplay = false;
92
93 ShowWarrant(false);
94 ShowWalkieTalkie(false);
95 ShowGPS(true);
96 for (int i = sensorsMap.Size() - 1; i >= 0; i--)
97 {
98 Vehicle* veh = sensorsMap[i];
99 if (!veh)
100 {
101 continue;
102 }
103 Detector* det = dyn_cast<Detector>(veh);
104 PoseidonAssert(det);
105 if (det->IsActive() && !det->IsRepeating())
106 {
107 continue;
108 }
109 if (det->GetActivationBy() >= ASAAlpha && det->GetActivationBy() <= ASAJuliet)

Callers

nothing calls this directly

Calls 5

ShowWarrantFunction · 0.85
ShowWalkieTalkieFunction · 0.85
ShowGPSFunction · 0.85
SizeMethod · 0.45
IsActiveMethod · 0.45

Tested by

no test coverage detected