aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/vgui_controls/AnimatingImagePanel.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/vgui_controls/AnimatingImagePanel.h
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/vgui_controls/AnimatingImagePanel.h')
-rw-r--r--sp/src/public/vgui_controls/AnimatingImagePanel.h132
1 files changed, 66 insertions, 66 deletions
diff --git a/sp/src/public/vgui_controls/AnimatingImagePanel.h b/sp/src/public/vgui_controls/AnimatingImagePanel.h
index 838d2eb5..a65a5dc3 100644
--- a/sp/src/public/vgui_controls/AnimatingImagePanel.h
+++ b/sp/src/public/vgui_controls/AnimatingImagePanel.h
@@ -1,66 +1,66 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef ANIMATINGIMAGEPANEL_H
-#define ANIMATINGIMAGEPANEL_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include <utlvector.h>
-#include <vgui_controls/Panel.h>
-
-namespace vgui
-{
-
-//-----------------------------------------------------------------------------
-// Purpose: Animating image
-//-----------------------------------------------------------------------------
-class AnimatingImagePanel : public Panel
-{
- DECLARE_CLASS_SIMPLE( AnimatingImagePanel, Panel );
-
-public:
- AnimatingImagePanel(Panel *parent, const char *name);
-
- // Add an image to the end of the list of animations
- // image - pointer to the image to add to the end of the list
- virtual void AddImage(IImage *image);
-
- // Load a set of animations by name.
- // baseName - The name of the animations without their frame number or file extension, (e.g. c1.tga becomes just c.)
- // framecount: number of frames in the animation
- virtual void LoadAnimation(const char *baseName, int frameCount);
-
- virtual void StartAnimation();
- virtual void StopAnimation();
- virtual void ResetAnimation(int frame = 0);
-
-protected:
- virtual void OnTick();
- virtual void PerformLayout();
- virtual void PaintBackground();
-
- virtual void GetSettings(KeyValues *outResourceData);
- virtual void ApplySettings(KeyValues *inResourceData);
- virtual const char *GetDescription();
-
-private:
- int m_iCurrentImage;
- int m_iNextFrameTime;
- int m_iFrameTimeMillis;
- CUtlVector<IImage *> m_Frames;
- char *m_pImageName;
- bool m_bAnimating;
- bool m_bFiltered;
- bool m_bScaleImage;
-};
-
-}; // namespace vgui
-
-#endif // ANIMATINGIMAGEPANEL_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef ANIMATINGIMAGEPANEL_H
+#define ANIMATINGIMAGEPANEL_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <utlvector.h>
+#include <vgui_controls/Panel.h>
+
+namespace vgui
+{
+
+//-----------------------------------------------------------------------------
+// Purpose: Animating image
+//-----------------------------------------------------------------------------
+class AnimatingImagePanel : public Panel
+{
+ DECLARE_CLASS_SIMPLE( AnimatingImagePanel, Panel );
+
+public:
+ AnimatingImagePanel(Panel *parent, const char *name);
+
+ // Add an image to the end of the list of animations
+ // image - pointer to the image to add to the end of the list
+ virtual void AddImage(IImage *image);
+
+ // Load a set of animations by name.
+ // baseName - The name of the animations without their frame number or file extension, (e.g. c1.tga becomes just c.)
+ // framecount: number of frames in the animation
+ virtual void LoadAnimation(const char *baseName, int frameCount);
+
+ virtual void StartAnimation();
+ virtual void StopAnimation();
+ virtual void ResetAnimation(int frame = 0);
+
+protected:
+ virtual void OnTick();
+ virtual void PerformLayout();
+ virtual void PaintBackground();
+
+ virtual void GetSettings(KeyValues *outResourceData);
+ virtual void ApplySettings(KeyValues *inResourceData);
+ virtual const char *GetDescription();
+
+private:
+ int m_iCurrentImage;
+ int m_iNextFrameTime;
+ int m_iFrameTimeMillis;
+ CUtlVector<IImage *> m_Frames;
+ char *m_pImageName;
+ bool m_bAnimating;
+ bool m_bFiltered;
+ bool m_bScaleImage;
+};
+
+}; // namespace vgui
+
+#endif // ANIMATINGIMAGEPANEL_H