![]() So, i've put ScrH and ScrW in the thesaurus, now you need to know HOW to use them. Now, I am going to go through positioning first up! (2) Text that gives us a more detailed indication of our health. Ok, now we're going to MAKE a simple hud. ScrH ( ) - This is the same as ScrW() but instead of getting the WIDTH value, it gets the HEIGHT value!ĭraw.RoundedBox ( ) - Format: draw.RoundedBox(roundiness, X location (ScrW), Y Location (ScrH), Width, Height, Color( R,G,B) )ĭraw.SimpleText ( ) - Format: draw.SimpleText("Text", "Font", X Location, Y Location, Color( R, G B )) end - End will FINISH a function/expression CHAPTER 2: Making a simple hud, and positioning ScrW ( ) - This function, will get the width value of your game's resolution, this is normally used for the positioning of the hud! local - This defines a variable to be local, which means it will only be accessible in this lua file, and inside this "level of code block". LocalPlayer ( ) - This is YOU, the guy who's clientside we're currently running on. If you come across something throughought the tutorial, and think to yourself, "What the hell does that do/ mean." You can come to this thesaurus and find out! 3 CHAPTER 3: Hiding the default hl2/gmod hud!.2 CHAPTER 2: Making a simple hud, and positioning. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |