mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2023-12-30 21:52:56 +00:00
1c5256a4c6
Only works with FT .dat file. FT music does not work - different format.
49 lines
974 B
C++
49 lines
974 B
C++
#pragma once
|
|
#include "gdrv.h"
|
|
|
|
struct scoreStruct
|
|
{
|
|
int Score;
|
|
bool DirtyFlag;
|
|
gdrv_bitmap8* BackgroundBmp;
|
|
int OffsetX;
|
|
int OffsetY;
|
|
int Width;
|
|
int Height;
|
|
gdrv_bitmap8* CharBmp[10];
|
|
};
|
|
|
|
struct score_msg_font_type
|
|
{
|
|
int GapWidth;
|
|
int Height;
|
|
gdrv_bitmap8* Chars[128];
|
|
};
|
|
|
|
struct score_font_rc
|
|
{
|
|
short Header0;
|
|
short Header1;
|
|
short Height;
|
|
char SomeLen[128];
|
|
};
|
|
|
|
|
|
class score
|
|
{
|
|
public:
|
|
static score_msg_font_type* msg_fontp;
|
|
static int init();
|
|
static scoreStruct* create(LPCSTR fieldName, gdrv_bitmap8* renderBgBmp);
|
|
static scoreStruct* dup(scoreStruct* score, int scoreIndex);
|
|
static void load_msg_font(LPCSTR lpName);
|
|
static void unload_msg_font();
|
|
static void erase(scoreStruct* score, int blitFlag);
|
|
static void set(scoreStruct* score, int value);
|
|
static void update(scoreStruct* score);
|
|
static void string_format(int score, char* str);
|
|
private :
|
|
static void load_msg_font_3DPB(LPCSTR lpName);
|
|
static void load_msg_font_FT(LPCSTR lpName);
|
|
};
|