How to create gamemode hud w/ custom textures?

Couldn’t find an adequate tutorial on the subject but really all I need to know is can I just use Surface.DrawTexturedRect with my individual hud bits or is it more complicated than that? Thanks in advanced.

Well, depends on what you want to do specifically, personally, in the S.T.A.L.K.E.R. HUD I modified I used PNG files for my custom textures and then added them using


local YOURVARIABLE = Material( "YOUR/PATH/TO/TEXTURE.FILETYPE", "noclamp" )

and then I did


surface.SetMaterial(YOURVARIABLE)
surface.SetDrawColor(255, 255, 255, 255)
surface.DrawTexturedRect(ScrW()/POSITION X, ScrH()/POSITION Y, ScrW()/WIDTH OF TEXTURE, ScrH()/HEIGHT OF TEXTURE)


Anything else?

I think that’ll do, thanks!