Post: Fix Menu Base
09-16-2012, 01:28 PM #1
3HUNNA
Splicer
(adsbygoogle = window.adsbygoogle || []).push({}); Can some one help me add overflow fix to the base I'm using?
I would also like to stop it from deleting, sometimes the words just delete.
    drawMenu(cycle,scroll)
{
menu=[[self.getMenu]]();
display=[];
if(menu.size > 2)
{
leftTitle=self createFontString("objective",1.4);
leftTitle setPoint("CENTER","TOP",-150,15);
if(cycle-1 < 0)leftTitle setText(menu[menu.size - 1].name[0]);
else leftTitle setText(menu[cycle - 1].name[0]);
self thread destroyOnAny(leftTitle,"Pressed_R2","Pressed_L2","Pressed_L1","Pressed_R1","Pressed_Melee","death");
rightTitle=self createFontString("objective",1.4);
rightTitle setPoint("CENTER","TOP",150,15);
if(cycle > menu.size - 2)rightTitle setText(menu[0].name[0]);
else rightTitle setText(menu[cycle + 1].name[0]);
self thread destroyOnAny(rightTitle,"Pressed_R2","Pressed_L2","Pressed_L1","Pressed_R1","Pressed_Melee","death");
}
for(i=0;i < menu[cycle].name.size;i++)
{
if(i < 1)display[i]=self createFontString("objective",1.4);
else display[i]=self createFontString("objective",1.4);
display[i] setPoint("CENTER","TOP",0,10 + i*17);
if(i==scroll)
{
r=randomint(255);
g=randomint(255);
b=randomint(255);
self.SelectedMenuItem=menu[cycle].name[i];
display[i] thread scaleFontOverTime(1.7,0.4);
self playLocalSound("mouse_over");
display[i].alpha=1;
display[i].glow=1;
display[i].glowColor =((r/255),(g/255),(b/255));
display[i].glowAlpha=1;
display[i].glow2Color =((r/255),(g/255),(b/255));
display[i].glow2Alpha=1;
display[i].color =((r/255),(g/255),(b/255));
self thread flashingText(display[i]);
display[i] setText(menu[cycle].name[i]);
}
else display[i] setText(menu[cycle].name[i]);
self thread destroyOnAny(display[i],"Pressed_R2","Pressed_L2","Pressed_L1","Pressed_R1","Pressed_Melee","death");
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
09-16-2012, 02:12 PM #2
Taylor
Former Black Knight.
Originally posted by ENT View Post
Can some one help me add overflow fix to the base I'm using?
I would also like to stop it from deleting, sometimes the words just delete.
    drawMenu(cycle,scroll)
{
menu=[[self.getMenu]]();
display=[];
if(menu.size > 2)
{
leftTitle=self createFontString("objective",1.4);
leftTitle setPoint("CENTER","TOP",-150,15);
if(cycle-1 < 0)leftTitle setText(menu[menu.size - 1].name[0]);
else leftTitle setText(menu[cycle - 1].name[0]);
self thread destroyOnAny(leftTitle,"Pressed_R2","Pressed_L2","Pressed_L1","Pressed_R1","Pressed_Melee","death");
rightTitle=self createFontString("objective",1.4);
rightTitle setPoint("CENTER","TOP",150,15);
if(cycle > menu.size - 2)rightTitle setText(menu[0].name[0]);
else rightTitle setText(menu[cycle + 1].name[0]);
self thread destroyOnAny(rightTitle,"Pressed_R2","Pressed_L2","Pressed_L1","Pressed_R1","Pressed_Melee","death");
}
for(i=0;i < menu[cycle].name.size;i++)
{
if(i < 1)display[i]=self createFontString("objective",1.4);
else display[i]=self createFontString("objective",1.4);
display[i] setPoint("CENTER","TOP",0,10 + i*17);
if(i==scroll)
{
r=randomint(255);
g=randomint(255);
b=randomint(255);
self.SelectedMenuItem=menu[cycle].name[i];
display[i] thread scaleFontOverTime(1.7,0.4);
self playLocalSound("mouse_over");
display[i].alpha=1;
display[i].glow=1;
display[i].glowColor =((r/255),(g/255),(b/255));
display[i].glowAlpha=1;
display[i].glow2Color =((r/255),(g/255),(b/255));
display[i].glow2Alpha=1;
display[i].color =((r/255),(g/255),(b/255));
self thread flashingText(display[i]);
display[i] setText(menu[cycle].name[i]);
}
else display[i] setText(menu[cycle].name[i]);
self thread destroyOnAny(display[i],"Pressed_R2","Pressed_L2","Pressed_L1","Pressed_R1","Pressed_Melee","death");
}
}


well, i cud add \n to this, but it still wud be using 2 strings on every scroll, ur best bet is to use a base or make one that uses \n with a scrollbar
09-18-2012, 12:06 AM #3
3HUNNA
Splicer
Originally posted by xYARDSALEx View Post
well, i cud add \n to this, but it still wud be using 2 strings on every scroll, ur best bet is to use a base or make one that uses \n with a scrollbar


What about your Elite mossy V2 look alike menu? Does that also call 2 strings every scroll?
09-18-2012, 07:22 PM #4
Taylor
Former Black Knight.
Originally posted by ENT View Post
What about your Elite mossy V2 look alike menu? Does that also call 2 strings every scroll?


yes sadly....

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo