| 124 | } |
| 125 | |
| 126 | U32 GuiImageList::IndexFromPath ( const char* Path ) |
| 127 | { |
| 128 | if ( !mTextures.size() ) return -1; |
| 129 | Vector<PTextureEntry>::iterator i = mTextures.begin(); |
| 130 | for ( ; i != mTextures.end(); i++ ) |
| 131 | { |
| 132 | if ( dStricmp( Path, (*i)->TexturePath ) == 0 ) |
| 133 | return (*i)->id; |
| 134 | } |
| 135 | |
| 136 | return -1; |
| 137 | } |
| 138 | |
| 139 | void GuiImageList::initPersistFields() |
| 140 | { |
no test coverage detected