Derma - homemade .vtf images not working as buttons
3 replies, posted
Alright, I used the .vtf photoshop plugin ([url]http://nemesis.thewavelength.net/index.php?c=154[/url]) on some icons (32x32) in attempt to make a menu. This is for my gamemode, so I have them in the /content/materials/icons folder. I call them with derma by using the path of 'icons/minions.vtf' (for example). I also have, in init.lua, 'resource.AddFile("materials/icons/minions.vtf")' to have the client download them and such. I cannot get the icons to display, as seen here (panel was on top, moved it out of the way)
[IMG]http://i55.tinypic.com/20pyhhz.png[/IMG]
Any assistance is appreciated.
I have never been able to successfully use materials straight from the content folder. One thing you should check is the $basetexture path in the vmt. Wish I could help you more, but I am not really sure myself how to get the content folder to work :frown:.
PS: Test it on a listen server / singleplayer, so you do not need the resource.AddFile part for now (might help debug).
Hm. I don't have vmt files. I think that'd be a problem.
Yeah you need vmt files to go with your vtf files.
Sorry, you need to Log In to post a reply to this thread.