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

Function CreateStaticMap

engine/Poseidon/UI/Map/UIMap.cpp:235–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 color = GetPackedColor(cls >> "color");
234 size = cls >> "size";
235}
236
237CStatic* CreateStaticMap(ControlsContainer* parent, int idc, const ParamEntry& cls)
238{
239 CStaticMap* map = new CStaticMap(parent, idc, cls, cls >> "scaleMin", cls >> "scaleMax", cls >> "scaleDefault");
240 map->SetVisibleRect(map->X(), map->Y(), map->W(), map->H());
241 map->Center();
242 return map;
243}
244

Callers 1

OnCreateCtrlMethod · 0.85

Calls 6

SetVisibleRectMethod · 0.80
XMethod · 0.45
YMethod · 0.45
WMethod · 0.45
HMethod · 0.45
CenterMethod · 0.45

Tested by

no test coverage detected