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

Method reverseTextList

Engine/source/gui/controls/guiPopUpCtrl.cpp:1389–1400  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1387
1388//------------------------------------------------------------------------------
1389void GuiPopUpMenuCtrl::reverseTextList()
1390{
1391 mTl->clear();
1392 for ( S32 i = mEntries.size()-1; i >= 0; --i )
1393 mTl->addEntry( mEntries[i].id, mEntries[i].buf );
1394
1395 // Don't lose the selected cell:
1396 if ( mSelIndex >= 0 )
1397 mTl->setSelectedCell( Point2I( 0, mEntries.size() - mSelIndex - 1 ) );
1398
1399 mRevNum = mEntries.size() - 1;
1400}
1401
1402//------------------------------------------------------------------------------
1403bool GuiPopUpMenuCtrl::getFontColor( ColorI &fontColor, S32 id, bool selected, bool mouseOver )

Callers

nothing calls this directly

Calls 5

setSelectedCellMethod · 0.80
Point2IClass · 0.50
clearMethod · 0.45
sizeMethod · 0.45
addEntryMethod · 0.45

Tested by

no test coverage detected