1 Star 0 Fork 0

yoyojacky/CSMoE

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
RotatingProgressBar.h 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
//========= 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yoyojacky/CSMoE.git
git@gitee.com:yoyojacky/CSMoE.git
yoyojacky
CSMoE
CSMoE
master

搜索帮助