I use a clock texture in my hud but it won't show it.
[CODE]surface.SetMaterial(Material("clockicon/clock.png"))
surface.DrawTexturedRect(-1 + 15,ScrH() - 180,16,16)[/CODE]
That's the code and the downloaded clock.png is where it should be:
C:\Program Files (x86)\Steam\SteamApps\accountnamehere\garrysmod\garrysmod\download\materials\clockicon\clock.png
Try without ".png"
And drawing a simple box with the same coordinates and size works perfectly?
[CODE] surface.SetMaterial( Material("clockicon/clock.png") )
surface.SetDrawColor(255,255,255,255)
surface.DrawTexturedRect(-1 + 15,ScrH() - 180,16,16)[/CODE]
The draw color is pretty much the hue and brightness.
[QUOTE=Richtofen;42384511][CODE] surface.SetMaterial( Material("clockicon/clock.png") )
surface.SetDrawColor(255,255,255,255)
surface.DrawTexturedRect(-1 + 15,ScrH() - 180,16,16)[/CODE]
The draw color is pretty much the hue and brightness.[/QUOTE]
Thanks this worked!
Sorry, you need to Log In to post a reply to this thread.