SetImage texture bug

Hi, I’m trying to make a menu to display a persons items. I’ve made a fairly poor character page in paint and then converted it with VTFEdit into a VTF and then tried using it in a menu, but when I open the menu the texture goes all screwy.

Here is the code for the menu.


function CharacterPanel()

	local CharacterPanel = vgui.Create( "DFrame" )
	CharacterPanel:SetPos( 5, 5 )
	CharacterPanel:SetSize( 420, 600 )
	CharacterPanel:SetTitle( "Character Page" )
	CharacterPanel:SetVisible( true )
	CharacterPanel:SetDraggable( true )
	CharacterPanel:ShowCloseButton( true ) 

	Background = vgui.Create("DImage", CharacterPanel)
	Background:SetImage("mod/menus/character")
	Background:SetPos( 0, 20 )
	Background:SetSize( 420, 580)

	// HELM
	local Helm = vgui.Create("DImage", CharacterPanel)
	Helm:SetImage("mod/menus/helm")
	Helm:SetPos( 5, 25 )
	Helm:SetSize( 64, 64)

	CharacterPanel:MakePopup()

end

concommand.Add("Character", CharacterPanel)

I’m not quite sure what is wrong, but.

Here is the VMT file for the background


"LightmappedGeneric"
{
	"$basetexture" "mod/menus/character"
	"$translucent" 1
}

And for the helm icon.


"LightmappedGeneric"
{
	"$basetexture" "mod/menus/helm"
        "$translucent" 1
}

I’m hoping someone has idea about textures.

Change the shader from “LightMappedGeneric” to “UnlitGeneric”.

You’re trying to use a world texture as a gui texture.

Oh, well thank you. I would not have realized that on my own :smiley:

EDIT: I lied, the models are purple and black now…