ReC98/th01/shiftjis/bonus.hpp

40 lines
1.4 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#define STAGEBONUS_TITLE_PREFIX " "
// The fullwidth stage number is directly inserted into the single static copy
// of this string.
#define stagebonus_title STAGEBONUS_TITLE_PREFIX "   "
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 "     "
#define STAGEBONUS_SUBTITLE "  "
#define STAGEBONUS_TIME "   "
#define STAGEBONUS_CARDCOMBO_MAX ""
#define STAGEBONUS_RESOURCES ""
#define STAGEBONUS_STAGE_NUMBER "  "
#define STAGEBONUS_TOTAL " "
#define STAGEBONUS_HIT_KEY "  "
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
);