• How to create gamemode hud w/ custom textures?
    2 replies, posted
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 [code]local YOURVARIABLE = Material( "YOUR/PATH/TO/TEXTURE.FILETYPE", "noclamp" )[/code] and then I did [code]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) [/code] Anything else?
I think that'll do, thanks!
Sorry, you need to Log In to post a reply to this thread.