| 718 | } |
| 719 | |
| 720 | bool CUIXmlInit::InitProgressShape(CUIXml& xml_doc, const char* path, int index, CUIProgressShape* pWnd) |
| 721 | { |
| 722 | R_ASSERT3(xml_doc.NavigateToNode(path, index), "XML node not found", path); |
| 723 | |
| 724 | InitWindow(xml_doc, path, index, pWnd); |
| 725 | |
| 726 | if (xml_doc.ReadAttribInt(path, index, "text")) |
| 727 | pWnd->SetTextVisible(true); |
| 728 | |
| 729 | string256 _path; |
| 730 | |
| 731 | if (xml_doc.NavigateToNode(strconcat(sizeof(_path), _path, path, ":back"), index)) |
| 732 | InitStatic(xml_doc, _path, index, pWnd->m_pBackground); |
| 733 | |
| 734 | InitStatic(xml_doc, strconcat(sizeof(_path), _path, path, ":front"), index, pWnd->m_pTexture); |
| 735 | |
| 736 | pWnd->m_sectorCount = xml_doc.ReadAttribInt(path, index, "sector_count", 8); |
| 737 | pWnd->m_bClockwise = xml_doc.ReadAttribInt(path, index, "clockwise") ? true : false; |
| 738 | |
| 739 | return true; |
| 740 | } |
| 741 | |
| 742 | CUIXmlInit::StaticsVec CUIXmlInit::InitAutoStaticGroup(CUIXml& xml_doc, LPCSTR path, int index, CUIWindow* pParentWnd) |
| 743 | { |
no test coverage detected