Hey there im having some trouble with the DImage for my panel.
Im getting a pink and black picture box.
Here is my code.
[code]CinemaPic = vgui.Create( "DImageButton", CinemaHide )
CinemaPic:SetPos( 250, 60 )
CinemaPic:SetImage( "cinemahelper\cinema.vtf" ) -- Set your .vtf image
CinemaPic:SizeToContents()[/code]
The vtf picture is located in materials\cinemahelper\cinema.vtf
Heeelp
Pic-
[URL=http://img199.imageshack.us/i/vrl.png/][IMG]http://img199.imageshack.us/img199/5763/vrl.png[/IMG][/URL]
Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL]
I don't know if this will fix it, but try adding this to the server side code:
[lua]
resource.AddFile("materials/cinemahelper/cinema.vtf")
resource.AddFile("materials/cinemahelper/cinema.vmt")
[/lua]
[QUOTE=Jamie932;22925585]Try
[lua]CinemaPic:SetImage( "cinemahelper/cinema" )[/lua][/QUOTE]
Still black and pink :L
Maybe i failed with making the vtf ?
[editline]05:06PM[/editline]
Got it working, Thx
Sorry, you need to Log In to post a reply to this thread.