Derma Menu Image.. where do I put the image.vtf file?

I have issues with adding the picture properly…
What folder do I add it to?

Also how can I enlarge the DButton text size and DLabel text size?

materials

Nope, doesn’t work…

the code of the image:


		DImage1 = vgui.Create('DImage', Panel)
		DImage1:SetSize(147, 125)
		DImage1:SetPos(285, 35)
		DImage1:SetImage('materials/test.vtf')
		DImage1:SizeToContents()

And the file is in the materials folder and I converted it to vtf already.

I don’t think you can use vtf directly, well I’m far from being a specialist on the matter but if you are just putting an image in a derma menu you don’t need to convert it.

Instead of

[lua]
DImage1:SetImage(‘materials/test.vtf’)
[/lua]

use

[lua]
DImage1:SetMaterial(‘materials/test.vtf’)
[/lua]

Also, instead of using .vtf use .png.