Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[TF2] Custom Menu hud flash original background before custom background

Open xacatis opened this issue 8 years ago • 2 comments

Giving in custom MainMenuOverride.res, all images to same one and have custom title_invasion.vtf "image" "../console/title_invasion" One time it flah to real background image invasion and then back to custom on server disconnected by user

xacatis avatar Nov 01 '17 00:11 xacatis

This sounds like the expected behavior if an asset is slow to load.

kisak-valve avatar Nov 01 '17 00:11 kisak-valve

For custom HUDs what you should do it edit scripts/chapterbackgrounds.txt to only use the background you're overwriting with your custom one. So if your custom background is replacing background_upward then your chapterbackgrounds file would look like this.

"chapters"
{
	1	"background_upward"
	2	"background_upward"
	3	"background_upward"
	4	"background_upward"
}

"BackgroundMaps"
{
	1	"background_upward"
	2	"background_upward"
	3	"background_upward"
	4	"background_upward"
}

Then in resource/ui/statsummary.res set background_upward as the main background for the loading screens.

"MainBackground"
{
	"ControlName"	"ImagePanel"
	"fieldName"		"MainBackground"
	"xpos"			"0"
	"ypos"			"0"
	"wide"			"0"
	"tall"			"0"
	"visible"		"0"
	"enabled"		"0"
	"image"			"../console/background_upward"
	"scaleImage"	"1"
}

In short, I don't think this is something that needs looking into by the developers.

CriticalFlaw avatar Aug 12 '22 14:08 CriticalFlaw