ANIMATE (macro): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
This macro is used to start a VGUI animation. <code>vgui_helpers.h</code> is a good place to paste it.
This macro is used to start a VGUI animation. <code>vgui_helpers.h</code> is a good place to paste it.


  #define ANIMATE(string_animation) \
  #define VGUIANIMATE(string_animation) \
  g_pClientMode->GetViewportAnimationController()->StartAnimationSequence(string_animation);
  g_pClientMode->GetViewportAnimationController()->StartAnimationSequence(string_animation);



Revision as of 10:32, 17 May 2008

This macro is used to start a VGUI animation. vgui_helpers.h is a good place to paste it.

#define VGUIANIMATE(string_animation) \
		g_pClientMode->GetViewportAnimationController()->StartAnimationSequence(string_animation);