2024-05-25 18:31:09 +00:00
|
|
|
|
#include "pc98.h"
|
|
|
|
|
#include "shiftjis.hpp"
|
|
|
|
|
|
2022-08-11 19:30:45 +00:00
|
|
|
|
#define STAGEBONUS_TITLE_PREFIX "<22>r<EFBFBD>s<EFBFBD>`<60>f<EFBFBD>d<EFBFBD>@"
|
|
|
|
|
|
|
|
|
|
// The fullwidth stage number is directly inserted into the single static copy
|
|
|
|
|
// of this string.
|
|
|
|
|
#define stagebonus_title STAGEBONUS_TITLE_PREFIX "<22>@<40>@<40>@<40>b<EFBFBD>n<EFBFBD>l<EFBFBD>o<EFBFBD>k<EFBFBD>d<EFBFBD>s<EFBFBD>d"
|
|
|
|
|
|
|
|
|
|
struct stagebonus_title_t {
|
|
|
|
|
ShiftJISKanji prefix[(sizeof(STAGEBONUS_TITLE_PREFIX) - 1) / 2];
|
|
|
|
|
ShiftJISKanji stage[2];
|
|
|
|
|
ShiftJISKanji suffix[];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// ZUN bloat: Same here for all rendered fullwidth numbers. This constant seems
|
|
|
|
|
// to do us a favor by pre-filling the constant ones digit and the trailing
|
|
|
|
|
// space, but the game overwrites it anyway, making it entirely pointless.
|
|
|
|
|
#define stagebonus_digit_buf "<22>@<40>@<40>@<40>@<40>O<EFBFBD>@"
|
|
|
|
|
|
|
|
|
|
#define STAGEBONUS_SUBTITLE "<22>@<40>@<40>a<EFBFBD>n<EFBFBD>m<EFBFBD>t<EFBFBD>r"
|
|
|
|
|
#define STAGEBONUS_TIME " <20>@<40>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>@"
|
|
|
|
|
#define STAGEBONUS_CARDCOMBO_MAX "<22>b<EFBFBD><62><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
#define STAGEBONUS_RESOURCES "<22>a<EFBFBD><61><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD><6F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
#define STAGEBONUS_STAGE_NUMBER "<22>@<40>@<40>r<EFBFBD>s<EFBFBD>`<60>f<EFBFBD>d"
|
|
|
|
|
#define STAGEBONUS_TOTAL "<22>a<EFBFBD>n<EFBFBD>m<EFBFBD>t<EFBFBD>r<EFBFBD>@<40>o<EFBFBD><6F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
#define STAGEBONUS_HIT_KEY "<22>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>@<40>y<EFBFBD>@<40>j<EFBFBD><6A><EFBFBD><EFBFBD>"
|
|
|
|
|
|
|
|
|
|
static const pixel_t STAGEBONUS_TITLE_W = shiftjis_w(stagebonus_title);
|
|
|
|
|
|
|
|
|
|
// TRANSLATORS: Replace with your longest string.
|
|
|
|
|
static const pixel_t STAGEBONUS_LABEL_W = shiftjis_w(STAGEBONUS_TOTAL);
|
|
|
|
|
|
|
|
|
|
static const pixel_t STAGEBONUS_METRIC_ROW_W = (
|
|
|
|
|
STAGEBONUS_LABEL_W + GLYPH_FULL_W + shiftjis_w(stagebonus_digit_buf)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
static const pixel_t STAGEBONUS_W = (
|
|
|
|
|
(STAGEBONUS_TITLE_W > STAGEBONUS_METRIC_ROW_W)
|
|
|
|
|
? STAGEBONUS_TITLE_W
|
|
|
|
|
: STAGEBONUS_METRIC_ROW_W
|
|
|
|
|
);
|