Post: Someone add a Toggle On/Off
05-18-2015, 11:29 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Can someone please add a toggle on & off?
    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;
}

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;
}

informationBar()
{
level endon("game_ended");

level.infoBarBackground = level drawShader("white", -50, 30, 1000, 35, (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("^2Welcome to ^1TwistedMenu! ^8|| ^1Your Host For Today Is ^5" + level.hostname + " ^8|| ^2Mod Menu Created by ^1T^7wistedLobby ^8|| ^2Not a released menu! ^8|| ^1Y^7o^1u^7T^1u^7b^1e^7.^1c^7o^1m^7/^1P^7v^1p^7e^1o^7n ^8|| ^2Also please signup at ^1Twisted^7Modding^1Team^7.^1us^7.^1to", "objective", 2, 1000, 26, (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 == -1000)
level.infoBarText.x = 1000;
else
{
level.infoBarText MoveOverTime(1);
level.infoBarText.x = -1000;
wait 25;
}
wait 0.05;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
05-18-2015, 12:07 PM #11
Originally posted by TheHiddenHour View Post
Is it just going way too fast or is the text not showing at all? I had the speed problem as well but I just assumed you wanted it that way for some odd reason. I think you have too many characters in your text as well.


Yeah they aren't showing up at all
05-18-2015, 12:09 PM #12
HiddenHour
I defeated!
Originally posted by Elitexboxer View Post
Yeah they aren't showing up at all


Can you post the code you're using?
05-18-2015, 12:11 PM #13
Originally posted by TheHiddenHour View Post
Can you post the code you're using?


Fixed it, the text I had was too long. (Thats what she said)
05-18-2015, 12:12 PM #14
HiddenHour
I defeated!
Originally posted by Elitexboxer View Post
Fixed it, the text I had was too long. (Thats what she said)


Lol have fun man.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo