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

Method Init

ogsr_engine/xrGame/ui/map_hint.cpp:9–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7CUIMapHint::~CUIMapHint() {}
8
9void CUIMapHint::Init()
10{
11 CUIXmlInit xml_init;
12 CUIXml uiXml;
13 bool xml_result = uiXml.Init(CONFIG_PATH, UI_PATH, "hint_item.xml");
14 R_ASSERT3(xml_result, "xml file not found", "hint_item.xml");
15
16 xml_init.InitWindow(uiXml, "hint_item", 0, this);
17
18 m_border = xr_new<CUIFrameWindow>();
19 m_border->SetAutoDelete(true);
20 AttachChild(m_border);
21 xml_init.InitFrameWindow(uiXml, "hint_item:frame", 0, m_border);
22
23 m_text = xr_new<CUIStatic>();
24 m_text->SetAutoDelete(true);
25 AttachChild(m_text);
26 xml_init.InitStatic(uiXml, "hint_item:description", 0, m_text);
27}
28
29void CUIMapHint::SetText(LPCSTR text)
30{

Callers

nothing calls this directly

Calls 3

InitFrameWindowMethod · 0.80
InitWindowMethod · 0.45
InitStaticMethod · 0.45

Tested by

no test coverage detected