• How to put an image into derma?
    7 replies, posted
I need help on getting the image I want into my server. How would I go about adding it? I would like to put it on my derma panel. - Thanks!
[url]http://wiki.garrysmod.com/page/Category:DImage[/url]
I already have viewed this. I just need to know how to get the image onto my server.
Place in /materials and send via fastdl
[QUOTE=NiandraLades;46428788]Place in /materials and send via fastdl[/QUOTE] Where is /materials located?
[QUOTE=Mr.Mezzy;46428826]Where is /materials located?[/QUOTE] garrysmod/materials folder.
It's not working. Here is my code: [CODE]local t = vgui.Create( 'DFrame' ) t:SetSize( 500, 200 ) t:Center() t:ShowCloseButton( false ) t:MakePopup() t:SetDraggable( true ) t:SetTitle( '' ) -- Image panel of Dr. Breen local breen_img = vgui.Create( "DImage", OpenTest ) -- Add image to Frame breen_img:SetPos( 50, 50 ) -- Move it into frame breen_img:SetSize( 150, 150 ) -- Size it to 150x150 -- Set material relative to "garrysmod/materials/" breen_img:SetImage( "scripted/breen_fakemonitor_1" )[/CODE]
You are parenting the DImage to OpenTest, which does not exist.
Sorry, you need to Log In to post a reply to this thread.