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

Method setEntryActive

Engine/source/gui/controls/guiTextListCtrl.cpp:304–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304void GuiTextListCtrl::setEntryActive(U32 id, bool active)
305{
306 S32 index = findEntryById( id );
307 if ( index == -1 )
308 return;
309
310 if ( mList[index].active != active )
311 {
312 mList[index].active = active;
313
314 // You can't have an inactive entry selected...
315 if ( !active && mSelectedCell.y >= 0 && mSelectedCell.y < mList.size()
316 && mList[mSelectedCell.y].id == id )
317 setSelectedCell( Point2I( -1, -1 ) );
318
319 setUpdate();
320 }
321}
322
323S32 GuiTextListCtrl::findEntryById(U32 id)
324{

Callers 2

showPopupMethod · 0.80

Calls 2

Point2IClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected