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

Function ValidateWeapon

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

Source from the content-addressed store, hash-verified

1153 piSignGW = (*cfg) >> "widthGroup";
1154 piSignUW = (*cfg) >> "widthUnit";
1155
1156 cfg = &((*mainCfg) >> "GroupInfo");
1157 uiX = (*cfg) >> "left";
1158 uiY = (*cfg) >> "top";
1159 uiW = (*cfg) >> "width";
1160 uiH = (*cfg) >> "height";
1161 groupInfoDim = (*cfg) >> "dimm";
1162 uiColorNone = GetPackedColor((*cfg) >> "colorIDNone");
1163 uiColorNormal = GetPackedColor((*cfg) >> "colorIDNormal");
1164 uiColorSelected = GetPackedColor((*cfg) >> "colorIDSelected");
1165 uiColorPlayer = GetPackedColor((*cfg) >> "colorIDPlayer");
1166 _imageDefaultWeapons = GLOB_ENGINE->TextBank()->Load(GetPictureName((*cfg) >> "imageDefaultWeapons"));
1167 _imageNoWeapons = GLOB_ENGINE->TextBank()->Load(GetPictureName((*cfg) >> "imageNoWeapons"));

Callers 5

ResetVehicleMethod · 0.85
FindTargetMethod · 0.85
DrawUnitInfoMethod · 0.85
SimulateHUDMethod · 0.85
SwitchToFireMethod · 0.85

Calls 1

NMagazineSlotsMethod · 0.80

Tested by

no test coverage detected