forked from Mirror/GodMode9
Unlock sequence prompt cosmetics
This commit is contained in:
parent
9f562dbd39
commit
7fea4e81b0
@ -232,18 +232,18 @@ bool ShowUnlockSequence(u32 seqlvl, const char *format, ...) {
|
|||||||
va_end(va);
|
va_end(va);
|
||||||
|
|
||||||
str_width = GetDrawStringWidth(str);
|
str_width = GetDrawStringWidth(str);
|
||||||
str_height = GetDrawStringHeight(str) + (3*10);
|
str_height = GetDrawStringHeight(str) + (4*10);
|
||||||
if (str_width < 24) str_width = 24;
|
if (str_width < 24 * 8) str_width = 24 * 8;
|
||||||
x = (str_width >= SCREEN_WIDTH_TOP) ? 0 : (SCREEN_WIDTH_TOP - str_width) / 2;
|
x = (str_width >= SCREEN_WIDTH_TOP) ? 0 : (SCREEN_WIDTH_TOP - str_width) / 2;
|
||||||
y = (str_height >= SCREEN_HEIGHT) ? 0 : (SCREEN_HEIGHT - (str_height)) / 2;
|
y = (str_height >= SCREEN_HEIGHT) ? 0 : (SCREEN_HEIGHT - str_height) / 2;
|
||||||
|
|
||||||
ClearScreenF(true, false, COLOR_STD_BG);
|
ClearScreenF(true, false, COLOR_STD_BG);
|
||||||
DrawStringF(true, x, y, COLOR_STD_FONT, COLOR_STD_BG, str);
|
DrawStringF(true, x, y, COLOR_STD_FONT, COLOR_STD_BG, str);
|
||||||
DrawStringF(true, x, y + str_height - (2*10), COLOR_STD_FONT, COLOR_STD_BG, "To proceed, enter this:");
|
DrawStringF(true, x, y + str_height - 28, COLOR_STD_FONT, COLOR_STD_BG, "To proceed, enter this:");
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
for (u32 n = 0; n < len; n++) {
|
for (u32 n = 0; n < len; n++) {
|
||||||
DrawStringF(true, x + (n*4*8), y + str_height - (1*10),
|
DrawStringF(true, x + (n*4*8), y + str_height - 18,
|
||||||
(lvl > n) ? seqcolors[seqlvl] : COLOR_GREY, COLOR_STD_BG, "<%c>", seqsymbols[seqlvl][n]);
|
(lvl > n) ? seqcolors[seqlvl] : COLOR_GREY, COLOR_STD_BG, "<%c>", seqsymbols[seqlvl][n]);
|
||||||
}
|
}
|
||||||
if (lvl == len)
|
if (lvl == len)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user