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

Method findField

Engine/source/gui/editor/inspector/group.cpp:197–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195//-----------------------------------------------------------------------------
196
197GuiInspectorField *GuiInspectorGroup::findField( const char *fieldName )
198{
199 // If we don't have any field children we can't very well find one then can we?
200 if( mChildren.empty() )
201 return NULL;
202
203 Vector<GuiInspectorField*>::iterator i = mChildren.begin();
204
205 for( ; i != mChildren.end(); i++ )
206 {
207 if( (*i)->getFieldName() != NULL && dStricmp( (*i)->getFieldName(), fieldName ) == 0 )
208 return (*i);
209 }
210
211 return NULL;
212}
213
214//-----------------------------------------------------------------------------
215

Callers 2

setObjectFieldMethod · 0.45
refreshMethod · 0.45

Calls 5

dStricmpFunction · 0.85
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
getFieldNameMethod · 0.45

Tested by 2

setObjectFieldMethod · 0.36
refreshMethod · 0.36