mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-22 12:23:48 +01:00
Fix 'y' actually being 'x' in CreatePCMultichoice
This commit is contained in:
parent
c5e1feae38
commit
d58af1ba92
@ -328,7 +328,7 @@ bool16 ScriptMenu_CreatePCMultichoice(void)
|
|||||||
|
|
||||||
static void CreatePCMultichoice(void)
|
static void CreatePCMultichoice(void)
|
||||||
{
|
{
|
||||||
u8 y = 8;
|
u8 x = 8;
|
||||||
u32 pixelWidth = 0;
|
u32 pixelWidth = 0;
|
||||||
u8 width;
|
u8 width;
|
||||||
u8 numChoices;
|
u8 numChoices;
|
||||||
@ -353,25 +353,25 @@ static void CreatePCMultichoice(void)
|
|||||||
numChoices = 4;
|
numChoices = 4;
|
||||||
windowId = CreateWindowFromRect(0, 0, width, 8);
|
windowId = CreateWindowFromRect(0, 0, width, 8);
|
||||||
SetStandardWindowBorderStyle(windowId, FALSE);
|
SetStandardWindowBorderStyle(windowId, FALSE);
|
||||||
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_HallOfFame, y, 33, TEXT_SKIP_DRAW, NULL);
|
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_HallOfFame, x, 33, TEXT_SKIP_DRAW, NULL);
|
||||||
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_LogOff, y, 49, TEXT_SKIP_DRAW, NULL);
|
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_LogOff, x, 49, TEXT_SKIP_DRAW, NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
numChoices = 3;
|
numChoices = 3;
|
||||||
windowId = CreateWindowFromRect(0, 0, width, 6);
|
windowId = CreateWindowFromRect(0, 0, width, 6);
|
||||||
SetStandardWindowBorderStyle(windowId, FALSE);
|
SetStandardWindowBorderStyle(windowId, FALSE);
|
||||||
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_LogOff, y, 33, TEXT_SKIP_DRAW, NULL);
|
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_LogOff, x, 33, TEXT_SKIP_DRAW, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change PC name if player has met Lanette
|
// Change PC name if player has met Lanette
|
||||||
if (FlagGet(FLAG_SYS_PC_LANETTE))
|
if (FlagGet(FLAG_SYS_PC_LANETTE))
|
||||||
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_LanettesPC, y, 1, TEXT_SKIP_DRAW, NULL);
|
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_LanettesPC, x, 1, TEXT_SKIP_DRAW, NULL);
|
||||||
else
|
else
|
||||||
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_SomeonesPC, y, 1, TEXT_SKIP_DRAW, NULL);
|
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_SomeonesPC, x, 1, TEXT_SKIP_DRAW, NULL);
|
||||||
|
|
||||||
StringExpandPlaceholders(gStringVar4, gText_PlayersPC);
|
StringExpandPlaceholders(gStringVar4, gText_PlayersPC);
|
||||||
PrintPlayerNameOnWindow(windowId, gStringVar4, y, 17);
|
PrintPlayerNameOnWindow(windowId, gStringVar4, x, 17);
|
||||||
InitMenuInUpperLeftCornerNormal(windowId, numChoices, 0);
|
InitMenuInUpperLeftCornerNormal(windowId, numChoices, 0);
|
||||||
CopyWindowToVram(windowId, COPYWIN_FULL);
|
CopyWindowToVram(windowId, COPYWIN_FULL);
|
||||||
InitMultichoiceCheckWrap(FALSE, numChoices, windowId, MULTI_PC);
|
InitMultichoiceCheckWrap(FALSE, numChoices, windowId, MULTI_PC);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user