Post: Newsbar help
06-11-2016, 08:35 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I want to make the tekst and the shader smaller but have no idea what numer i need to change to make it looks good.

Here is the code, hope one of u can help me out Smile

    
informationBar()
{
if (level.enableInformationBar)
{
level endon("game_ended");

level.infoBarBackground = level drawShader("white", -50, 20, 1000, 25, (0, 0, 0), 0.50, 7, true);
level.infoBarBackground.alignX = "center";
level.infoBarBackground.alignY = "bottom";
level.infoBarBackground.horzAlign = "center";
level.infoBarBackground.vertAlign = "bottom";

level.infoBarText = level drawText(level.informationBarText, "objective", 2, 1000, 16, (1, 1, 1), 1, (0, 0, 0), 0, 10, true);
level.infoBarText.alignX = "center";
level.infoBarText.alignY = "bottom";
level.infoBarText.horzAlign = "center";
level.infoBarText.vertAlign = "bottom";

for (;Winky Winky
{
if (level.infoBarText.x == -1200)
level.infoBarText.x = 1200;
else
{
level.infoBarText MoveOverTime(20);
level.infoBarText.x = -1200;
wait 25;
}
wait 0.05;
}
}
}


    drawShader(shader, x, y, width, height, color, alpha, sort, allclients)
{
if (!isDefined(allclients))
allclients = false;

if (!allclients)
hud = newClientHudElem(self);
else
hud = newHudElem();
hud.elemtype = "icon";
hud.color = color;
hud.alpha = alpha;
hud.sort = sort;
hud.children = [];
hud setParent(level.uiParent);
hud setShader(shader, width, height);
hud.x = x;
hud.y = y;
return hud;
}

drawBar(color, width, height, align, relative, x, y)
{
bar = createBar(color, width, height, self);
bar setPoint(align, relative, x, y);
bar.hideWhenInMenu = true;
return bar;
}


    drawText(text, font, fontScale, x, y, color, alpha, glowColor, glowAlpha, sort, allclients)
{
if (!isDefined(allclients))
allclients = false;

if (!allclients)
hud = self createFontString(font, fontScale);
else
hud = level createServerFontString(font, fontScale);
hud setText(text);
hud.x = x;
hud.y = y;
hud.color = color;
hud.alpha = alpha;
hud.glowColor = glowColor;
hud.glowAlpha = glowAlpha;
hud.sort = sort;
hud.alpha = alpha;

return hud;
}


and this is how it looks lol: You must login or register to view this content.
You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});
06-12-2016, 12:02 PM #11
Originally posted by TheHiddenHour View Post
By the way, I fixed the coordinates thing and the text too.
    informationBar()
{
if (level.enableInformationBar)
{
level endon("game_ended");

//drawShader(shader, x, y, width, height, color, alpha, sort, allclients)
level.infoBarBackground = level drawShader("white", 0, 420, 900, 18, (0, 0, 0), 0.50, 7, true);
//level.infoBarBackground setPoint("center", "center", 0, 220);

//drawText(text, font, fontScale, x, y, color, alpha, glowColor, glowAlpha, sort, allclients)
level.infoBarText = level drawText(level.informationBarText, "objective", 1.7, 1000, 417, (1, 1, 1), 1, (0, 0, 0), 0, 10, true);
//level.infoBarText setPoint("center", "center", 1000, 220);

for (;Winky Winky
{
if (level.infoBarText.x == -1200)
level.infoBarText.x = 1200;
else
{
level.infoBarText MoveOverTime(20);
level.infoBarText.x = -1200;
wait 25;
}
wait 0.05;
}
}
}


u are awesome! thanks for th help!!!
06-12-2016, 12:06 PM #12
HiddenHour
I defeated!
Originally posted by Unboundh4x View Post
u are awesome! thanks for th help!!!


Do you see that little blue button on the bottom of my sig? I'm not asking you to click it, but rather planting the idea in your head Tustin

The following user thanked HiddenHour for this useful post:

Unboundh4x
06-12-2016, 12:16 PM #13
Originally posted by TheHiddenHour View Post
Do you see that little blue button on the bottom of my sig? I'm not asking you to click it, but rather planting the idea in your head Tustin


didnt knw that lel, clicked it bud, again thanks for the help!
06-12-2016, 12:17 PM #14
HiddenHour
I defeated!
Originally posted by Unboundh4x View Post
didnt knw that lel, clicked it bud, again thanks for the help!


I meant this one lol but thanks anyways
You must login or register to view this content.
06-12-2016, 12:25 PM #15
Originally posted by TheHiddenHour View Post
I meant this one lol but thanks anyways
You must login or register to view this content.


hahah clicked it now Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo