mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-07 21:41:42 +00:00
1f0fa7c457
- Fixed: Playerclass still didn't work due to comparing of improper numbers. - Fixed: The arrows on drawinventorybar had a hard coded location instead of relative to the specified coordinates. - Added noarrows flag to drawinventorybar to remove the blue arrows drawn when there are more items to the left or right of the viewable bar. - Added forcescaled flag to the statusbar command. This is ignored on the inventory and inventoryfullscreen types. - Added obituary fix for Strife peasants by Karate Chris. - Added fix for loading during demo playback by Karate Chris. SVN r672 (trunk)
53 lines
1.1 KiB
C
53 lines
1.1 KiB
C
#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;
|
|
bool forceScaled;
|
|
SBarInfoBlock();
|
|
};
|
|
|
|
struct SBarInfoCommand
|
|
{
|
|
int type;
|
|
int special;
|
|
int special2;
|
|
int special3;
|
|
int special4;
|
|
int flags;
|
|
int x;
|
|
int y;
|
|
int value;
|
|
int sprite;
|
|
FString 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<FString> 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__
|