updateScrollbar2()//infinite scrolling
{
if(self.menu.curs[self.menu.currentmenu]<0)
self.menu.curs[self.menu.currentmenu] = self.menu.menuopt[self.menu.currentmenu].size-1;
if(self.menu.curs[self.menu.currentmenu]>self.menu.menuopt[self.menu.currentmenu].size-1)
self.menu.curs[self.menu.currentmenu] = 0;
if(!isDefined(self.menu.menuopt[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]-2])||self.menu.menuopt[self.menu.currentmenu].size<=5)
{
for(i = 0; i < 5; i++)
{
if(isDefined(self.menu.menuopt[self.menu.currentmenu][i]))
self.Private["options"][i] setSafeText(self.menu.menuopt[self.menu.currentmenu][i]);
else
self.Private["options"][i] setSafeText("");
if(self.menu.curs[self.menu.currentmenu] == i)
self.Private["options"][i] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.Private["options"][i] affectElement("alpha", .2, .3);//every other option besides the current option
}
self.menu.bar.y = -50 + (25*self.menu.curs[self.menu.currentmenu]);//when the y value is being changed to move HUDs, make sure to change -50
}
else
{
if(isDefined(self.menu.menuopt[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]+2]))
{
xePixTvx = 0;
for(i=self.menu.curs[self.menu.currentmenu]-2;i<self.menu.curs[self.menu.currentmenu]+3;i++)
{
if(isDefined(self.menu.menuopt[self.menu.currentmenu][i]))
self.Private["options"][xePixTvx] setSafeText(self.menu.menuopt[self.menu.currentmenu][i]);
else
self.Private["options"][xePixTvx] setSafeText("");
if(self.menu.curs[self.menu.currentmenu]==i)
self.Private["options"][xePixTvx] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.Private["options"][xePixTvx] affectElement("alpha", .2, .3);//every other option besides the current option
xePixTvx ++;
}
self.menu.bar.y = -50 + (25*2);//when the y value is being changed to move HUDs, make sure to change -50
}
else
{
for(i = 0; i < 5; i++)
{
self.Private["options"][i] setSafeText(self.menu.menuopt[self.menu.currentmenu][self.menu.menuopt[self.menu.currentmenu].size+(i-5)]);
if(self.menu.curs[self.menu.currentmenu]==self.menu.menuopt[self.menu.currentmenu].size+(i-5))
self.Private["options"][i] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.Private["options"][i] affectElement("alpha", .2, .3);//every other option besides the current option
}
self.menu.bar.y = -50 + (25*((self.menu.curs[self.menu.currentmenu]-self.menu.menuopt[self.menu.currentmenu].size)+5));//when the y value is being changed to move HUDs, make sure to change -50
}
}
}
affectElement(type, time, value)
{
if(type == "x" || type == "y")
self moveOverTime(time);
else
self fadeOverTime(time);
if(type == "x")
self.x = value;
if(type == "y")
self.y = value;
if(type == "alpha")
self.alpha = value;
if(type == "color")
self.color = value;
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.