Hi. I’m starting on a new project. But i have a few questions before i start.
- I want to use images, for scoreboard, menu’s etc. I’ve exported a png into a vtf with vtfedit, and tried making a button, using this code:
DermaImage = vgui.Create( “DImageButton”, DermaPanel )
DermaImage:SetPos( 25, 50 )
DermaImage:SetImage(“logo.vtf”) – Set your .vtf image
It only shows up as as a purple square. What am i doing wrong?
- Is it possible to use custom fonts(one from dafont.com for example), for the draw.SimpleText method?