- Added Blzut3's SBARINFO submission.
SVN r613 (trunk)
This commit is contained in:
parent
91a48d9aa7
commit
5ffda41c7e
6 changed files with 1721 additions and 4 deletions
|
|
@ -257,3 +257,4 @@ FBaseStatusBar *CreateDoomStatusBar ();
|
|||
FBaseStatusBar *CreateHereticStatusBar ();
|
||||
FBaseStatusBar *CreateHexenStatusBar ();
|
||||
FBaseStatusBar *CreateStrifeStatusBar ();
|
||||
FBaseStatusBar *CreateCustomStatusBar ();
|
||||
|
|
|
|||
1644
src/g_shared/sbarinfo.cpp
Normal file
1644
src/g_shared/sbarinfo.cpp
Normal file
File diff suppressed because it is too large
Load diff
51
src/g_shared/sbarinfo.h
Normal file
51
src/g_shared/sbarinfo.h
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
#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;
|
||||
};
|
||||
|
||||
struct SBarInfoCommand
|
||||
{
|
||||
int type;
|
||||
int special;
|
||||
int special2;
|
||||
int special3;
|
||||
int special4;
|
||||
int flags;
|
||||
int x;
|
||||
int y;
|
||||
int value;
|
||||
int sprite;
|
||||
char* string[2];
|
||||
FFont *font;
|
||||
EColorRange translation;
|
||||
SBarInfoBlock subBlock; //for type SBarInfo_CMD_GAMEMODE
|
||||
void setString(const char* source, int strnum, int maxlength=-1, bool exact=false);
|
||||
SBarInfoCommand();
|
||||
};
|
||||
|
||||
struct SBarInfo
|
||||
{
|
||||
TArray<const char*> Images;
|
||||
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();
|
||||
};
|
||||
|
||||
extern SBarInfo SBarInfoScript;
|
||||
|
||||
#endif //__SBarInfo_SBAR_H__
|
||||
Loading…
Add table
Add a link
Reference in a new issue