| 7 | CUIMapHint::~CUIMapHint() {} |
| 8 | |
| 9 | void 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 | |
| 29 | void CUIMapHint::SetText(LPCSTR text) |
| 30 | { |
nothing calls this directly
no test coverage detected