74 me.focusedCell =
eY * (me.rows - 1);
77 me.moveFocus(me, me.focusedCell,
'-1 0 0');
82 me.focusedCell =
eX * (me.columns - 1);
85 me.moveFocus(me, me.focusedCell,
'1 0 0');
89 me.moveFocus(me, me.focusedCell,
'0 -1 0');
93 me.moveFocus(me, me.focusedCell,
'0 1 0');
99 me.cellSelect(me, me.focusedCell);
107 me.focusedCell.x =
mod(me.focusedCell.x + step.x + me.columns, me.columns);
108 me.focusedCell.y =
mod(me.focusedCell.y + step.y + me.rows, me.rows);
110 if (me.focusedCell != initialCell && !me.cellIsValid(me, me.focusedCell))
111 me.moveFocus(me, initialCell, step);
113 me.focusedCellAlpha = SKINALPHA_LISTBOX_FOCUSED;
132 me.focusable = !me.disabled;
141 for (cell.y = 0; cell.y < me.rows; ++cell.y)
143 cellPos.y =
mod(cell.y, me.rows) / me.rows;
144 for (cell.x = 0; cell.x < me.columns; ++cell.x)
146 if (!me.cellIsValid(me, cell))
149 cellPos.x =
mod(cell.x, me.columns) / me.columns;
151 if (cell == me.selectedCell)
152 draw_Fill(cellPos, me.realCellSize, SKINCOLOR_LISTBOX_SELECTED, SKINALPHA_LISTBOX_SELECTED);
153 else if (cell == me.focusedCell && me.focused)
155 if (!me.pressed || me.focusedCell == me.pressedCell)
157 me.focusedCellAlpha =
getFadedAlpha(me.focusedCellAlpha, SKINALPHA_LISTBOX_FOCUSED, SKINFADEALPHA_LISTBOX_FOCUSED);
158 draw_Fill(cellPos, me.realCellSize, SKINCOLOR_LISTBOX_FOCUSED, me.focusedCellAlpha);
162 me.cellDraw(me, cell, cellPos);