Post: GSC ScrollBar in Menu
07-23-2015, 11:06 AM #1
DEv_ShOoTz
I am error
(adsbygoogle = window.adsbygoogle || []).push({}); Hi NGU Smile

I have the Source engine menu and I would add one scrollbar as the Zombiland but in my menu.

If someone could give me the GSC code for a scrollbar (OFF ON) would be its cool Smile

Thx Winky Winky

sorry for my bad english ^^
(adsbygoogle = window.adsbygoogle || []).push({});
07-23-2015, 01:44 PM #2
TehMerkMods
I’m too L33T
Originally posted by ShOoTz View Post
Hi NGU Smile

I have the Source engine menu and I would add one scrollbar as the Zombiland but in my menu.

If someone could give me the GSC code for a scrollbar (OFF ON) would be its cool Smile

Thx Winky Winky

sorry for my bad english ^^


Can you well show us a picture cause i have no clue what you mean
07-23-2015, 01:47 PM #3
Reyz
Banned
Originally posted by TehMerkMods View Post
Can you well show us a picture cause i have no clue what you mean


He means the newsfeed i think

The following user thanked Reyz for this useful post:

DEv_ShOoTz
07-23-2015, 01:52 PM #4
TehMerkMods
I’m too L33T
Originally posted by Reyz View Post
He means the newsfeed i think


Oh the Newsbar?

    
Put this under init()
level.enableInformationBar = true;
level.informationBarText = "Your Text M8";
level thread informationBar();

Put this with your functions[This is straight from zombieland]
informationBar()
{
if (level.enableInformationBar)
{
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(level.informationBarText, "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(20);
level.infoBarText.x = -1000;
wait 25;
}
wait 0.05;
}
}
}
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;
}

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;
}
07-23-2015, 01:53 PM #5
DEv_ShOoTz
I am error
Look the screen i want You must login or register to view this content. in my menu ^^

Is name scrolbarr ?
07-23-2015, 01:55 PM #6
DEv_ShOoTz
I am error
Tanks Bro Its ON & OFF ?
07-23-2015, 02:14 PM #7
TehMerkMods
I’m too L33T
Originally posted by ShOoTz View Post
Tanks Bro Its ON & OFF ?


No You can make it on off easy

The following user thanked TehMerkMods for this useful post:

DEv_ShOoTz
07-23-2015, 02:22 PM #8
DEv_ShOoTz
I am error
I don't no thanks anyway ^^
07-24-2015, 12:51 AM #9
itsSorrow
In my man cave
Originally posted by TehMerkMods View Post
Oh the Newsbar?

    
Put this under init()
level.enableInformationBar = true;
level.informationBarText = "Your Text M8";
level thread informationBar();

Put this with your functions[This is straight from zombieland]
informationBar()
{
if (level.enableInformationBar)
{
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(level.informationBarText, "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(20);
level.infoBarText.x = -1000;
wait 25;
}
wait 0.05;
}
}
}
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;
}

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


wow m8.. that comes from me
07-24-2015, 07:36 AM #10
TehMerkMods
I’m too L33T
Originally posted by Matroix7 View Post
wow m8.. that comes from me


no that is straight from Zombieland

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo