| 194 | } |
| 195 | |
| 196 | MyGUI::UString SampleLayout::getPath(MyGUI::TreeControl::Node* pNode) const |
| 197 | { |
| 198 | if (!pNode || pNode == mpResourcesTree->getRoot()) |
| 199 | return {}; |
| 200 | |
| 201 | MyGUI::UString strPath; |
| 202 | while (pNode->getParent() != mpResourcesTree->getRoot()) |
| 203 | { |
| 204 | strPath = pNode->getText() + "/" + strPath; |
| 205 | pNode = pNode->getParent(); |
| 206 | } |
| 207 | |
| 208 | return strPath; |
| 209 | } |
| 210 | |
| 211 | namespace demo |
| 212 | { |