๐จ Custom color schemes
In this topic I'll explain how to create custom color schemes.
Note: all console commands used in this topic are available only if debug mode is enabled.
- Enable debug mode. To do this, open
glorioushud/lua/autorun/gh_init.lua. On line 20 changefalseontruelike thisGH.Debug = true. - Restart server and connect
- Go to folder
serverlocation/garrysmod/data/glorioushudand clonedark.jsonorlight.jsonand rename it to some ID likeblue.json(don't use spaces) - Open your file using any code editor and format JSON to pretty view using tool you prefer (e.g. https://jsoneditoronline.org/)
- Now let's change few fields before you start change colors
- id - same as file name
- pretty_name - name which displayed in client settings
- icon - leave it blank or you can select icon you want from
lucidesprite sheet. Go to the game, open console and typegh_spritedebug. On right panel using left and right arrow change sprite sheet tolucide, now select icon you want and pressCopy nameon right panel. - For update color schemes without restarting server use console command in server console
gh_reloadschemes - Select your scheme in client settings
- Change colors, they presented in
r g b aformat - After you've finished don't forget disable debug mode and restart server (set
falselike in first step)
If a GloriousHUD update comes out that contains new colors and you don't have them, don't worry, it's all thought out. The HUD will add the missing colors to your scheme from the standard dark scheme.