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

Function UIMiniMapInit

ogsr_engine/xrGame/ui/UIStatic_script.cpp:15–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15void UIMiniMapInit(CUIMiniMap* wnd)
16{
17 CUIWindow* parent = wnd->GetParent();
18
19 CInifile* pLtx = pGameIni;
20
21 R_ASSERT(pLtx->section_exist(Level().name()));
22
23 wnd->Init(Level().name(), *pLtx, "hud\\default");
24
25 Frect r;
26 parent->GetAbsoluteRect(r);
27 wnd->SetClipRect(r);
28 wnd->WorkingArea().set(r);
29
30 UIMiniMapZoom(wnd, 1.f);
31}
32
33using namespace luabind;
34

Callers

nothing calls this directly

Calls 7

UIMiniMapZoomFunction · 0.85
section_existMethod · 0.80
GetAbsoluteRectMethod · 0.80
SetClipRectMethod · 0.80
nameMethod · 0.45
InitMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected