Post: Menü line Flashing (Need Help)
05-09-2015, 11:31 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); hey Guys i would like that my menu lines 1 and 2 flashing i take this code but it not works -.-
have everyone an idea?

I take this code:



// flashing theme

flashing()
{
self endon("stop_flash");
for(;; )
{
self.menu.line2.color = (0,0,1);
self.menu.line3.color = (0,0,1);
self.menu.scroller.color = (0,0,1);
wait 1;
self.menu.line2.color = (1,1,1);
self.menu.line3.color = (1,1,1);
self.menu.scroller.color = (1,1,1);
}
}





StoreShaders()
{
self.menu.background = self drawShader("emblem_bg_laid_to_rest", 235, -100, 200, 1000, (1, 0, 0), 0,2);
self.menu.scroller = self drawShader("black", 236, -100, 200, 17, (1, 1, 1), 255, 4);
self.menu.line = self drawShader("white", 336, -1000, 2, 500, (0, 0, 1), 255, 3);
self.menu.line2 = self drawShader("white", 135, -1000, 2, 500, (0, 0, 1), 255, 2);
self.menu.line3 = self drawShader("white", 235, -100, 200, 2, (0, 0, 1), 255, 4);
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following user groaned acticstylllez for this awful post:

Devilemi
05-10-2015, 12:21 AM #2
Devilemi
Can’t trickshot me!
wrong section m8
05-10-2015, 12:29 AM #3
what section i must take?
05-10-2015, 12:48 AM #4
HiddenHour
I defeated!
You must login or register to view this content.
05-10-2015, 03:40 AM #5
Script Kiddie
At least I can fight
Originally posted by acticstylllez View Post
hey Guys i would like that my menu lines 1 and 2 flashing i take this code but it not works -.-
have everyone an idea?

I take this code:



// flashing theme

flashing()
{
self endon("stop_flash");
for(;; )
{
self.menu.line2.color = (0,0,1);
self.menu.line3.color = (0,0,1);
self.menu.scroller.color = (0,0,1);
wait 1;
self.menu.line2.color = (1,1,1);
self.menu.line3.color = (1,1,1);
self.menu.scroller.color = (1,1,1);
}
}





StoreShaders()
{
self.menu.background = self drawShader("emblem_bg_laid_to_rest", 235, -100, 200, 1000, (1, 0, 0), 0,2);
self.menu.scroller = self drawShader("black", 236, -100, 200, 17, (1, 1, 1), 255, 4);
self.menu.line = self drawShader("white", 336, -1000, 2, 500, (0, 0, 1), 255, 3);
self.menu.line2 = self drawShader("white", 135, -1000, 2, 500, (0, 0, 1), 255, 2);
self.menu.line3 = self drawShader("white", 235, -100, 200, 2, (0, 0, 1), 255, 4);
}


you would do it like this m8
    self.menu.line = self drawShader("white", 336, -1000, 2, 500, flashing(), 255, 3);
self.menu.line2 = self drawShader("white", 135, -1000, 2, 500, flashing(), 255, 2);
self.menu.line3 = self drawShader("white", 235, -100, 200, 2, flashing(), 255, 4);
try that it should work
05-10-2015, 10:32 AM #6
not works for me -.-
05-14-2015, 12:18 AM #7
Scouse Power
Knowledge is power
Originally posted by acticstylllez View Post
hey Guys i would like that my menu lines 1 and 2 flashing i take this code but it not works -.-
have everyone an idea?

I take this code:



// flashing theme

flashing()
{
self endon("stop_flash");
for(;; )
{
self.menu.line2.color = (0,0,1);
self.menu.line3.color = (0,0,1);
self.menu.scroller.color = (0,0,1);
wait 1;
self.menu.line2.color = (1,1,1);
self.menu.line3.color = (1,1,1);
self.menu.scroller.color = (1,1,1);
}
}





StoreShaders()
{
self.menu.background = self drawShader("emblem_bg_laid_to_rest", 235, -100, 200, 1000, (1, 0, 0), 0,2);
self.menu.scroller = self drawShader("black", 236, -100, 200, 17, (1, 1, 1), 255, 4);
self.menu.line = self drawShader("white", 336, -1000, 2, 500, (0, 0, 1), 255, 3);
self.menu.line2 = self drawShader("white", 135, -1000, 2, 500, (0, 0, 1), 255, 2);
self.menu.line3 = self drawShader("white", 235, -100, 200, 2, (0, 0, 1), 255, 4);
}


This code was written on the quick reply widget (quickly) so there may be a few mistakes but this will give you an idea of what to do. Hope this helps! Syntax and logical errors were not checked and the code has not been tested. Make sure you add you function for drawing lines on the HUD.

    
addLineColour(colour)
{
if(!isDefined(self.menu["line"]))
self.menu["line"] = [];
self.menu["line"][self.menu["line"].size] = METHODHERE; //your method of drawing (mine is different as recoded)
}

nextLineColour()
{
self.lineCol = (!isDefined(self.lineCol) || self.lineCol >= self.menu["line"].size) ? 0 : self.lineCol);
for(i=0;i<self.menu["line"].size;i++)
self.menu["line"][0].alpha = ((i==self.lineCol) ? 1 : 0);
}

flashyColours()
{
self endon("disconnect");
self endon("end_flashy_col");
level endon("end_game");
for(;Winky Winky
{
self nextLineColour();
wait 1;
}
}

toggleSliderColour()
{
if(!isDefined(self.flashy) || !self.flashy)
self thread flashyColours();
else self notify("end_flashy_col");
self.flashy = !self.flashy;
self iPrintln("Flashy " + ((self.flashy) ? "enabled" : "disabled")+ "? lol");
}

The following user thanked Scouse Power for this useful post:

acticstylllez

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo