ns/dev/3.2-LUA/source/ui/StaticLabel.h
tankefugl f0bcdd7a9f Branched for LUA development.
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@266 67975925-1194-0748-b3d5-c16f83f1a3a1
2005-07-13 11:35:45 +00:00

35 lines
867 B
C++

#ifndef STATICLABEL_H
#define STATICLABEL_H
#include "vgui_Label.h"
class StaticLabel : public vgui::Label
{
public:
StaticLabel(int wide, int tall) : mOriginalWidth(wide), mOriginalHeight(tall), Label("", 0, 0, wide, tall)
{
}
StaticLabel(const char* text,int x,int y,int wide,int tall) : mOriginalWidth(wide), mOriginalHeight(tall), Label(text, x, y, wide, tall)
{
}
void SetStaticSize(int inWidth, int inHeight)
{
this->mOriginalWidth = inWidth;
this->mOriginalHeight = inHeight;
this->setSize(inWidth, inHeight);
}
virtual void setSize(int wide,int tall)
{
//Label::setSize(this->mOriginalWidth, this->mOriginalHeight);
Label::setSize(wide, tall);
}
private:
int mOriginalWidth;
int mOriginalHeight;
};
#endif