mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-23 21:12:16 +00:00
54a4ac5469
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@85 67975925-1194-0748-b3d5-c16f83f1a3a1
35 lines
793 B
C++
35 lines
793 B
C++
#ifndef SPRITEPANEL_H
|
|
#define SPRITEPANEL_H
|
|
|
|
#include "vgui_Panel.h"
|
|
#include "ui/GammaAwareComponent.h"
|
|
#include "ui/ReloadableComponent.h"
|
|
#include "types.h"
|
|
|
|
class SpritePanel : public vgui::Panel, public ReloadableComponent, public GammaAwareComponent
|
|
{
|
|
public:
|
|
SpritePanel(const string& inBaseSpriteName, const string& inRenderMode);
|
|
|
|
virtual void NotifyGammaChange(float inGammaSlope);
|
|
|
|
virtual void SetVAlignment(const string& inAlignment);
|
|
|
|
virtual void VidInit(void);
|
|
|
|
protected:
|
|
int GetNumSpritesAcross();
|
|
int GetNumSpritesDown();
|
|
virtual void paint();
|
|
virtual void paintBackground();
|
|
|
|
private:
|
|
string mBaseSpriteName;
|
|
string mRenderMode;
|
|
string mVAlignment;
|
|
int mSpriteHandle;
|
|
float mGammaSlope;
|
|
|
|
};
|
|
|
|
#endif
|