• Location of DImage
    6 replies, posted
Dear Readers, I still got some questions. I want to put my own photo in screen. For my DarkRP HUD that im making. But where do i have to put the file in order to let it work. I tryed everything now. Here is the code that im using: [code] local breen_img = vgui.Create( "DImage", Frame ) breen_img:SetPos( 10, 35 ) breen_img:SetSize( 150, 150 ) breen_img:SetImage( "scripted/breen_fakemonitor_1" ) [/code] Please help me!
I answered this in [URL="https://facepunch.com/showthread.php?t=1576118&p=52604118"]your previous thread[/URL]. Stop making new threads for the same thing, keep it in the same one. [QUOTE=txike;52604118]Put your images in "/materials/".[/QUOTE]
[QUOTE=txike;52604233]I answered this in [URL="https://facepunch.com/showthread.php?t=1576118&p=52604118"]your previous thread[/URL]. Stop making new threads for the same thing, keep it in the same one.[/QUOTE] It just does not work... D:\Steam\SteamApps\common\GarrysMod\garrysmod\materials\hud.png And how should i locate it in the script? It's confused now.
Material("hud.png")
[QUOTE=gonzalolog;52604706]Material("hud.png")[/QUOTE] How should i put that in here? [code] local breen_img = vgui.Create( "DImage", Frame ) breen_img:SetPos( 10, 35 ) breen_img:SetSize( 150, 150 ) breen_img:SetImage( "scripted/breen_fakemonitor_1" ) [/code]
You'd simply put "hud.png" in DImage:SetImage.
[QUOTE=txike;52604934]You'd simply put "hud.png" in DImage:SetImage.[/QUOTE] It worked! Thank you!
Sorry, you need to Log In to post a reply to this thread.