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

Method Init

ogsr_engine/xrGame/ui/UIPdaSpot.cpp:25–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void CUIPdaSpot::Init(u16 spot_id, LPCSTR level_name, Fvector pos, bool main_wnd)
26{
27 m_mainWnd = main_wnd;
28 m_levelName = level_name;
29 m_position = pos;
30 m_spotID = m_mainWnd ? u16(-1) : spot_id;
31
32 if (!m_mainWnd)
33 {
34 CMapLocation* ml = Level().MapManager().GetMapLocation(m_spotType, m_spotID);
35 if (!ml)
36 return;
37 m_editBox->SetText(ml->GetHint());
38 ml->HighlightSpot(true, Fcolor().set(255.f, 36.f, 0.f, 255.f));
39 }
40
41 m_editBox->CaptureFocus(true);
42}
43
44void CUIPdaSpot::InitControls()
45{

Callers 1

InitControlsMethod · 0.45

Calls 7

FcolorClass · 0.85
GetMapLocationMethod · 0.80
HighlightSpotMethod · 0.80
CaptureFocusMethod · 0.80
SetTextMethod · 0.45
GetHintMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected