MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / findExistentGroup

Method findExistentGroup

Engine/source/gui/editor/guiInspector.cpp:218–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216//-----------------------------------------------------------------------------
217
218GuiInspectorGroup* 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
236S32 GuiInspector::findExistentGroupIndex(StringTableEntry groupName)
237{

Callers 1

onInspectMethod · 0.80

Calls 5

dStricmpFunction · 0.85
getGroupNameMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected