2007-12-20 22:35:02 +00:00
|
|
|
#ifndef __SBarInfo_SBAR_H__
|
|
|
|
#define __SBarInfo_SBAR_H__
|
|
|
|
|
|
|
|
#include "tarray.h"
|
|
|
|
#include "v_collection.h"
|
|
|
|
|
|
|
|
struct SBarInfoCommand; //we need to be able to use this before it is defined.
|
|
|
|
|
|
|
|
struct SBarInfoBlock
|
|
|
|
{
|
|
|
|
TArray<SBarInfoCommand> commands;
|
2008-01-06 19:10:52 +00:00
|
|
|
bool forceScaled;
|
|
|
|
SBarInfoBlock();
|
2007-12-20 22:35:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct SBarInfoCommand
|
|
|
|
{
|
|
|
|
int type;
|
|
|
|
int special;
|
|
|
|
int special2;
|
|
|
|
int special3;
|
|
|
|
int special4;
|
|
|
|
int flags;
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int value;
|
|
|
|
int sprite;
|
2007-12-22 23:19:08 +00:00
|
|
|
FString string[2];
|
2007-12-20 22:35:02 +00:00
|
|
|
FFont *font;
|
|
|
|
EColorRange translation;
|
2008-01-10 04:22:48 +00:00
|
|
|
EColorRange translation2;
|
|
|
|
EColorRange translation3;
|
2007-12-20 22:35:02 +00:00
|
|
|
SBarInfoBlock subBlock; //for type SBarInfo_CMD_GAMEMODE
|
|
|
|
void setString(const char* source, int strnum, int maxlength=-1, bool exact=false);
|
|
|
|
SBarInfoCommand();
|
|
|
|
};
|
|
|
|
|
|
|
|
struct SBarInfo
|
|
|
|
{
|
2007-12-22 23:19:08 +00:00
|
|
|
TArray<FString> Images;
|
2007-12-20 22:35:02 +00:00
|
|
|
SBarInfoBlock huds[6];
|
|
|
|
bool automapbar;
|
|
|
|
bool interpolateHealth;
|
|
|
|
int interpolationSpeed;
|
|
|
|
int height;
|
|
|
|
int ParseSBarInfo(int lump);
|
|
|
|
void ParseSBarInfoBlock(SBarInfoBlock &block);
|
|
|
|
int newImage(const char* patchname);
|
|
|
|
EColorRange GetTranslation(char* translation);
|
|
|
|
SBarInfo();
|
|
|
|
};
|
|
|
|
|
2008-01-05 04:23:34 +00:00
|
|
|
extern SBarInfo *SBarInfoScript;
|
2007-12-20 22:35:02 +00:00
|
|
|
|
|
|
|
#endif //__SBarInfo_SBAR_H__
|