Upvote Upvoted 0 Downvote Downvoted
Help animating a main menu element
posted in Customization
1
#1
0 Frags +

http://i.imgur.com/oN3yfYu.jpg

I wanna make it so that shaded bar turns colors whenever highlighted with the quickplay button but I have no idea how to do that, here's the code I've got so far just for the bar:

	"QuickplayBG"
	{
		"ControlName"	"ImagePanel"
		"fieldName"		"QuickplayBG"
		"xpos"			"0"
		"ypos"			"93"
		"zpos"			"1"
		"wide"			"180"
		"tall"			"14"
		"autoResize"	"0"
		"pinCorner"		"0"
		"visible"		"1"
		"enabled"		"1"
		"fillcolor"		"0 0 0 100"
	}
[img]http://i.imgur.com/oN3yfYu.jpg[/img]
I wanna make it so that shaded bar turns colors whenever highlighted with the quickplay button but I have no idea how to do that, here's the code I've got so far just for the bar:
[code] "QuickplayBG"
{
"ControlName" "ImagePanel"
"fieldName" "QuickplayBG"
"xpos" "0"
"ypos" "93"
"zpos" "1"
"wide" "180"
"tall" "14"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"fillcolor" "0 0 0 100"
}[/code]
2
#2
3 Frags +

http://www.teamfortress.tv/19073/hud-editing-short-questions-quick-answers

http://www.teamfortress.tv/19073/hud-editing-short-questions-quick-answers
3
#3
0 Frags +

If you want it to play an animation from the start when you hover over it, afaik it can't be done. But the last time I tried was years ago and I may be wrong.

If you just want it to have an animation, and you're fine if hovering over it starts it at any random frame (since the animation will always be playing, it just won't be visible until you hover over it), you can just get an animated vtf or use vmt proxies to do what you want, and set that to be the button's border on hover.

If you want it to play an animation from the start when you hover over it, afaik it can't be done. But the last time I tried was years ago and I may be wrong.

If you just want it to have an animation, and you're fine if hovering over it starts it at any random frame (since the animation will always be playing, it just won't be visible until you hover over it), you can just get an [url=http://gamebanana.com/tuts/9544]animated vtf[/url] or use [url=http://www.nodraw.net/2010/01/dynamic-materials-with-proxies/]vmt proxies[/url] to do what you want, and set that to be the button's border on hover.
Please sign in through STEAM to post a comment.