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

Method findItemByName

Engine/source/gui/controls/guiTreeViewCtrl.cpp:4381–4394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4379//-----------------------------------------------------------------------------
4380
4381S32 GuiTreeViewCtrl::findItemByName(const char *name)
4382{
4383 for (S32 i = 0; i < mItems.size(); i++)
4384 {
4385 if ( !mItems[i] )
4386 continue;
4387 if( mItems[i]->mState.test( Item::InspectorData ) )
4388 continue;
4389 if (mItems[i] && String::compare(mItems[i]->getText(),name) == 0)
4390 return mItems[i]->mId;
4391 }
4392
4393 return 0;
4394}
4395
4396//-----------------------------------------------------------------------------
4397

Callers 4

colladaImport.cppFile · 0.80
enumColladaForImportFunction · 0.80
processShapeAssetMethod · 0.80

Calls 4

compareFunction · 0.85
sizeMethod · 0.45
testMethod · 0.45
getTextMethod · 0.45

Tested by

no test coverage detected