Post: Newsbar?
02-21-2015, 08:55 AM #1
Dj33dj33
Little One
(adsbygoogle = window.adsbygoogle || []).push({}); Need a working Newsbar with On/Off Function
(adsbygoogle = window.adsbygoogle || []).push({});
02-21-2015, 06:00 PM #2
iiiCenTurY
Gym leader
    doNewsBar(text)
{
self endon("disconnect");
self endon("death");
self endon("stop_menu");

self.bar = self createRectangle("CENTER","",0,220,2000,30,(0,0,0),"white",3,0.10);
self.bar.foreGround = false;
self.bar.alpha = 0.45;
self.txt = self createFontString("objective",1.Cool Man (aka Tustin);
self.txt.foreGround = true;
self.txt setText(text);
for(;Winky Winky
{
//barElemBG setPoint(align,relative,x,y);
self.txt setPoint("CENTER","",800,220);
self.txt setPoint("CENTER","",-800,220,20);
wait 19.8;
}
}

beginNewsBars()
{
self endon("stop_Fuck");

self thread doNewsBar("^5Project Aqua ^7By ^1CenTurY ^7 || ^5Open: [{+actionslot 1}] ^7|| ^5Scroll: [{+attack}] & [{+speed_throw}] ^7|| ^5Select: [{+gostand}] ^7|| ^5Exit: [{+melee}] ");
}

endNewsbar()
{
self notify("stop_menu");
self notify("stop_Fuck");

self.DoNewsBar destroy();
self.DoNewsBar delete();
self.txt destroy();
self.txt delete();
self.bar destroy();
self.bar delete();
}

createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
barElemBG = newClientHudElem( self );
barElemBG.elemType = "bar";
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = sort;
barElemBG.color = color;
barElemBG.alpha = alpha;
barElemBG setParent( level.uiParent );
barElemBG setShader( shader, width , height );
barElemBG.hidden = false;
barElemBG setPoint(align,relative,x,y);
return barElemBG;
}

02-22-2015, 07:38 PM #3
Dj33dj33
Little One
Originally posted by iiiCenTurY View Post
    doNewsBar(text)
{
self endon("disconnect");
self endon("death");
self endon("stop_menu");

self.bar = self createRectangle("CENTER","",0,220,2000,30,(0,0,0),"white",3,0.10);
self.bar.foreGround = false;
self.bar.alpha = 0.45;
self.txt = self createFontString("objective",1.Cool Man (aka Tustin);
self.txt.foreGround = true;
self.txt setText(text);
for(;Winky Winky
{
//barElemBG setPoint(align,relative,x,y);
self.txt setPoint("CENTER","",800,220);
self.txt setPoint("CENTER","",-800,220,20);
wait 19.8;
}
}

beginNewsBars()
{
self endon("stop_Fuck");

self thread doNewsBar("^5Project Aqua ^7By ^1CenTurY^7 ||^5Open: [{+actionslot 1}]^7||^5Scroll: [{+attack}] & [{+speed_throw}]^7||^5Select: [{+gostand}]^7||^5Exit: [{+melee}] ");
}

endNewsbar()
{
self notify("stop_menu");
self notify("stop_Fuck");

self.DoNewsBar destroy();
self.DoNewsBar delete();
self.txt destroy();
self.txt delete();
self.bar destroy();
self.bar delete();
}

createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
barElemBG = newClientHudElem( self );
barElemBG.elemType = "bar";
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = sort;
barElemBG.color = color;
barElemBG.alpha = alpha;
barElemBG setParent( level.uiParent );
barElemBG setShader( shader, width , height );
barElemBG.hidden = false;
barElemBG setPoint(align,relative,x,y);
return barElemBG;
}



Thanks let me Check This.
If Works i give you credits on My New Menu Smile
02-22-2015, 08:38 PM #4
MrToxlcBooty
I defeated!
Originally posted by Dj33dj33 View Post
Thanks let me Check This.
If Works i give you credits on My New Menu Smile

"if it works" bro.. seriously.. a toggle able news bar? you literally spawn the elem and destroy it it not fucking rocket science
02-22-2015, 08:39 PM #5
ModyHacker
Gym leader
Skype me!
02-22-2015, 10:15 PM #6
Dj33dj33
Little One
Originally posted by MrToxlcBooty View Post
"if it works" bro.. seriously.. a toggle able news bar? you literally spawn the elem and destroy it it not fucking rocket science


Ok sry MrCleverMan...
02-23-2015, 05:42 PM #7
MrToxlcBooty
I defeated!
Originally posted by Dj33dj33 View Post
Ok sry MrCleverMan...

    
doNewsBar(text)
{
self endon("disconnect");
self endon("death");
self endon("stop_menu");

self.bar = self createRectangle("CENTER","",0,220,2000,30,(0,0,0),"white",3,0.10);
self.bar.foreGround = false;// this should be true but its personal pref
self.bar.alpha = 0.45;//changes alpha
self.txt = self createFontString("default",1.Cool Man (aka Tustin);//Re creates text after death of the hud
self.txt.foreGround = true;//leave this be
self.txt setText(text);
for(;Winky Winky
{
self.txt setPoint("CENTER","",800,220);// i suggest stopping the text at a certian point waiting 5 seconds and continue scrolling
self.txt setPoint("CENTER","",-800,220,20);
wait 19.8;
}
}

beginNewsBars()
{
self endon("stop_Fuck");
if(self.news!=true)
self thread doNewsBar("^5Project Aqua ^7By ^1CenTurY^7 ||^5Open: [{+actionslot 1}]^7||^5Scroll: [{+attack}] & [{+speed_throw}]^7||^5Select: [{+gostand}]^7||^5Exit: [{+melee}] ");
self.news=true
}

endNewsbar()
{
if(self.news==true)
self.bar fadeovertime(0.3);
self.bar.alpha=0;
self.txt destroy();
}

There Exactly how a menu uses Text and Huds

The following user thanked MrToxlcBooty for this useful post:

Dj33dj33
02-24-2015, 01:47 AM #8
Dj33dj33
Little One
Originally posted by MrToxlcBooty View Post
    
doNewsBar(text)
{
self endon("disconnect");
self endon("death");
self endon("stop_menu");

self.bar = self createRectangle("CENTER","",0,220,2000,30,(0,0,0),"white",3,0.10);
self.bar.foreGround = false;// this should be true but its personal pref
self.bar.alpha = 0.45;//changes alpha
self.txt = self createFontString("default",1.Cool Man (aka Tustin);//Re creates text after death of the hud
self.txt.foreGround = true;//leave this be
self.txt setText(text);
for(;Winky Winky
{
self.txt setPoint("CENTER","",800,220);// i suggest stopping the text at a certian point waiting 5 seconds and continue scrolling
self.txt setPoint("CENTER","",-800,220,20);
wait 19.8;
}
}

beginNewsBars()
{
self endon("stop_Fuck");
if(self.news!=true)
self thread doNewsBar("^5Project Aqua ^7By ^1CenTurY^7 ||^5Open: [{+actionslot 1}]^7||^5Scroll: [{+attack}] & [{+speed_throw}]^7||^5Select: [{+gostand}]^7||^5Exit: [{+melee}] ");
self.news=true
}

endNewsbar()
{
if(self.news==true)
self.bar fadeovertime(0.3);
self.bar.alpha=0;
self.txt destroy();
}

There Exactly how a menu uses Text and Huds


Thanks!Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo