(adsbygoogle = window.adsbygoogle || []).push({});
Hey guys, since hudelems was released by Bad Luck Brian i think i should release this to just to help out the community.
Things you need:
Bad Luck Brian's HUDelems code
My MoveShader Code
Use this HUDelems code - You must login or register to view this content. - just made a few changed like added glowcolor, better fontsize offset and my new moveshader code
Tutorial:
We are going to be using Multi Threading (having multiple process at once)
Once you have bad luck brians hudelems code in there add my moveshader function to the end of hudelem function
Advertise Bar:
STEP 1: At the very top you need to put using System.Threading; to have the threading functions
STEP 2: Put this anywhere besides inside a button etc. Thread th; (only put a capital for the T in Thread)
STEP 3: Make a button that you want to start the doheart or advertise bar and put this th = new Thread(thread); th.Start();
STEP 4: make a new function called thread() in there you will put your hudelems code EX: HUDS.StoreIcon(blahblah); and make sure u include text. I will include mine You must login or register to view this content.
STEP 5: after you put the HUDS.blahblah in there its time to start the loop. put this below where u put the HUDS.storeblahblah You must login or register to view this content.
STEP 6: Take a look at what we just did. for (int j = 0; j < 110; j++) that really doesnt mean anything just a loop to make it forever. for (int i = 0; i < 1400; i++)
{
Thread.Sleep(3);
HUDS.MoveShader(122, 775 - i, 458, 1.5f);
Thread.Sleep(3);
}
wat this does is move the shader at the index of 122 and it has a variable i to make it go accross the screen. 775 - i is the X so it moves from the right to the left. 458 is the Y axis. 1.5f is the size of the text. 122 is the index of the text. Now if u copy and paste the same thing right below it INSIDE the (int j = 0 it will make it loop forever.
Dont groan if you already knew this and if you did know this then why did you click on it?
Sorry dude but i see no point in releasing this.
This is only usefull if ppl make a own Mod Menu with Huds. This needs some knowledge. And if they can make their Mod Menus, then nobody needs this cuz its easy
Just to add on, this isn't just making a loop, it putting the loop on a different so the GUI is not frozen while the loop is running. Don't think a lot of people would have thought of multithreading
The following user thanked Kurt for this useful post: