Originally Posted by DerVagabund
thanks for the ideas - I also thought about some textual display, but as you mentioned, in order to realize that I would need to calculate each items position individually.
|
That's a two-liner; if you like it excessive.
lineHeight = ControlHeight / maxLines
lineIndex = math.floor(CursorYPos / lineHeight) + 1