hi, im trying to add this picture:
[url]http://img822.imageshack.us/img822/7422/teamsg.png[/url]
To my Derma menus, so here is my code:
[CODE]DermaImage = vgui.Create( "DImage", TabOne )
DermaImage:SetPos( 25, 50 )
DermaImage:SetImage( "menus/teams.png" )
DermaImage:SizeToContents( 966, 309)[/CODE]
and i placed the pic called "teams.png" in my [B][I]Gamemodes/(my gamemode name)/menus[/I][/B] (Like here: [B]DermaImage:SetImage( "menus/teams.png"[/B] )
[B]but it still comes as an Black Purple small image.[/B]
Any ideas what i do wrong/how to fix it?
Put your image into materials/menus/
The directory has to be relative to the 'materials' folder in either [i]garrysmod/garrysmod/materials[/i] or [i]garrysmod/garrysmod/gamemodes/yourgamemode/content/materials/[/i].
Does content/ work?
[QUOTE=Robotboy655;40535134]Does content/ work?[/QUOTE]
It does.
[QUOTE=Walrus Viking;40535083]The directory has to be relative to the 'materials' folder in either [i]garrysmod/garrysmod/materials[/i] or [i]garrysmod/garrysmod/gamemodes/yourgamemode/content/materials/[/i].[/QUOTE]
don't work :c
[CODE]
DermaImage = vgui.Create( "DImage", TabOne )
DermaImage:SetPos( 25, 50 )
DermaImage:SetImage( "content/materials/teams.png" )
DermaImage:SizeToContents( 966, 309)[/CODE]
[CODE]DermaImage = vgui.Create( "DImage", TabOne )
DermaImage:SetPos( 25, 50 )
DermaImage:SetImage( "materials/teams.png" )
DermaImage:SizeToContents( 966, 309)[/CODE]
both of them don't work
You must put your teams.png into one of those folders.
[editline]5th May 2013[/editline]
So it will be like garrysmod/garrysmod/materials/menus/teams.png
[QUOTE=Robotboy655;40535197]You must put your teams.png into one of those folders.
[editline]5th May 2013[/editline]
So it will be like garrysmod/garrysmod/materials/menus/teams.png[/QUOTE]
i did, but it still don't work.
[editline]5th May 2013[/editline]
okay figured it out, i had to put it not inside my gamemode, i must put it in my
garrysmod/garrysmod/materials
Thanks for help :D
Sorry, you need to Log In to post a reply to this thread.