| 1131 | } |
| 1132 | |
| 1133 | bool CUIXmlInit::InitTexture(CUIXml& xml_doc, const char* path, int index, IUIMultiTextureOwner* pWnd) |
| 1134 | { |
| 1135 | string256 buf; |
| 1136 | shared_str texture; |
| 1137 | |
| 1138 | strconcat(sizeof(buf), buf, path, ":texture"); |
| 1139 | if (xml_doc.NavigateToNode(buf)) |
| 1140 | texture = xml_doc.Read(buf, index, NULL); |
| 1141 | |
| 1142 | if (!!texture) |
| 1143 | { |
| 1144 | pWnd->InitTexture(*texture); |
| 1145 | return true; |
| 1146 | } |
| 1147 | |
| 1148 | return false; |
| 1149 | } |
| 1150 | |
| 1151 | bool CUIXmlInit::InitTexture(CUIXml& xml_doc, const char* path, int index, IUISingleTextureOwner* pWnd) |
| 1152 | { |
no test coverage detected