Garry's Mod

Garry's Mod

HUD Designer
 此主题已被置顶,因此可能具有重要性
Exho  [开发者] 2014 年 12 月 8 日 下午 12:36
Getting your HUD in game
Exporting
While in the HUD Designer click on the Export button and choose where you want the code to export to. Console prints directly to console (~) and Text saves it to a text document in garrysmod/data/hud_designer. Thats where you can find your newly-exported Lua code

HUDPaint
http://wiki.garrysmod.com/page/GM/HUDPaint
All gamemodes will have a HUDPaint function and most of the time its under cl_hud.lua. The code in those functions is the same as the code this script exports, it works the same way. So you can find the gamemode in garrysmod/gamemodes and then once you find the HUD file you just have to put your code in there. Thats the simplist explanation of it. Or you could use a Hook instead of overriding default files

Use
At the moment, this addon doesn't support stuff like health bars because it will take a bit of effort for me to code into this (I am not a wizard), but you can figure that stuff out with easy math.

Remember, this doesn't magically create HUDs. It only creates the code used to make HUDs
< >
正在显示第 1 - 15 条,共 37 条留言
MrHorizons 2014 年 12 月 8 日 下午 1:03 
what file type do you recommend to have with the code?
MrHorizons 2014 年 12 月 8 日 下午 1:03 
a
Exho  [开发者] 2014 年 12 月 8 日 下午 2:09 
.lua
MrHorizons 2014 年 12 月 8 日 下午 2:26 
what about microsoft word?
Jade <3 2014 年 12 月 8 日 下午 2:44 
I reccomend downloading notepad++ It is great for coding and can save as .lua
Exho  [开发者] 2014 年 12 月 8 日 下午 3:16 
You are kidding with Microsoft Word right? Get Notepad++ like he said ^
rcl 2014 年 12 月 8 日 下午 3:28 
Microsoft word!? is this a joke! Use Microsoft Exel! Is awesome for lua and c++ coding! When i opened it i became a hacker and hacked your CLub Penguin account!
rcl 2014 年 12 月 8 日 下午 3:28 
Thats why i got vac banned :C
Cyrus 2014 年 12 月 9 日 上午 8:46 
@nahuel ...
Portal 2014 年 12 月 9 日 下午 2:09 
What is the HUD file for sandbox?
uncle piss 2014 年 12 月 12 日 下午 9:01 
Should be cl_hud.lua, But I can't find it. Strange
uncle piss 2014 年 12 月 12 日 下午 9:02 
the file is in the TTT thing though
Realest Res 2014 年 12 月 14 日 上午 8:21 
Guys if you're wondering what the sandbox gui is, just follow this directory:
C:\Program Files (x86)\Steam\SteamApps\common\GarrysMod\garrysmod\gamemodes\sandbox\gamemode\cl_init
or :
C:\ProgramFiles\Steam\SteamApps\common\GarrysMod\garrysmod\gamemodes\sandbox\gamemode\cl_init
最后由 Realest Res 编辑于; 2014 年 12 月 15 日 下午 12:39
Exho  [开发者] 2015 年 1 月 3 日 上午 8:45 
Oh man, its still funny
< >
正在显示第 1 - 15 条,共 37 条留言
每页显示数: 1530 50