| 302 | } |
| 303 | |
| 304 | void 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 | |
| 323 | S32 GuiTextListCtrl::findEntryById(U32 id) |
| 324 | { |
no test coverage detected