--
[ Picked text/plain from multipart/alternative ]
Hello fellow coders,
I am attempting to get HUD animation sequences working. I have created a
script file with some animation effects that would make pretty obvious
changes to the HUD. None of the effects seem to be showing up.
I am loading the script file in the viewport and this load function is not
failing.
m_pAnimController->SetScriptFile( GetVPanel(),
"scripts/HudAnimations.txt")
The HUD class inherits from vgui::Panel and CHudElement.
I am calling the animation sequence from the HUD object in the Paint()
routine.
g_pClientMode->GetViewportAnimationController()->StartAnimationSequence("ObjectiveCapturingPaused")
Some questions:
Do the animation effects have to associate with member variables or just the
name given to the HUD class?
Am I not supposed to keep starting an animation sequence for every call to
Paint() or will StartAnimationSequence() check for multiple calls for the
same thing?
If anyone has a tutorial on setting up a simple HUD with working animations
I'd be grateful.
Matt Chambers
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders