engine/hud/hudBarDisplayCtrl.h

50 lines
1.2 KiB
C
Raw Permalink Normal View History

2024-01-07 04:36:33 +00:00
//-----------------------------------------------------------------------------
// V12 Engine
//
// Copyright (c) 2001 GarageGames.Com
// Portions Copyright (c) 2001 by Sierra Online, Inc.
//-----------------------------------------------------------------------------
#ifndef _HUDBARDISPLAYCTRL_H_
#define _HUDBARDISPLAYCTRL_H_
#include "hud/hudObject.h"
#include "console/consoleTypes.h"
/**
* This is a HUD object that displays data in horizontal or vertical
* percentage bars
*/
class HudBarDisplayCtrl : public HudObject {
private:
typedef HudObject Parent;
protected:
virtual F32 getValue();
virtual ColorI getBarColor();
virtual ColorI getSecondBarColor();
public:
HudBarDisplayCtrl();
void onRender( Point2I, const RectI &, GuiControl * );
S32 mPulseRate;
F32 mPulseThreshold;
bool mPulse;
bool mHorizontalBar;
bool mDrawFromOrigin;
bool mShowPercentage;
bool mDisplayMounted;
bool mGradientFill;
F32 mValue;
static void initPersistFields();
DECLARE_CONOBJECT( HudBarDisplayCtrl );
};
#endif
// HudBarDisplayCtrl.h