Custom icons/ textured backgrounds.

  • Thread starter Thread starter vk_phoenixfr
  • Start date Start date
V

vk_phoenixfr

Guest
Hi again.
Another question. How do you create an icon to be used in a hud element?
I created a tga image file (16 bits) in Photoshop, dragged it to the vtex.exe program to create a vtf file (and the vmt) but it didn't worked. It keeps saying my tga file is bugged. Something i forgot to do (i used sdk doc to see how to make it)?

And also, how to create a textured box in the hud? Use of vmt files also?

And finally, is there a method to draw a point (preferrably a big point, not just a pixel) within the sdk? i saw drawbox (works), drawline (didn't try), but no drawpoint (not for drawing hud points i mean). And the drawbox draws rounded boxes, and if your box is too small, you have a strange result because it draws the corners which have a fixed size.

Any help?
 
to draw a point make a point texture. Check your TGA is in 24bit colour (I think thats right)?
 
Actually its 32 bits... and make sure its size is like 256x256 or 512x512.
 
Back
Top