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

Method reverseTextList

Engine/source/gui/controls/guiPopUpCtrlEx.cpp:1581–1592  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1579
1580//------------------------------------------------------------------------------
1581void GuiPopUpMenuCtrlEx::reverseTextList()
1582{
1583 mTl->clear();
1584 for ( S32 i = mEntries.size()-1; i >= 0; --i )
1585 mTl->addEntry( mEntries[i].id, mEntries[i].buf );
1586
1587 // Don't lose the selected cell:
1588 if ( mSelIndex >= 0 )
1589 mTl->setSelectedCell( Point2I( 0, mEntries.size() - mSelIndex - 1 ) );
1590
1591 mRevNum = mEntries.size() - 1;
1592}
1593
1594//------------------------------------------------------------------------------
1595bool GuiPopUpMenuCtrlEx::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