Hey I have another simple question that should be really easy but I can’t seem to figure out.
I have icons that I’ve made for an addon that are the correct format. I want to allow them to be displayed in a derma panel, but I can’t figure out how. Everything I’ve tried has returned a little black and pink checker-box .
Here’s the code I have:
There’s about 10 of those, only differing in the filename I’m adding. My addon directory looks like this: garrysmod/addons/myaddon/materials/popup
here’s my clientside code:
local popup = vgui.Create( "DImage", HomePage ) popup:SetImage( popup/popup_timeout.vmt" ) popup:SetPos( 165, 170 ) popup:SizeToContents()
When I pull up the menu, it just has the little pink and black checker board texture. If I put all the files into the gamemodes/terrortown/materials/VGUI/ttt then I don’t need to do a resource.AddFile and it works fine, so I know my files are formatted correctly. However, I would like to be able to add them myself without having to add files to an already existing directory.