Limelight Forums

Full Version: Coding HUDs.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello there!

So, for the past 3weeks i have been working on a HUD. I really enjoy it since i am working on it 24/7. The feeling of coding is just A-M-A-Z-I-N-G.

What do you think?

Image:
[Image: 3FsvnOO.jpg]

I made a config for it aswell.

Image:



[Image: TG9nG0P.png?1]

Well, if you know how to use photoshop feel free to create a HUD in there and send it to me. I am willing to make it since i want to learn more and more everyday but i am kinda out of ideas. Thanks Big Grin
cool, ill see if i can make a concept for you.
(May 13, 2017, 10:35 PM)Cooli Wrote: [ -> ]cool, ill see if i can make a concept for you.

That's amazing, thanks!
That's pretty cool man, I find HUDs easy myself but they take some time so good on you.
Yeah, that's true. It takes time setting the positions etc.
Good job!

Try to lerp the health of the HUD, etc.. Smile
https://wiki.garrysmod.com/page/Global/Lerp


EDIT: 
Also, something that's good to know! You should probably save your variables/tables inside a "workspace table" as I like to call it. Right now you save everything inside a table called Config which could collide with other addons if someone else does the same thing. Try to come up with a unique name of your table like GreeksHUD or something like that. Then you could create another table in the GreeksHUD table called Config, etc.. So the path to the config variable would for example be GreeksHUD.Config.CommunityWebsite.

Anyhow, good job! Smile
Great ideas!

Thanks!
Hey I've recently been trying to learn LUA, I tried to start off by doing a simple Derma window. I see no errors when re-reading my program yet I still get this error: 

[ERROR] lua/autorun/client/testprogram.lua:20: function arguments expected near '='

  1. unknown - lua/autorun/client/testprogram.lua:0

This is my program:
[Image: AhFDxjY.png]
(May 24, 2017, 07:08 PM)Quest Wrote: [ -> ]Hey I've recently been trying to learn LUA, I tried to start off by doing a simple Derma window. I see no errors when re-reading my program yet I still get this error: 

[ERROR] lua/autorun/client/testprogram.lua:20: function arguments expected near '='

  1. unknown - lua/autorun/client/testprogram.lua:0

This is my program:
[Image: AhFDxjY.png]

Replace the : at LuaButton:DoClick with a dot instead.

Should look like this:
Code:
LuaButton.Doclick = function()
You've almost misspelt
Code:
Label = vgui.create("DLable", LuaTest)

should be 
Code:
Label = vgui.create("DLabel", LuaTest)
^^^^^^ Feel free to add me on steam if you need any help, we can work on projects together etc. Big Grin
(May 25, 2017, 04:06 AM)Jompe Wrote: [ -> ]
(May 24, 2017, 07:08 PM)Quest Wrote: [ -> ]Hey I've recently been trying to learn LUA, I tried to start off by doing a simple Derma window. I see no errors when re-reading my program yet I still get this error: 

[ERROR] lua/autorun/client/testprogram.lua:20: function arguments expected near '='

  1. unknown - lua/autorun/client/testprogram.lua:0

This is my program:
[Image: AhFDxjY.png]

Replace the : at LuaButtonBig GrinoClick with a dot instead.

Should look like this:
Code:
LuaButton.Doclick = function()
[Image: UiO64IB.png]
It's still pulling this error
[Image: KLpbWcE.png]  After such a long time, my crappy first LUA program has been fixed. Thanks for the help guys!
Great!
(May 25, 2017, 06:00 PM)Quest Wrote: [ -> ]-snip-

After such a long time, my crappy first LUA program has been fixed. Thanks for the help guys
Well done ::D if you ever need help contact me
Pages: 1 2