| 216 | //----------------------------------------------------------------------------- |
| 217 | |
| 218 | GuiInspectorGroup* GuiInspector::findExistentGroup( StringTableEntry groupName ) |
| 219 | { |
| 220 | // If we have no groups, it couldn't possibly exist |
| 221 | if( mGroups.empty() ) |
| 222 | return NULL; |
| 223 | |
| 224 | // Attempt to find it in the group list |
| 225 | Vector<GuiInspectorGroup*>::iterator i = mGroups.begin(); |
| 226 | |
| 227 | for( ; i != mGroups.end(); i++ ) |
| 228 | { |
| 229 | if( dStricmp( (*i)->getGroupName(), groupName ) == 0 ) |
| 230 | return *i; |
| 231 | } |
| 232 | |
| 233 | return NULL; |
| 234 | } |
| 235 | |
| 236 | S32 GuiInspector::findExistentGroupIndex(StringTableEntry groupName) |
| 237 | { |