Upvote Upvoted 1 Downvote Downvoted
hud_reloadscheme resetting part of HUD?
posted in Q/A Help
1
#1
0 Frags +

1) I join a new map and see this: https://dl.dropboxusercontent.com/u/1811521/fdwfd2.jpg
2) I run hud_reloadscheme and see this: https://dl.dropboxusercontent.com/u/1811521/dfwd1.jpg
I don't change the image source or even the file referring to the image being drawn in the meantime, it just changes back to the default image (which isn't referred to in my custom HUD's files at all) for no apparent reason. What gives? I can't work on my HUD like this :(

this is what seems to be resetting:

	"TimePanelBG"
	{
		"ControlName"	"CTFImagePanel"
		"fieldName"		"TimePanelBG"
		"xpos"			"35"
		"ypos"			"9"
		"zpos"			"2"
		"wide"			"38"
		"wide_lodef"	"90"
		"tall"			"23"
		"tall_lodef"	"38"
		"visible"		"1"
		"enabled"		"1"
		"image"			"replay/thumbnails/bluetrans2"	
		"teambg_1"		"replay/thumbnails/bluetrans2"	
		"teambg_2"		"replay/thumbnails/redtrans2"
		"teambg_3"		"replay/thumbnails/bluetrans2"
		"scaleImage"	"1"	
	}

redtrans2/bluetrans2 are custom textures, 50% opacity flat red/blue colors

1) I join a new map and see this: https://dl.dropboxusercontent.com/u/1811521/fdwfd2.jpg
2) I run hud_reloadscheme and see this: https://dl.dropboxusercontent.com/u/1811521/dfwd1.jpg
I don't change the image source or even the file referring to the image being drawn in the meantime, it just changes back to the default image (which isn't referred to in my custom HUD's files at all) for no apparent reason. What gives? I can't work on my HUD like this :(

this is what seems to be resetting:


[code] "TimePanelBG"
{
"ControlName" "CTFImagePanel"
"fieldName" "TimePanelBG"
"xpos" "35"
"ypos" "9"
"zpos" "2"
"wide" "38"
"wide_lodef" "90"
"tall" "23"
"tall_lodef" "38"
"visible" "1"
"enabled" "1"
"image" "replay/thumbnails/bluetrans2"
"teambg_1" "replay/thumbnails/bluetrans2"
"teambg_2" "replay/thumbnails/redtrans2"
"teambg_3" "replay/thumbnails/bluetrans2"
"scaleImage" "1"
}[/code]

redtrans2/bluetrans2 are custom textures, 50% opacity flat red/blue colors
2
#2
1 Frags +

I replaced "ControlName" "CTFImagePanel" with "ControlName" "ImagePanel" and it stopped reverting. Don't need help anymore, but posting the solution because internet etiquette.

EDIT: A better solution is (if possible with the control -- it is for mine) to give the control a unique name and disable the original one.

I replaced "ControlName" "CTFImagePanel" with "ControlName" "ImagePanel" and it stopped reverting. Don't need help anymore, but posting the solution because internet etiquette.

EDIT: A better solution is (if possible with the control -- it is for mine) to give the control a unique name and disable the original one.
Please sign in through STEAM to post a comment.