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

Method findItemByValue

Engine/source/gui/controls/guiTreeViewCtrl.cpp:4398–4411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4396//-----------------------------------------------------------------------------
4397
4398S32 GuiTreeViewCtrl::findItemByValue(const char *name)
4399{
4400 for (S32 i = 0; i < mItems.size(); i++)
4401 {
4402 if (!mItems[i])
4403 continue;
4404 if( mItems[i]->mState.test( Item::InspectorData ) )
4405 continue;
4406 if (mItems[i] && String::compare(mItems[i]->getValue(),name) == 0)
4407 return mItems[i]->mId;
4408 }
4409
4410 return 0;
4411}
4412
4413//-----------------------------------------------------------------------------
4414

Callers 1

Calls 4

compareFunction · 0.85
sizeMethod · 0.45
testMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected