Post: Scroll shader help
06-12-2016, 02:15 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); i wanted to edit the scrollbar shader but its fucked now, when i scroll it scrolls all over the option:*You must login or register to view this content. is what i mean, its on the last option on that photo so i have no idea how to fix it. anyone could help me with this? it cant be that hard i gues.

    {
if (!self.menu.closeondeath)
{
self freezeControls(false);
if (self.status == "human")
self StoreText("Main Menu Human", "The Shop (Status: ^2Human^7)");
if (self.status == "zombie")
self StoreText("Main Menu Zombie", "The Shop (Status: ^1Zombie^7)");

self.menu.background ScaleOverTime(0.25, 210, 240);
self.menu.background FadeOverTime(0.25);
self.menu.background.alpha = 0.65;

self.menu.scroller ScaleOverTime(0.05, 210, Cool Man (aka Tustin);
self.menu.scroller FadeOverTime(0.05);
self.menu.scroller.alpha = 0.40;

self updateScrollbar();
self.menu.open = true;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
06-12-2016, 02:21 PM #2
    updateScrollbar()
{
self.menu.scroller MoveOverTime(0.10);
self.menu.scroller.y = 160 + (self.menu.curs[self.menu.currentmenu] * 18.10);
}
06-12-2016, 02:32 PM #3
HiddenHour
I defeated!
Originally posted by Unboundh4x View Post
    updateScrollbar()
{
self.menu.scroller MoveOverTime(0.10);
self.menu.scroller.y = 160 + (self.menu.curs[self.menu.currentmenu] * 18.10);
}


It is probably because of your updateScrollbar function. This part specifically-
self.menu.scroller.y = 160 + (self.menu.curs[self.menu.currentmenu] * 18.10);

What this does is say-
Set the y coordinate of your scrollbar to 160, plus the current option number times 18.10

You would first need to find the y of your first option and replace 160 with that number. Then, you need to probably decrease 18.10 to something lower. Try starting with 4 and go upwards from that.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo