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

Method InitProgressShape

ogsr_engine/xrGame/ui/UIXmlInit.cpp:720–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718}
719
720bool 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
742CUIXmlInit::StaticsVec CUIXmlInit::InitAutoStaticGroup(CUIXml& xml_doc, LPCSTR path, int index, CUIWindow* pParentWnd)
743{

Callers 1

create_force_progressFunction · 0.80

Calls 3

NavigateToNodeMethod · 0.80
ReadAttribIntMethod · 0.80
SetTextVisibleMethod · 0.80

Tested by

no test coverage detected