代码拉取完成,页面将自动刷新
//========= Copyright ?1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef ANIMATINGIMAGEPANEL_H
#define ANIMATINGIMAGEPANEL_H
#ifdef _WIN32
#pragma once
#endif
#include <tier1/utlvector.h>
#include "Panel.h"
namespace vgui2
{
//-----------------------------------------------------------------------------
// 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。