ns/releases/3.1.3/source/mod/AvHTechImpulsePanel.h
puzl 860617f419 made a copy
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@376 67975925-1194-0748-b3d5-c16f83f1a3a1
2006-01-15 21:48:23 +00:00

70 lines
2 KiB
C++

//======== (C) Copyright 2002 Charles G. Cleveland All rights reserved. =========
//
// The copyright to the contents herein is the property of Charles G. Cleveland.
// The contents may be used and/or copied only with the written permission of
// Charles G. Cleveland, or in accordance with the terms and conditions stipulated in
// the agreement/contract under which the contents have been supplied.
//
// Purpose:
//
// $Workfile: TechImpulse.h $
// $Date: 2002/08/16 02:28:55 $
//
//-------------------------------------------------------------------------------
// $Log: TechImpulse.h,v $
// Revision 1.3 2002/08/16 02:28:55 Flayra
// - Added document headers
//
//===============================================================================
#ifndef AVHTECHIMPULSEPANEL_H
#define AVHTECHIMPULSEPANEL_H
#include "vgui_Label.h"
#include "mod/AvHMessage.h"
#include "ui/UIComponents.h"
#include "VGUI_TextImage.h"
#include "ui/FakeTextImage.h"
class AvHTechImpulsePanel : public vgui::Label
{
public:
AvHTechImpulsePanel();
AvHTechImpulsePanel(int inXPos, int inYPos, int inWidth, int inHeight);
AvHMessageID GetMessageID() const;
void SetDrawNumberRange(int inRange);
void SetMessageID(AvHMessageID inImpulse);
void SetVisualNumber(int inNumber);
virtual void setFont(Scheme::SchemeFont schemeFont);
virtual void setFont(Font* font);
protected:
bool GetTextExtents(int& outWidth, int& outHeight);
virtual void paint();
virtual void paintBackground();
private:
AvHMessageID mMessageID;
int mVisualNumber;
FakeTextImage mTextImage;
int mDrawNumberRange;
};
class AvHUITechImpulsePanel : public UILabel
{
public:
virtual Panel* GetComponentPointer(void);
virtual bool SetClassProperties(const TRDescription& inDesc, Panel* inPanel, CSchemeManager* inSchemeManager);
private:
void AllocateComponent(const TRDescription& inDescription);
AvHTechImpulsePanel* mComponent;
};
#endif