75 me.focusedCell =
eY * (me.rows - 1);
78 me.moveFocus(me, me.focusedCell,
'-1 0 0');
83 me.focusedCell =
eX * (me.columns - 1);
86 me.moveFocus(me, me.focusedCell,
'1 0 0');
90 me.moveFocus(me, me.focusedCell,
'0 -1 0');
94 me.moveFocus(me, me.focusedCell,
'0 1 0');
100 me.cellSelect(me, me.focusedCell);
108 me.focusedCell_x =
mod(me.focusedCell.x + step.x + me.columns, me.columns);
109 me.focusedCell_y =
mod(me.focusedCell.y + step.y + me.rows, me.rows);
111 if(me.focusedCell != initialCell)
112 if(!me.cellIsValid(me, me.focusedCell))
113 me.moveFocus(me, initialCell, step);
115 me.focusedCellAlpha = SKINALPHA_LISTBOX_FOCUSED;
136 me.focusable = !me.disabled;
146 for(cell_y = 0; cell.y < me.rows; ++cell.y)
148 cellPos_y =
mod(cell.y, me.rows) / me.rows;
149 for(cell_x = 0; cell.x < me.columns; ++cell.x)
151 if(!me.cellIsValid(me, cell))
154 cellPos_x =
mod(cell.x, me.columns) / me.columns;
156 if(cell == me.selectedCell)
157 draw_Fill(cellPos, me.realCellSize, SKINCOLOR_LISTBOX_SELECTED, SKINALPHA_LISTBOX_SELECTED);
158 else if(cell == me.focusedCell && me.focused)
160 if(!me.pressed || me.focusedCell == me.pressedCell)
162 me.focusedCellAlpha =
getFadedAlpha(me.focusedCellAlpha, SKINALPHA_LISTBOX_FOCUSED, SKINFADEALPHA_LISTBOX_FOCUSED);
163 draw_Fill(cellPos, me.realCellSize, SKINCOLOR_LISTBOX_FOCUSED, me.focusedCellAlpha);
167 me.cellDraw(me, cell, cellPos);