Post: Scrolling not changing?
08-23-2015, 01:51 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I was modifying some code from going up and down in mod menu with l2/r2 to dpad up/down, and now it wont move at all.

Original Code:
    			if(self adsButtonPressed() || self attackButtonPressed())
{
self.menu.curs[self.menu.currentmenu] += (Iif(self attackButtonPressed(), 1, -1));
self.menu.curs[self.menu.currentmenu] = (Iif(self.menu.curs[self.menu.currentmenu] < 0, self.menu.menuopt[self.menu.currentmenu].size-1, Iif(self.menu.curs[self.menu.currentmenu] > self.menu.menuopt[self.menu.currentmenu].size-1, 0, self.menu.curs[self.menu.currentmenu])));
self playsoundtoplayer("cac_grid_nav",self);
self updateScrollbar();
self.movemenu = 0;
wait 0.124;
}

Changed To:
    if(self actionSlotoneButtonPressed() || self actionSlottwoButtonPressed())
{
self.menu.curs[self.menu.currentmenu] += (Iif(self actionSlottwoButtonPressed(), 1, -1));
self.menu.curs[self.menu.currentmenu] = (Iif(self.menu.curs[self.menu.currentmenu] < 0, self.menu.menuopt[self.menu.currentmenu].size-1, Iif(self.menu.curs[self.menu.currentmenu] > self.menu.menuopt[self.menu.currentmenu].size-1, 0, self.menu.curs[self.menu.currentmenu])));
self playsoundtoplayer("cac_grid_nav",self);
self updateScrollbar();
self.movemenu = 0;
wait 0.124;
}
(adsbygoogle = window.adsbygoogle || []).push({});
08-23-2015, 02:00 AM #2
-Numb
You talkin to me?
Originally posted by Daniel41550 View Post
I was modifying some code from going up and down in mod menu with l2/r2 to dpad up/down, and now it wont move at all.

Original Code:
    			if(self adsButtonPressed() || self attackButtonPressed())
{
self.menu.curs[self.menu.currentmenu] += (Iif(self attackButtonPressed(), 1, -1));
self.menu.curs[self.menu.currentmenu] = (Iif(self.menu.curs[self.menu.currentmenu] < 0, self.menu.menuopt[self.menu.currentmenu].size-1, Iif(self.menu.curs[self.menu.currentmenu] > self.menu.menuopt[self.menu.currentmenu].size-1, 0, self.menu.curs[self.menu.currentmenu])));
self playsoundtoplayer("cac_grid_nav",self);
self updateScrollbar();
self.movemenu = 0;
wait 0.124;
}

Changed To:
    if(self actionSlotoneButtonPressed() || self actionSlottwoButtonPressed())
{
self.menu.curs[self.menu.currentmenu] += (Iif(self actionSlottwoButtonPressed(), 1, -1));
self.menu.curs[self.menu.currentmenu] = (Iif(self.menu.curs[self.menu.currentmenu] < 0, self.menu.menuopt[self.menu.currentmenu].size-1, Iif(self.menu.curs[self.menu.currentmenu] > self.menu.menuopt[self.menu.currentmenu].size-1, 0, self.menu.curs[self.menu.currentmenu])));
self playsoundtoplayer("cac_grid_nav",self);
self updateScrollbar();
self.movemenu = 0;
wait 0.124;
}


You need to remove the code self freezeControls(true); from the openmenu function Smile
08-23-2015, 02:34 AM #3
ByteSource
League Champion
Originally posted by Numb View Post
You need to remove the code self freezeControls(true); from the openmenu function Smile


why do you need that for?? never seen that m8
08-23-2015, 02:37 AM #4
-Numb
You talkin to me?
Originally posted by TehK9
why do you need that for?? never seen that m8


Its to freeze the controls? So you can't move around.. Lots of menus have that
08-23-2015, 03:39 AM #5
Originally posted by Numb View Post
You need to remove the code self freezeControls(true); from the openmenu function Smile


Thank you!
08-23-2015, 03:41 AM #6
Originally posted by Numb View Post
Its to freeze the controls? So you can't move around.. Lots of menus have that


IMO I'd rather have my controls unfrozen, so when I'm in the menu I can kill enemies or run away from them.
08-23-2015, 03:56 AM #7
-Numb
You talkin to me?
Originally posted by Daniel41550 View Post
Thank you!


No problem! :cowboy:
08-23-2015, 04:17 AM #8
itsSorrow
In my man cave
Originally posted by Numb View Post
You need to remove the code self freezeControls(true); from the openmenu function Smile


what?!?! thats not a thing!
08-23-2015, 10:24 AM #9
-Numb
You talkin to me?
Originally posted by 9658
what?!?! thats not a thing!


You know its a thing, so stop spamming just to increase your posts.

The following 2 users say thank you to -Numb for this useful post:

DF_AUS, FRINZ

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo