Quote:void smoothScroller() {I used this code to create a smooth scroll but it doesn't work for some reason.
float toPos;
if (optionCount > maxOptions) {
if (currentOption > maxOptions) {
toPos = ((maxOptions * 0.035f) + 0.1415f);
}
else {
toPos = ((currentOption * 0.035f) + 0.1415f);
}
}
else {
toPos = ((currentOption * 0.035f) + 0.1415f);
}
if ((scrollBarPos - toPos) < 0.0200f) {
scrollBarPos = toPos;
}
else {
if (scrollBarPos > toPos) {
scrollBarPos -= 0.0200f;
}
else if (scrollBarPos < toPos) {
scrollBarPos += 0.0200f;
}
}
}
Please provide scroll source.
This account is currently banned
Ban reason: Leeching/spamming
Ban reason: Leeching/spamming