Post: Help removing infinite scrolling
01-02-2016, 12:39 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); can you do me a big favor and take the infinite scrolling out of this id prefer the base without it because you cant use a news bar or anything like that.

---------------------------------------------------------------------------
updateScrollbar()//infinite scrolling
{
if(self.menu.curs[self.CurMenu]<0)
self.menu.curs[self.CurMenu] = self.menu.menuopt[self.CurMenu].size-1;

if(self.menu.curs[self.CurMenu]>self.menu.menuopt[self.CurMenu].size-1)
self.menu.curs[self.CurMenu] = 0;

if(!isDefined(self.menu.menuopt[self.CurMenu][self.menu.curs[self.CurMenu]-10])||self.menu.menuopt[self.CurMenu].size<=10)
{
for(i = 0; i < 10; i++)
{
if(isDefined(self.menu.menuopt[self.CurMenu]))
self.AIO["options"] setSafeText(self.menu.menuopt[self.CurMenu]);
else
self.AIO["options"] setSafeText("");

if(self.menu.curs[self.CurMenu] == i)
self.AIO["options"] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.AIO["options"] affectElement("alpha", .2, .3);//every other option besides the current option
}
self.AIO["scrollbar"].y = -120 + (25*self.menu.curs[self.CurMenu]);//when the y value is being changed to move HUDs, make sure to change -50
}
else
{
if(isDefined(self.menu.menuopt[self.CurMenu][self.menu.curs[self.CurMenu]+10]))
{
xePixTvx = 0;
for(i=self.menu.curs[self.CurMenu]-10;i<self.menu.curs[self.CurMenu]+10;i++)
{
if(isDefined(self.menu.menuopt[self.CurMenu]))
self.AIO["options"][xePixTvx] setSafeText(self.menu.menuopt[self.CurMenu]);
else
self.AIO["options"][xePixTvx] setSafeText("");

if(self.menu.curs[self.CurMenu]==i)
self.AIO["options"][xePixTvx] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.AIO["options"][xePixTvx] affectElement("alpha", .2, .3);//every other option besides the current option

xePixTvx ++;
}
self.AIO["scrollbar"].y = -120 + (25*2);//when the y value is being changed to move HUDs, make sure to change -50
}
else
{
for(i = 0; i < 10; i++)
{
self.AIO["options"] setSafeText(self.menu.menuopt[self.CurMenu][self.menu.menuopt[self.CurMenu].size+(i-10)]);

if(self.menu.curs[self.CurMenu]==self.menu.menuopt[self.CurMenu].size+(i-10))
self.AIO["options"] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.AIO["options"] affectElement("alpha", .2, .3);//every other option besides the current option
}
self.AIO["scrollbar"].y = -120 + (25*((self.menu.curs[self.CurMenu]-self.menu.menuopt[self.CurMenu].size)+10));//when the y value is being changed to move HUDs, make sure to change -50
}
}
}
------------------------------------------------------------------------
StoreText(menu, title)
{
self.AIO["title"] setSafeText(title);

//this is here so option text does not recreate everytime storetext is called
if(self.recreateOptions)
for(i = 0; i < 10; i++)
self.AIO["options"] = drawText("", "objective", 1.5, "LEFT", "CENTER", -376, -120+(i*25), (1,1,1), 0, 10);
else
for(i = 0; i < 10; i++)
self.AIO["options"] setSafeText(self.menu.menuopt[menu]);
}
------------------------------------------------------------------------
Thanks If you take it out!
Also my skype is dyl4n.20 if easier to chat on there.
(adsbygoogle = window.adsbygoogle || []).push({});
01-02-2016, 12:55 AM #2
-Numb
You talkin to me?
You can use a newsbar with a base that got infinite scrolling?
Why not use a shark base that does not have infinite scrolling instead of the AIO base?
01-02-2016, 01:17 AM #3
i Like the design and shit to much work to transfer all of it
01-02-2016, 02:19 AM #4
itsSorrow
In my man cave
Originally posted by dyl4n.20 View Post
i Like the design and shit to much work to transfer all of it


its not hard 2 transfer huds over...
01-02-2016, 03:10 AM #5
EternalHabit
Former Staff
Originally posted by dyl4n.20 View Post
can you do me a big favor and take the infinite scrolling out of this id prefer the base without it because you cant use a news bar or anything like that.

---------------------------------------------------------------------------
updateScrollbar()//infinite scrolling
{
if(self.menu.curs[self.CurMenu]<0)
self.menu.curs[self.CurMenu] = self.menu.menuopt[self.CurMenu].size-1;

if(self.menu.curs[self.CurMenu]>self.menu.menuopt[self.CurMenu].size-1)
self.menu.curs[self.CurMenu] = 0;

if(!isDefined(self.menu.menuopt[self.CurMenu][self.menu.curs[self.CurMenu]-10])||self.menu.menuopt[self.CurMenu].size<=10)
{
for(i = 0; i < 10; i++)
{
if(isDefined(self.menu.menuopt[self.CurMenu]))
self.AIO["options"] setSafeText(self.menu.menuopt[self.CurMenu]);
else
self.AIO["options"] setSafeText("");

if(self.menu.curs[self.CurMenu] == i)
self.AIO["options"] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.AIO["options"] affectElement("alpha", .2, .3);//every other option besides the current option
}
self.AIO["scrollbar"].y = -120 + (25*self.menu.curs[self.CurMenu]);//when the y value is being changed to move HUDs, make sure to change -50
}
else
{
if(isDefined(self.menu.menuopt[self.CurMenu][self.menu.curs[self.CurMenu]+10]))
{
xePixTvx = 0;
for(i=self.menu.curs[self.CurMenu]-10;i<self.menu.curs[self.CurMenu]+10;i++)
{
if(isDefined(self.menu.menuopt[self.CurMenu]))
self.AIO["options"][xePixTvx] setSafeText(self.menu.menuopt[self.CurMenu]);
else
self.AIO["options"][xePixTvx] setSafeText("");

if(self.menu.curs[self.CurMenu]==i)
self.AIO["options"][xePixTvx] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.AIO["options"][xePixTvx] affectElement("alpha", .2, .3);//every other option besides the current option

xePixTvx ++;
}
self.AIO["scrollbar"].y = -120 + (25*2);//when the y value is being changed to move HUDs, make sure to change -50
}
else
{
for(i = 0; i < 10; i++)
{
self.AIO["options"] setSafeText(self.menu.menuopt[self.CurMenu][self.menu.menuopt[self.CurMenu].size+(i-10)]);

if(self.menu.curs[self.CurMenu]==self.menu.menuopt[self.CurMenu].size+(i-10))
self.AIO["options"] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.AIO["options"] affectElement("alpha", .2, .3);//every other option besides the current option
}
self.AIO["scrollbar"].y = -120 + (25*((self.menu.curs[self.CurMenu]-self.menu.menuopt[self.CurMenu].size)+10));//when the y value is being changed to move HUDs, make sure to change -50
}
}
}
------------------------------------------------------------------------
StoreText(menu, title)
{
self.AIO["title"] setSafeText(title);

//this is here so option text does not recreate everytime storetext is called
if(self.recreateOptions)
for(i = 0; i < 10; i++)
self.AIO["options"] = drawText("", "objective", 1.5, "LEFT", "CENTER", -376, -120+(i*25), (1,1,1), 0, 10);
else
for(i = 0; i < 10; i++)
self.AIO["options"] setSafeText(self.menu.menuopt[menu]);
}
------------------------------------------------------------------------
Thanks If you take it out!
Also my skype is dyl4n.20 if easier to chat on there.


the problem is because you have 10 options on the screen, thats way too many huds. The game can only handle so many
01-02-2016, 06:56 AM #6
DoraTheKiller97
Treasure hunter
Originally posted by GentleSlugger View Post
its not hard 2 transfer huds over...

Takes a fuck load of time though.
01-02-2016, 10:39 AM #7
exactly there for its hard
01-02-2016, 10:40 AM #8
how many do you think is the max i like the same design just bigger/longer
01-02-2016, 01:44 PM #9
Originally posted by dyl4n.20 View Post
i Like the design and shit to much work to transfer all of it


It isn't much work at all, if you think its too much work i suggest not to make a menu because it takes time and effort.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo