代码拉取完成,页面将自动刷新
//========= Copyright ?1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef ROTATINGPROGRESSBAR_H
#define ROTATINGPROGRESSBAR_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui/VGUI2.h>
#include "Panel.h"
#include "ProgressBar.h"
namespace vgui2
{
//-----------------------------------------------------------------------------
// Purpose: Progress Bar that rotates an image around its center
//-----------------------------------------------------------------------------
class RotatingProgressBar : public ProgressBar
{
DECLARE_CLASS_SIMPLE( RotatingProgressBar, ProgressBar );
public:
RotatingProgressBar(Panel *parent, const char *panelName);
~RotatingProgressBar();
virtual void ApplySettings(KeyValues *inResourceData);
virtual void ApplySchemeSettings(IScheme *pScheme);
void SetImage( const char *imageName );
protected:
virtual void Paint();
virtual void PaintBackground();
virtual void OnTick();
private:
int m_nTextureId;
char *m_pszImageName;
float m_flStartRadians;
float m_flEndRadians;
float m_flLastAngle;
float m_flTickDelay;
float m_flApproachSpeed;
float m_flRotOriginX;
float m_flRotOriginY;
float m_flRotatingX;
float m_flRotatingY;
float m_flRotatingWide;
float m_flRotatingTall;
};
} // namespace vgui
#endif // ROTATINGPROGRESSBAR_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。