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

Method ResetHUD

engine/Poseidon/UI/InGame/InGameUI.cpp:1232–1260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1230 hintDimEndTime = (*cfg) >> "dimmEndTime";
1231 GetValue(_hintSound, (*cfg) >> "sound");
1232
1233 cfg = &((*mainCfg) >> "ConnectionLost");
1234
1235 _clX = (*cfg) >> "left";
1236 _clY = (*cfg) >> "top";
1237 _clW = (*cfg) >> "width";
1238 _clH = (*cfg) >> "height";
1239 _clFont = GEngine->LoadFont(GetFontID((*cfg) >> "font"));
1240 _clSize = (*cfg) >> "size";
1241 _clColor = GetPackedColor((*cfg) >> "color");
1242}
1243
1244InGameUI::~InGameUI()
1245{
1246 _visibleListTemp.Clear();
1247 // _visibleListS.Clear();
1248}
1249
1250AbstractUI* CreateInGameUI()
1251{
1252 return new InGameUI;
1253}
1254
1255void AbstractUI::ShowAll(bool show)
1256{
1257 _showUnitInfo = show;
1258 _showTacticalDisplay = show;
1259 _showCompass = show;
1260 _showMenu = show;
1261 _showTankDirection = show;
1262 _showGroupInfo = show;
1263}

Callers 1

SimulateHUDMethod · 0.45

Calls 4

ClearSelectedUnitsFunction · 0.85
ClearTeamsFunction · 0.85
SetHintMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected