Post: HUDElems Simple Progress Bar [C#]
01-04-2014, 05:43 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Just something quick I made that might be useful for mod menus or something

HUDElems C# Code
You must login or register to view this content.
    Hudelem.HUD.StoreIcon1(3, 0, 3, 134, 26, 225, 247, 0, 0, 0, 0, 0, 180);//Black Background
Hudelem.HUD.StoreIcon1(4, 0, 3, 0, 20, 227, 250, 0, 0, 255, 255, 255, 255);//Bar
Hudelem.HUD.StoreTextElem1(5, 0, "Text Here", 2, 2, 260, 225, 0, 0, 255, 255, 255, 255);//Text
double Speed = 0.5;//The Speed The Bar Moves At

for (double i = 0; i < 130; i += Speed)
{
Hudelem.HUD.ChangeWidth(4, (int)i);//Changes Width according to i
if (i == 129)//If Loading bar reaches the end it will do this V
{
Hudelem.HUD.ChangeText2(5, "Completed!", 255);//Text When Its Completed
Thread.Sleep(2000);//Waits 2 Seconds
Hudelem.HUD.DestroyElem(3);//Removes Black Background
Hudelem.HUD.DestroyElem(4);//Removes Bar
Hudelem.HUD.DestroyElem(5);//Removes Text
}
}
}


Screenshot:
You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to MrShark for this useful post:

Asian, Azus, FusionIsDaName, Mango_Knife, ThePaaqoHD
01-05-2014, 04:05 AM #2
Originally posted by MrShark View Post
Just something quick I made that might be useful for mod menus or something

HUDElems C# Code
You must login or register to view this content.
    Hudelem.HUD.StoreIcon1(3, 0, 3, 134, 26, 225, 247, 0, 0, 0, 0, 0, 180);//Black Background
Hudelem.HUD.StoreIcon1(4, 0, 3, 0, 20, 227, 250, 0, 0, 255, 255, 255, 255);//Bar
Hudelem.HUD.StoreTextElem1(5, 0, "Text Here", 2, 2, 260, 225, 0, 0, 255, 255, 255, 255);//Text
double Speed = 0.5;//The Speed The Bar Moves At

for (double i = 0; i < 130; i += Speed)
{
Hudelem.HUD.ChangeWidth(4, (int)i);//Changes Width according to i
if (i == 129)//If Loading bar reaches the end it will do this V
{
Hudelem.HUD.ChangeText2(5, "Completed!", 255);//Text When Its Completed
Thread.Sleep(2000);//Waits 2 Seconds
Hudelem.HUD.DestroyElem(3);//Removes Black Background
Hudelem.HUD.DestroyElem(4);//Removes Bar
Hudelem.HUD.DestroyElem(5);//Removes Text
}
}
}


Screenshot:
You must login or register to view this content.

my credits? for making this?

The following 2 users say thank you to John for this useful post:

$ticky, ThatOneSkrandy
01-05-2014, 07:06 AM #3
Originally posted by goon View Post
my credits? for making this?


I made this myself m8 :|
02-16-2014, 05:56 AM #4
Notorious
Caprisuns Is Back
Originally posted by MrShark View Post
Just something quick I made that might be useful for mod menus or something

HUDElems C# Code
You must login or register to view this content.
    Hudelem.HUD.StoreIcon1(3, 0, 3, 134, 26, 225, 247, 0, 0, 0, 0, 0, 180);//Black Background
Hudelem.HUD.StoreIcon1(4, 0, 3, 0, 20, 227, 250, 0, 0, 255, 255, 255, 255);//Bar
Hudelem.HUD.StoreTextElem1(5, 0, "Text Here", 2, 2, 260, 225, 0, 0, 255, 255, 255, 255);//Text
double Speed = 0.5;//The Speed The Bar Moves At

for (double i = 0; i < 130; i += Speed)
{
Hudelem.HUD.ChangeWidth(4, (int)i);//Changes Width according to i
if (i == 129)//If Loading bar reaches the end it will do this V
{
Hudelem.HUD.ChangeText2(5, "Completed!", 255);//Text When Its Completed
Thread.Sleep(2000);//Waits 2 Seconds
Hudelem.HUD.DestroyElem(3);//Removes Black Background
Hudelem.HUD.DestroyElem(4);//Removes Bar
Hudelem.HUD.DestroyElem(5);//Removes Text
}
}
}


Screenshot:
You must login or register to view this content.


awesome

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo