ns/releases/3.1.1/source/ui/ScoreboardIcon.h
puzl 8ec7b4bf0b made a copy
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@352 67975925-1194-0748-b3d5-c16f83f1a3a1
2005-11-18 02:38:19 +00:00

30 lines
No EOL
710 B
C++

// Class for animated UPP icons shown on scoreboard, etc.
#ifndef SCOREBOARDICON_H
#define SCOREBOARDICON_H
#include "vgui.h"
#include "vgui_bitmaptga.h"
#include <vector>
class ScoreboardIcon
{
public:
ScoreboardIcon(const int icon_number, const int icon_color);
~ScoreboardIcon(void);
bool updateColor(const int icon_color, const float gamma_slope);
bool updateColor(const float gamma_slope);
int getIconNumber(void) const;
int getIconColor(void) const;
vgui::Color getColor(void) const;
vgui::BitmapTGA* getImage(const int frame_number) const;
private:
int icon_number, icon_color;
vgui::Color base_color, color;
std::vector<vgui::BitmapTGA*> images;
};
#endif