All pastes #2023114 Raw Edit

Miscellany

public lua v1 · immutable
#2023114 ·published 2010-12-18 22:04 UTC
rendered paste body
-- xxx: think of a better way to handle thislocal limits = {	{ Min = 0, Max = 9, DestIndex = 0 },	{ Min = 8, Max = 17, DestIndex = 8 },	{ Min = 16, Max = 25, DestIndex = 16 },	{ Min = 24, Max = 33, DestIndex = 24 },	{ Min = 32, Max = 41, DestIndex = 32 },	{ Min = 40, Max = 49, DestIndex = 40 },	{ Min = 48, Max = 56, DestIndex = 48 },};-- run on scrollerfor info in ivalues(limits) do	if curIndex > info.Min and curIndex < info.Max then		self:SetCurrentAndDestinationItem(info.DestIndex);	endend;