HUD GUIs.
By MP6767, for jes00's tutorial.
Usually, when making a HUD-type GUI, you use GUISwatchCtrls, GUITextCtrls, and GUIBitmapCtrls. Do NOT use a GUIWindowCtrl, or any buttonctrls.
Make a GUI and name it HUDGUITEST. Now, make a GUISwatchCtrl, recolor it, with the digits on the left, to your liking, and right-click it. This will be what a window would be on a normal GUI. Lets start out by making a simple one that shows a number. Make a GUITextCtrl in the middle of the Swatch, and name it TESTHUDTEXT. Set it to the middle of your GUI, save the GUI as test.gui and to somewhere you know you'll find it, and exit Blockland.
For now, we'll leave that GUI alone, and start the scripting aspect of it. Open up your favorite text editor and type
function GUIFUNCTIONTEST(%client)
{
%lol = 25;
testhudtext.setValue(%lol);
}
Now save this file as test.cs, and put it in a folder with your GUI, open up another text file in your favorite text editor, and type
exec("./test.cs");
exec("./test.gui");
Save this as server.cs
Almost there! Next, make a text file called description.txt, and put this
Title: HUD TEST
Author: You
Save that and leave it alone.
Now, open up the GUI in your favorite text editor. If it doesn't open, select it to open in whatever you use to edit text and such.
At the bottom of the file, type playGUI.add(HUDGUITEST);, and select your server.cs, test.cs, test.gui, and description.txt, and send them all to a zipped file, and name the zip server_hudtest.
Lastly, start up a server in Blockland with server_hudtest enabled. If your GUI is on your screen, you did it right. Now, open up the console (~), and type GUIFUNCTIONTEST();. Your GUI should have 25 in the middle of it now.
Congrats, you just made a HUD.