MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Draw

Method Draw

ogsr_engine/xrGame/ui/UIMap.cpp:384–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382CUILevelMap::~CUILevelMap() {}
383
384void CUILevelMap::Draw()
385{
386 if (MapWnd())
387 {
388 for (auto& it : m_ChildWndList)
389 {
390 CMapSpot* sp = smart_cast<CMapSpot*>(it);
391 if (sp && sp->m_bScale)
392 {
393 Fvector2 sz = sp->m_originSize;
394 sz.mul(MapWnd()->GlobalMap()->GetCurrentZoom());
395 sp->SetWndSize(sz);
396 }
397 }
398 }
399 inherited::Draw();
400}
401
402void CUILevelMap::Init(shared_str name, CInifile& gameLtx, LPCSTR sh_name)
403{

Callers 4

DrawHighlightedTextMethod · 0.45
DrawTextureMethod · 0.45
OnRenderMethod · 0.45
DrawTextMethod · 0.45

Calls 15

DrawFunction · 0.85
UIFunction · 0.85
GetHeadingFunction · 0.85
_cosFunction · 0.85
_sinFunction · 0.85
GetCurrentZoomMethod · 0.80
GlobalMapMethod · 0.80
StartPrimitiveMethod · 0.80
get_current_kxMethod · 0.80
GetHeadingPivotMethod · 0.80
PushPointMethod · 0.80
FlushPrimitiveMethod · 0.80

Tested by

no test coverage detected