HUD Color?

The RTG Guy

Member
I am working on an art rework and I want the HUD to change colors alongside the player's skin color. Are there Lua or SOC codes that help with that? Is there a way to make a color remap code for lua or SOC for any graphic like HUDs, sprites, etc.? What is the basic code to use? Is it more complicated than that?
 
You'd have to hide the elements of the vanilla HUD you want to colorize and recreate them with a HUD hook, using custom, green graphics that can be recolored by the drawing functions.

The graphics used ingame (which you could then export, edit to be green, then re-import into yours) are STTRINGS, STTRRING, STTTIME, STTRTIME, and STTSCORE. You can find the Lua functions for drawing the HUD on the Wiki. And if you get stuck on anything (particularly getting the proper number for the time), you could always look at Sebo2205's Custom Hud Thing for guidance.
 
You'd have to hide the elements of the vanilla HUD you want to colorize and recreate them with a HUD hook, using custom, green graphics that can be recolored by the drawing functions.

The graphics used ingame (which you could then export, edit to be green, then re-import into yours) are STTRINGS, STTRRING, STTTIME, STTRTIME, and STTSCORE. You can find the Lua functions for drawing the HUD on the Wiki. And if you get stuck on anything (particularly getting the proper number for the time), you could always look at Sebo2205's Custom Hud Thing for guidance.
I was thinking about MixedHUDdeluxe by StellarStardust. Other than the aesthetic change, which looks really good, by the way, There is code written for green to turn into the player's color, and it seems really easy to implement. The only issue is that it is not available as Open Assets, and I don't have permission to use it. I guess I'll consider going through the wiki or asking someone who knows Lua.
 

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top