Hello all I've been trying to change Engineers hud element for building status like health ammo of buildings etc spefically the icons of it as far as i am aware the only issue i have is that i cannot get the .res files to point towards the .vmt in the new folder (vgui/replay/thumbnails/...) my .vtf is in said folder and works just fine but my .vmt only works in its default folder (materials/hud/...) I'm trying to do one speficially so i can do the rest and that's a level 1 sentries logo inside of the .res for the sentries like hud part is this
"Icon_Sentry_1"
{
"ControlName" "CIconPanel"
"fieldName" "Icon_Sentry_1"
"xpos" "22"
"ypos" "12"
"wide" "36"
"tall" "36"
"visible" "1"
"enabled" "1"
"scaleImage" "1"
"icon" "obj_status_sentrygun_1"
"iconColor" "White"
}
When changing the "Icon" to anything other than I assume an Icon It will go blank I have tried to change it to the dispensers Icon, Sapper, Level 2 and Level 3 and they have all worked however when i try changing it to "icon" "../vgui/replay/thumbnails/obj_status_sentrygun_1" It goes blank it completly dissapears no matter what i add it will always dissepear unless its just "obj_status_sentrygun_1" (Or any name for that matter as long as it matches the .vtf and .vmt name) my vmt is called the same and inside its $basetexture is specified the file path
"UnlitGeneric"
{
"$baseTexture" "vgui/replay/thumbnails/building_icons/obj_status_sentrygun_1"
"$translucent" "1"
"$vertexcolor" "1"
"$vertexalpha" "1"
}
So I am really really confused on what am i supposed to do to make it work in casual I know BudHud works fine so it's possible I'm just missing something sorry if it's a mess to read I am trying my best to make it as comprehensible as possible and also that the thread is SO long this is my last resort
Hello all I've been trying to change Engineers hud element for building status like health ammo of buildings etc spefically the icons of it as far as i am aware the only issue i have is that i cannot get the .res files to point towards the .vmt in the new folder (vgui/replay/thumbnails/...) my .vtf is in said folder and works just fine but my .vmt only works in its default folder (materials/hud/...) I'm trying to do one speficially so i can do the rest and that's a level 1 sentries logo inside of the .res for the sentries like hud part is this
[code]"Icon_Sentry_1"
{
"ControlName" "CIconPanel"
"fieldName" "Icon_Sentry_1"
"xpos" "22"
"ypos" "12"
"wide" "36"
"tall" "36"
"visible" "1"
"enabled" "1"
"scaleImage" "1"
"icon" "obj_status_sentrygun_1"
"iconColor" "White"
}[/code]
When changing the "Icon" to anything other than I assume an Icon It will go blank I have tried to change it to the dispensers Icon, Sapper, Level 2 and Level 3 and they have all worked however when i try changing it to "icon" "../vgui/replay/thumbnails/obj_status_sentrygun_1" It goes blank it completly dissapears no matter what i add it will always dissepear unless its just "obj_status_sentrygun_1" (Or any name for that matter as long as it matches the .vtf and .vmt name) my vmt is called the same and inside its $basetexture is specified the file path
[code]"UnlitGeneric"
{
"$baseTexture" "vgui/replay/thumbnails/building_icons/obj_status_sentrygun_1"
"$translucent" "1"
"$vertexcolor" "1"
"$vertexalpha" "1"
}[/code]
So I am really really confused on what am i supposed to do to make it work in casual I know BudHud works fine so it's possible I'm just missing something sorry if it's a mess to read I am trying my best to make it as comprehensible as possible and also that the thread is SO long this is my last resort
iconpanels work differently than an imagepanel, you have to change the path to the custom image in mod_textures.txt instead of in hud_obj_sentrygun.res
https://i.imgur.com/G4LyskS.png
this line
iconpanels work differently than an imagepanel, you have to change the path to the custom image in mod_textures.txt instead of in hud_obj_sentrygun.res
[img]https://i.imgur.com/G4LyskS.png[/img]
this line