Lines Matching refs:item
74 TeamBarMenuItem *item;
76 for (k = 1; (item = (TeamBarMenuItem*)ItemAt(k)) != NULL; k++) {
77 item->BarUpdate();
78 if (item->fKernel < 0) {
85 fRecycleList[lastRecycle++].item = item;
92 total += item->fUser + item->fKernel;
96 // Look new teams that have appeared. Create an item for them, or recycle from the list.
99 item = NULL;
122 if (!item && firstRecycle < lastRecycle) {
123 item = fRecycleList[firstRecycle++].item;
125 if (item) {
126 item->Reset(infos.team_name, infos.team_info.team, infos.team_icon, true);
130 item = new TeamBarMenuItem(new ThreadBarMenu(infos.team_name,
133 item->SetTarget(gPCView);
134 AddItem(item);
135 item->BarUpdate();
137 if (item->fKernel >= 0) {
138 total += item->fUser + item->fKernel;
139 item = NULL;
146 if (item) {
147 RemoveItem(item);
148 delete item;
153 RemoveItems(IndexOf(fRecycleList[firstRecycle].item), lastRecycle - firstRecycle, true);