Documented boolean uses
This commit is contained in:
@@ -107,7 +107,7 @@ static void DrawMultichoiceMenu(u8 left, u8 top, u8 multichoiceId, bool8 ignoreB
|
||||
newWidth = ConvertPixelWidthToTileWidth(width);
|
||||
left = ScriptMenu_AdjustLeftCoordFromWidth(left, newWidth);
|
||||
windowId = CreateWindowFromRect(left, top, newWidth, count * 2);
|
||||
SetStandardWindowBorderStyle(windowId, 0);
|
||||
SetStandardWindowBorderStyle(windowId, FALSE);
|
||||
PrintMenuTable(windowId, count, actions);
|
||||
InitMenuInUpperLeftCornerNormal(windowId, count, cursorPos);
|
||||
ScheduleBgCopyTilemapToVram(0);
|
||||
@@ -277,7 +277,7 @@ bool8 ScriptMenu_MultichoiceGrid(u8 left, u8 top, u8 multichoiceId, bool8 ignore
|
||||
|
||||
gTasks[taskId].tIgnoreBPress = ignoreBPress;
|
||||
gTasks[taskId].tWindowId = CreateWindowFromRect(left, top, columnCount * newWidth, rowCount * 2);
|
||||
SetStandardWindowBorderStyle(gTasks[taskId].tWindowId, 0);
|
||||
SetStandardWindowBorderStyle(gTasks[taskId].tWindowId, FALSE);
|
||||
PrintMenuGridTable(gTasks[taskId].tWindowId, newWidth * 8, columnCount, rowCount, sMultichoiceLists[multichoiceId].list);
|
||||
InitMenuActionGrid(gTasks[taskId].tWindowId, newWidth * 8, columnCount, rowCount, 0);
|
||||
CopyWindowToVram(gTasks[taskId].tWindowId, COPYWIN_FULL);
|
||||
@@ -352,7 +352,7 @@ static void CreatePCMultichoice(void)
|
||||
{
|
||||
numChoices = 4;
|
||||
windowId = CreateWindowFromRect(0, 0, width, 8);
|
||||
SetStandardWindowBorderStyle(windowId, 0);
|
||||
SetStandardWindowBorderStyle(windowId, FALSE);
|
||||
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_HallOfFame, y, 33, TEXT_SKIP_DRAW, NULL);
|
||||
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_LogOff, y, 49, TEXT_SKIP_DRAW, NULL);
|
||||
}
|
||||
@@ -360,7 +360,7 @@ static void CreatePCMultichoice(void)
|
||||
{
|
||||
numChoices = 3;
|
||||
windowId = CreateWindowFromRect(0, 0, width, 6);
|
||||
SetStandardWindowBorderStyle(windowId, 0);
|
||||
SetStandardWindowBorderStyle(windowId, FALSE);
|
||||
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_LogOff, y, 33, TEXT_SKIP_DRAW, NULL);
|
||||
}
|
||||
|
||||
@@ -521,7 +521,7 @@ static void CreateLilycoveSSTidalMultichoice(void)
|
||||
|
||||
width = ConvertPixelWidthToTileWidth(pixelWidth);
|
||||
windowId = CreateWindowFromRect(MAX_MULTICHOICE_WIDTH - width, (6 - count) * 2, width, count * 2);
|
||||
SetStandardWindowBorderStyle(windowId, 0);
|
||||
SetStandardWindowBorderStyle(windowId, FALSE);
|
||||
|
||||
for (selectionCount = 0, i = 0; i < SSTIDAL_SELECTION_COUNT; i++)
|
||||
{
|
||||
@@ -595,7 +595,7 @@ bool8 ScriptMenu_ShowPokemonPic(u16 species, u8 x, u8 y)
|
||||
gTasks[taskId].tMonSpriteId = spriteId;
|
||||
gSprites[spriteId].callback = SpriteCallbackDummy;
|
||||
gSprites[spriteId].oam.priority = 0;
|
||||
SetStandardWindowBorderStyle(gTasks[taskId].tWindowId, 1);
|
||||
SetStandardWindowBorderStyle(gTasks[taskId].tWindowId, TRUE);
|
||||
ScheduleBgCopyTilemapToVram(0);
|
||||
return TRUE;
|
||||
}
|
||||
@@ -688,7 +688,7 @@ bool16 ScriptMenu_CreateStartMenuForPokenavTutorial(void)
|
||||
static void CreateStartMenuForPokenavTutorial(void)
|
||||
{
|
||||
u8 windowId = CreateWindowFromRect(21, 0, 7, 18);
|
||||
SetStandardWindowBorderStyle(windowId, 0);
|
||||
SetStandardWindowBorderStyle(windowId, FALSE);
|
||||
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_MenuOptionPokedex, 8, 9, TEXT_SKIP_DRAW, NULL);
|
||||
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_MenuOptionPokemon, 8, 25, TEXT_SKIP_DRAW, NULL);
|
||||
AddTextPrinterParameterized(windowId, FONT_NORMAL, gText_MenuOptionBag, 8, 41, TEXT_SKIP_DRAW, NULL);
|
||||
|
||||
Reference in New Issue
Block a user