Rename Item PC symbols
This commit is contained in:
@@ -210,9 +210,9 @@ void sub_810B858(void)
|
||||
else
|
||||
InitWindows(gUnknown_84530E4);
|
||||
DeactivateAllTextPrinters();
|
||||
sub_815001C(0, 0x64, 0xE0);
|
||||
sub_814FEAC(0, 0x6D, 0xD0);
|
||||
sub_814FF2C(0, 0x81, 0xC0);
|
||||
TextWindow_SetUserSelectedFrame(0, 0x64, 0xE0);
|
||||
TextWindow_SetBubbleFrame_841F1C8(0, 0x6D, 0xD0);
|
||||
TextWindow_SetStdFrame0_WithPal(0, 0x81, 0xC0);
|
||||
LoadPalette(gUnknown_8453098, 0xF0, 0x20);
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
@@ -265,7 +265,7 @@ u8 sub_810B9DC(u8 a0, u8 a1)
|
||||
|
||||
void sub_810BA3C(u8 a0)
|
||||
{
|
||||
sub_810F4D8(gUnknown_203AD34[a0], FALSE);
|
||||
ClearMenuWindow(gUnknown_203AD34[a0], FALSE);
|
||||
ClearWindowTilemap(gUnknown_203AD34[a0]);
|
||||
RemoveWindow(gUnknown_203AD34[a0]);
|
||||
schedule_bg_copy_tilemap_to_vram(0);
|
||||
@@ -285,7 +285,7 @@ void sub_810BA9C(u8 a0)
|
||||
{
|
||||
if (gUnknown_203AD34[a0] != 0xFF)
|
||||
{
|
||||
sub_810F260(gUnknown_203AD34[a0], FALSE);
|
||||
ClearMenuWindow_BorderThickness2(gUnknown_203AD34[a0], FALSE);
|
||||
ClearWindowTilemap(gUnknown_203AD34[a0]);
|
||||
RemoveWindow(gUnknown_203AD34[a0]);
|
||||
PutWindowTilemap(1);
|
||||
|
||||
+2
-2
@@ -87,7 +87,7 @@ void ShowCoinsWindow(u32 coinAmount, u8 x, u8 y)
|
||||
sCoinsWindowId = AddWindow(&template2);
|
||||
FillWindowPixelBuffer(sCoinsWindowId, 0);
|
||||
PutWindowTilemap(sCoinsWindowId);
|
||||
sub_814FF2C(sCoinsWindowId, 0x21D, 0xD0);
|
||||
TextWindow_SetStdFrame0_WithPal(sCoinsWindowId, 0x21D, 0xD0);
|
||||
SetWindowBorderStyle(sCoinsWindowId, FALSE, 0x21D, 0xD);
|
||||
AddTextPrinterParameterized(sCoinsWindowId, 2, gUnknown_8417C2D, 0, 0, 0xFF, 0);
|
||||
PrintCoinsString(coinAmount);
|
||||
@@ -96,6 +96,6 @@ void ShowCoinsWindow(u32 coinAmount, u8 x, u8 y)
|
||||
void HideCoinsWindow(void)
|
||||
{
|
||||
ClearWindowTilemap(sCoinsWindowId);
|
||||
sub_810F4D8(sCoinsWindowId, TRUE);
|
||||
ClearMenuWindow(sCoinsWindowId, TRUE);
|
||||
RemoveWindow(sCoinsWindowId);
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ void sub_80E58A0(u8 taskId)
|
||||
sub_811F818(gUnknown_203B0A0.unk9, 0);
|
||||
gUnknown_203B0A0.unk9 = gUnknown_203B0A0.unkA;
|
||||
sub_811F818(gUnknown_203B0A0.unkA, 1);
|
||||
sub_810F4D8(6, 0);
|
||||
ClearMenuWindow(6, 0);
|
||||
ClearWindowTilemap(6);
|
||||
sub_8121D0C(0);
|
||||
gTasks[taskId].func = sub_811FB28;
|
||||
|
||||
+359
-359
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -128,13 +128,13 @@ void DrawMoneyBox(int amount, u8 x, u8 y)
|
||||
sMoneyBoxWindowId = AddWindow(&template2);
|
||||
FillWindowPixelBuffer(sMoneyBoxWindowId, 0);
|
||||
PutWindowTilemap(sMoneyBoxWindowId);
|
||||
sub_814FF2C(sMoneyBoxWindowId, 0x21D, 0xD0);
|
||||
TextWindow_SetStdFrame0_WithPal(sMoneyBoxWindowId, 0x21D, 0xD0);
|
||||
PrintMoneyAmountInMoneyBoxWithBorder(sMoneyBoxWindowId, 0x21D, 13, amount);
|
||||
}
|
||||
|
||||
void HideMoneyBox(void)
|
||||
{
|
||||
sub_810F4D8(sMoneyBoxWindowId, FALSE);
|
||||
ClearMenuWindow(sMoneyBoxWindowId, FALSE);
|
||||
CopyWindowToVram(sMoneyBoxWindowId, 2);
|
||||
RemoveWindow(sMoneyBoxWindowId);
|
||||
}
|
||||
|
||||
+3
-3
@@ -1092,7 +1092,7 @@ static void Task_OakSpeech20(u8 taskId)
|
||||
static void Task_OakSpeech21(u8 taskId)
|
||||
{
|
||||
s16 * data = gTasks[taskId].data;
|
||||
sub_810F4D8(data[13], 1);
|
||||
ClearMenuWindow(data[13], 1);
|
||||
RemoveWindow(data[13]);
|
||||
data[13] = 0;
|
||||
ClearDialogWindowAndFrame(0, 1);
|
||||
@@ -1184,7 +1184,7 @@ static void Task_OakSpeech29(u8 taskId)
|
||||
case 3:
|
||||
case 4:
|
||||
PlaySE(SE_SELECT);
|
||||
sub_810F4D8(data[13], TRUE);
|
||||
ClearMenuWindow(data[13], TRUE);
|
||||
RemoveWindow(data[13]);
|
||||
GetDefaultName(sOakSpeechResources->unk_0010, input - 1);
|
||||
data[15] = 1;
|
||||
@@ -1211,7 +1211,7 @@ static void Task_OakSpeech25(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
sub_810F4D8(gTasks[taskId].data[13], 1);
|
||||
ClearMenuWindow(gTasks[taskId].data[13], 1);
|
||||
RemoveWindow(gTasks[taskId].data[13]);
|
||||
DoNamingScreen(4, gSaveBlock1Ptr->rivalName, 0, 0, 0, CB2_ReturnFromNamingScreen);
|
||||
}
|
||||
|
||||
+3
-3
@@ -1691,7 +1691,7 @@ void sub_81123BC(void)
|
||||
|
||||
void sub_8112450(void)
|
||||
{
|
||||
if (sub_80BF708() != 1)
|
||||
if (MenuHelpers_LinkSomething() != 1)
|
||||
{
|
||||
sub_8112364();
|
||||
sub_81123BC();
|
||||
@@ -2842,7 +2842,7 @@ void sub_8113550(u16 a0, const u16 * a1)
|
||||
if (sub_81138A0(a0, a1) == TRUE)
|
||||
return;
|
||||
|
||||
if (sub_80BF708() == TRUE)
|
||||
if (MenuHelpers_LinkSomething() == TRUE)
|
||||
return;
|
||||
|
||||
// NONMATCHING: branch logic here
|
||||
@@ -2954,7 +2954,7 @@ void sub_8113550(u16 a0, const u16 * a1)
|
||||
"\tbne _081135AA\n"
|
||||
"\tb ._return\n"
|
||||
"_081135AA:\n"
|
||||
"\tbl sub_80BF708\n"
|
||||
"\tbl MenuHelpers_LinkSomething\n"
|
||||
"\tlsls r0, 24\n"
|
||||
"\tlsrs r0, 24\n"
|
||||
"\tcmp r0, 0x1\n"
|
||||
|
||||
+12
-12
@@ -31,19 +31,19 @@ void sub_814FD6C(u8 bgId, u16 destOffset, u8 palIdx)
|
||||
|
||||
void sub_814FDA0(u8 bgId, u16 destOffset, u8 palIdx)
|
||||
{
|
||||
LoadBgTiles(bgId, gUnknown_8471A4C, 0x120, destOffset);
|
||||
LoadBgTiles(bgId, gStdFrame0, 0x120, destOffset);
|
||||
LoadPalette(stdpal_get(3), palIdx, 32);
|
||||
}
|
||||
|
||||
void sub_814FDD4(u8 bgId, u16 destOffset)
|
||||
{
|
||||
LoadBgTiles(bgId, gUnknown_8471B6C, 0x280, destOffset);
|
||||
LoadBgTiles(bgId, gStdFrame1, 0x280, destOffset);
|
||||
}
|
||||
|
||||
void sub_814FDF4(u8 bgId, u8 frameType, u16 destOffset, u8 palIdx)
|
||||
{
|
||||
LoadBgTiles(bgId, gUnknown_8471E8C[frameType].tiles, 0x120, destOffset);
|
||||
LoadPalette(gUnknown_8471E8C[frameType].palette, palIdx, 32);
|
||||
LoadBgTiles(bgId, gUserFrames[frameType].tiles, 0x120, destOffset);
|
||||
LoadPalette(gUserFrames[frameType].palette, palIdx, 32);
|
||||
}
|
||||
|
||||
void LoadUserWindowBorderGfx(u8 windowId, u16 destOffset, u8 palIdx)
|
||||
@@ -57,7 +57,7 @@ void sub_814FE6C(u8 windowId, u16 destOffset, u8 palIdx)
|
||||
LoadPalette(stdpal_get(2), palIdx, 32);
|
||||
}
|
||||
|
||||
void sub_814FEAC(u8 windowId, u16 destOffset, u8 palIdx)
|
||||
void TextWindow_SetBubbleFrame_841F1C8(u8 windowId, u16 destOffset, u8 palIdx)
|
||||
{
|
||||
LoadBgTiles(GetWindowAttribute(windowId, WINDOW_BG), gUnknown_841F1C8, 0x280, destOffset);
|
||||
LoadPalette(stdpal_get(0), palIdx, 32);
|
||||
@@ -69,29 +69,29 @@ void sub_814FEEC(u8 windowId, u16 destOffset, u8 palIdx)
|
||||
LoadPalette(stdpal_get(1), palIdx, 32);
|
||||
}
|
||||
|
||||
void sub_814FF2C(u8 windowId, u16 destOffset, u8 palIdx)
|
||||
void TextWindow_SetStdFrame0_WithPal(u8 windowId, u16 destOffset, u8 palIdx)
|
||||
{
|
||||
LoadBgTiles(GetWindowAttribute(windowId, WINDOW_BG), gUnknown_8471A4C, 0x120, destOffset);
|
||||
LoadBgTiles(GetWindowAttribute(windowId, WINDOW_BG), gStdFrame0, 0x120, destOffset);
|
||||
LoadPalette(stdpal_get(3), palIdx, 32);
|
||||
}
|
||||
|
||||
void sub_814FF6C(u8 windowId, u16 destOffset)
|
||||
{
|
||||
LoadBgTiles(GetWindowAttribute(windowId, WINDOW_BG), gUnknown_8471A4C, 0x120, destOffset);
|
||||
LoadBgTiles(GetWindowAttribute(windowId, WINDOW_BG), gStdFrame0, 0x120, destOffset);
|
||||
}
|
||||
|
||||
void sub_814FF98(u8 windowId, u16 destOffset)
|
||||
{
|
||||
LoadBgTiles(GetWindowAttribute(windowId, WINDOW_BG), gUnknown_8471B6C, 0x280, destOffset);
|
||||
LoadBgTiles(GetWindowAttribute(windowId, WINDOW_BG), gStdFrame1, 0x280, destOffset);
|
||||
}
|
||||
|
||||
void sub_814FFC4(u8 windowId, u8 frameType, u16 destOffset, u8 palIdx)
|
||||
{
|
||||
LoadBgTiles(GetWindowAttribute(windowId, WINDOW_BG), gUnknown_8471E8C[frameType].tiles, 0x120, destOffset);
|
||||
LoadPalette(gUnknown_8471E8C[frameType].palette, palIdx, 32);
|
||||
LoadBgTiles(GetWindowAttribute(windowId, WINDOW_BG), gUserFrames[frameType].tiles, 0x120, destOffset);
|
||||
LoadPalette(gUserFrames[frameType].palette, palIdx, 32);
|
||||
}
|
||||
|
||||
void sub_815001C(u8 windowId, u16 destOffset, u8 palIdx)
|
||||
void TextWindow_SetUserSelectedFrame(u8 windowId, u16 destOffset, u8 palIdx)
|
||||
{
|
||||
sub_814FFC4(windowId, gSaveBlock2Ptr->optionsWindowFrameType, destOffset, palIdx);
|
||||
}
|
||||
|
||||
@@ -27,8 +27,8 @@ static const u16 gUnknown_84719EC[] = INCBIN_U16("graphics/text_window/unk_84715
|
||||
static const u16 gUnknown_8471A0C[] = INCBIN_U16("graphics/text_window/unk_84716AC.gbapal");
|
||||
static const u16 gUnknown_8471A2C[] = INCBIN_U16("graphics/text_window/unk_84717CC.gbapal");
|
||||
|
||||
const u16 gUnknown_8471A4C[] = INCBIN_U16("graphics/text_window/unk_8471A4C.4bpp");
|
||||
const u16 gUnknown_8471B6C[] = INCBIN_U16("graphics/text_window/unk_8471B6C.4bpp");
|
||||
const u16 gStdFrame0[] = INCBIN_U16("graphics/text_window/unk_8471A4C.4bpp");
|
||||
const u16 gStdFrame1[] = INCBIN_U16("graphics/text_window/unk_8471B6C.4bpp");
|
||||
|
||||
const u16 gUnknown_8471DEC[][16] = {
|
||||
INCBIN_U16("graphics/text_window/stdpal_0.gbapal"),
|
||||
@@ -38,7 +38,7 @@ const u16 gUnknown_8471DEC[][16] = {
|
||||
INCBIN_U16("graphics/text_window/stdpal_4.gbapal")
|
||||
};
|
||||
|
||||
const struct TextWindowGraphics gUnknown_8471E8C[] = {
|
||||
const struct TextWindowGraphics gUserFrames[] = {
|
||||
{gUnknown_8470D6C, gUnknown_847190C},
|
||||
{gUnknown_8470E8C, gUnknown_847192C},
|
||||
{gUnknown_8470FCC, gUnknown_847194C},
|
||||
@@ -53,8 +53,8 @@ const struct TextWindowGraphics gUnknown_8471E8C[] = {
|
||||
|
||||
const struct TextWindowGraphics * sub_8069788(u8 idx)
|
||||
{
|
||||
if (idx >= 20) // if (idx >= NELEMS(gUnknown_8471E8C))
|
||||
return &gUnknown_8471E8C[0];
|
||||
if (idx >= 20) // if (idx >= NELEMS(gUserFrames))
|
||||
return &gUserFrames[0];
|
||||
else
|
||||
return &gUnknown_8471E8C[idx];
|
||||
return &gUserFrames[idx];
|
||||
}
|
||||
|
||||
+20
-20
@@ -309,7 +309,7 @@ static void CB2_SetUpTMCaseUI_Blocking(void)
|
||||
break;
|
||||
if (DoSetUpTMCaseUI() == TRUE)
|
||||
break;
|
||||
if (sub_80BF708() == TRUE)
|
||||
if (MenuHelpers_LinkSomething() == TRUE)
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -595,7 +595,7 @@ static void TMCase_MoveCursor_UpdatePrintedDescription(s32 itemIndex)
|
||||
|
||||
static void FillBG2RowWithPalette_2timesNplus1(s32 a0)
|
||||
{
|
||||
sub_80F6B08(2, 0, 12, 30, 8, 2 * a0 + 1);
|
||||
SetBgRectPal(2, 0, 12, 30, 8, 2 * a0 + 1);
|
||||
schedule_bg_copy_tilemap_to_vram(2);
|
||||
}
|
||||
|
||||
@@ -782,7 +782,7 @@ static void Task_SelectTMAction_FromFieldBag(u8 taskId)
|
||||
{
|
||||
u8 * strbuf;
|
||||
TMCase_SetWindowBorder2(2);
|
||||
if (!sub_80BF708() && InUnionRoom() != TRUE)
|
||||
if (!MenuHelpers_LinkSomething() && InUnionRoom() != TRUE)
|
||||
{
|
||||
AddTMContextMenu(&sTMCaseDynamicResources->contextMenuWindowId, 0);
|
||||
sTMCaseDynamicResources->menuActionIndices = sMenuActionIndices_Field;
|
||||
@@ -837,7 +837,7 @@ static void Task_TMContextMenu_HandleInput(u8 taskId)
|
||||
static void TMHMContextMenuAction_Use(u8 taskId)
|
||||
{
|
||||
RemoveTMContextMenu(&sTMCaseDynamicResources->contextMenuWindowId);
|
||||
sub_810F4D8(2, 0);
|
||||
ClearMenuWindow(2, 0);
|
||||
ClearWindowTilemap(2);
|
||||
PutWindowTilemap(0);
|
||||
schedule_bg_copy_tilemap_to_vram(0);
|
||||
@@ -859,7 +859,7 @@ static void TMHMContextMenuAction_Give(u8 taskId)
|
||||
s16 * data = gTasks[taskId].data;
|
||||
u16 itemId = BagGetItemIdByPocketPosition(POCKET_TM_CASE, data[1]);
|
||||
RemoveTMContextMenu(&sTMCaseDynamicResources->contextMenuWindowId);
|
||||
sub_810F4D8(2, 0);
|
||||
ClearMenuWindow(2, 0);
|
||||
ClearWindowTilemap(2);
|
||||
PutWindowTilemap(1);
|
||||
PutWindowTilemap(4);
|
||||
@@ -912,7 +912,7 @@ static void Subtask_CloseContextMenuAndReturnToMain(u8 taskId)
|
||||
DestroyListMenu(data[0], &sTMCaseStaticResources.scrollOffset, &sTMCaseStaticResources.selectedRow);
|
||||
data[0] = ListMenuInit(&gMultiuseListMenuTemplate, sTMCaseStaticResources.scrollOffset, sTMCaseStaticResources.selectedRow);
|
||||
PrintListMenuCursorByID_WithColorIdx(data[0], 1);
|
||||
sub_810F260(6, 0);
|
||||
ClearMenuWindow_BorderThickness2(6, 0);
|
||||
ClearWindowTilemap(6);
|
||||
PutWindowTilemap(1);
|
||||
PutWindowTilemap(4);
|
||||
@@ -927,7 +927,7 @@ static void TMHMContextMenuAction_Exit(u8 taskId)
|
||||
s16 * data = gTasks[taskId].data;
|
||||
|
||||
RemoveTMContextMenu(&sTMCaseDynamicResources->contextMenuWindowId);
|
||||
sub_810F4D8(2, 0);
|
||||
ClearMenuWindow(2, 0);
|
||||
ClearWindowTilemap(2);
|
||||
PutWindowTilemap(0);
|
||||
PrintListMenuCursorByID_WithColorIdx(data[0], 1);
|
||||
@@ -1016,8 +1016,8 @@ static void Task_SaleOfTMsCancelled(u8 taskId)
|
||||
{
|
||||
s16 * data = gTasks[taskId].data;
|
||||
|
||||
sub_810F4D8(8, 0);
|
||||
sub_810F260(6, 0);
|
||||
ClearMenuWindow(8, 0);
|
||||
ClearMenuWindow_BorderThickness2(6, 0);
|
||||
PutWindowTilemap(0);
|
||||
PutWindowTilemap(1);
|
||||
PutWindowTilemap(3);
|
||||
@@ -1065,7 +1065,7 @@ static void Task_QuantitySelect_HandleInput(u8 taskId)
|
||||
else if (JOY_NEW(A_BUTTON))
|
||||
{
|
||||
PlaySE(SE_SELECT);
|
||||
sub_810F4D8(7, 0);
|
||||
ClearMenuWindow(7, 0);
|
||||
schedule_bg_copy_tilemap_to_vram(0);
|
||||
schedule_bg_copy_tilemap_to_vram(1);
|
||||
RemoveTMCaseScrollIndicatorArrowPair();
|
||||
@@ -1074,9 +1074,9 @@ static void Task_QuantitySelect_HandleInput(u8 taskId)
|
||||
else if (JOY_NEW(B_BUTTON))
|
||||
{
|
||||
PlaySE(SE_SELECT);
|
||||
sub_810F4D8(7, 0);
|
||||
sub_810F4D8(8, 0);
|
||||
sub_810F260(6, 0);
|
||||
ClearMenuWindow(7, 0);
|
||||
ClearMenuWindow(8, 0);
|
||||
ClearMenuWindow_BorderThickness2(6, 0);
|
||||
PutWindowTilemap(3);
|
||||
PutWindowTilemap(0);
|
||||
PutWindowTilemap(1);
|
||||
@@ -1123,8 +1123,8 @@ static void Task_AfterSale_ReturnToList(u8 taskId)
|
||||
if (JOY_NEW(A_BUTTON) || JOY_NEW(B_BUTTON))
|
||||
{
|
||||
PlaySE(SE_SELECT);
|
||||
sub_810F4D8(8, 0);
|
||||
sub_810F260(6, 0);
|
||||
ClearMenuWindow(8, 0);
|
||||
ClearMenuWindow_BorderThickness2(6, 0);
|
||||
PutWindowTilemap(1);
|
||||
PutWindowTilemap(3);
|
||||
PutWindowTilemap(4);
|
||||
@@ -1249,7 +1249,7 @@ static void Task_TMCaseDude_Playback(u8 taskId)
|
||||
{
|
||||
FillBG2RowWithPalette_2timesNplus1(0);
|
||||
BeginNormalPaletteFade(0x00000400, 0, 6, 0, 0);
|
||||
sub_810F260(6, 0);
|
||||
ClearMenuWindow_BorderThickness2(6, 0);
|
||||
schedule_bg_copy_tilemap_to_vram(1);
|
||||
data[8]++;
|
||||
}
|
||||
@@ -1297,9 +1297,9 @@ static void InitWindowTemplatesAndPals(void)
|
||||
|
||||
InitWindows(sWindowTemplates);
|
||||
DeactivateAllTextPrinters();
|
||||
sub_815001C(0, 0x5B, 0xE0);
|
||||
sub_814FEAC(0, 0x64, 0xB0);
|
||||
sub_814FF2C(0, 0x78, 0xD0);
|
||||
TextWindow_SetUserSelectedFrame(0, 0x5B, 0xE0);
|
||||
TextWindow_SetBubbleFrame_841F1C8(0, 0x64, 0xB0);
|
||||
TextWindow_SetStdFrame0_WithPal(0, 0x78, 0xD0);
|
||||
LoadPalette(gTMCaseMainWindowPalette, 0xF0, 0x20);
|
||||
LoadPalette(gTMCaseMainWindowPalette, 0xA0, 0x20);
|
||||
LoadPalette(sPal3Override, 0xF6, 0x04);
|
||||
@@ -1420,7 +1420,7 @@ static u8 AddTMContextMenu(u8 * a0, u8 a1)
|
||||
|
||||
static void RemoveTMContextMenu(u8 * a0)
|
||||
{
|
||||
sub_810F4D8(*a0, FALSE);
|
||||
ClearMenuWindow(*a0, FALSE);
|
||||
ClearWindowTilemap(*a0);
|
||||
RemoveWindow(*a0);
|
||||
schedule_bg_copy_tilemap_to_vram(0);
|
||||
|
||||
+1
-1
@@ -1299,7 +1299,7 @@ void sub_815E720(void)
|
||||
void sub_815E88C(void)
|
||||
{
|
||||
u8 windowId = VarGet(VAR_0x4001);
|
||||
sub_810F4D8(windowId, TRUE);
|
||||
ClearMenuWindow(windowId, TRUE);
|
||||
RemoveWindow(windowId);
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -98,7 +98,7 @@ void sub_815EFBC(u8 windowId, u32 powder, u8 x, u8 y, u8 speed)
|
||||
void sub_815F014(u8 windowId, u16 baseBlock, u8 palette, u32 powder)
|
||||
{
|
||||
SetWindowBorderStyle(windowId, FALSE, baseBlock, palette);
|
||||
AddTextPrinterParameterized(windowId, 0, gUnknown_8416655, 0, 0, -1, NULL);
|
||||
AddTextPrinterParameterized(windowId, 0, gOtherText_Powder, 0, 0, -1, NULL);
|
||||
sub_815EFBC(windowId, powder, 39, 12, 0);
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ void sub_815F094(void)
|
||||
gUnknown_203F464 = AddWindow(&template2);
|
||||
FillWindowPixelBuffer(gUnknown_203F464, 0);
|
||||
PutWindowTilemap(gUnknown_203F464);
|
||||
sub_814FF2C(gUnknown_203F464, 0x21D, 0xD0);
|
||||
TextWindow_SetStdFrame0_WithPal(gUnknown_203F464, 0x21D, 0xD0);
|
||||
sub_815F014(gUnknown_203F464, 0x21D, 0xD, sub_815EFA0());
|
||||
}
|
||||
}
|
||||
@@ -127,6 +127,6 @@ void sub_815F094(void)
|
||||
void sub_815F114(void)
|
||||
{
|
||||
ClearWindowTilemap(gUnknown_203F464);
|
||||
sub_810F4D8(gUnknown_203F464, 1);
|
||||
ClearMenuWindow(gUnknown_203F464, 1);
|
||||
RemoveWindow(gUnknown_203F464);
|
||||
}
|
||||
|
||||
+1
-1
@@ -814,7 +814,7 @@ void Task_VsSeeker_0(u8 taskId)
|
||||
}
|
||||
else if (respval == 2)
|
||||
{
|
||||
sub_80A2294(4, 0, gSpecialVar_ItemId, 0xffff);
|
||||
ItemUse_SetQuestLogEvent(4, 0, gSpecialVar_ItemId, 0xffff);
|
||||
FieldEffectStart(FLDEFF_UNK_41); // TODO: name this enum
|
||||
gTasks[taskId].func = Task_VsSeeker_1;
|
||||
gTasks[taskId].data[0] = 15;
|
||||
|
||||
+1
-1
@@ -1069,7 +1069,7 @@ _08004046:\n\
|
||||
}
|
||||
#endif // NONMATCHING
|
||||
|
||||
void CallWindowFunction(u8 windowId, void ( *func)(u8, u8, u8, u8, u8, u8))
|
||||
void CallWindowFunction(u8 windowId, WindowFunc func)
|
||||
{
|
||||
struct WindowTemplate window = gWindows[windowId].window;
|
||||
func(window.bg, window.tilemapLeft, window.tilemapTop, window.width, window.height, window.paletteNum);
|
||||
|
||||
Reference in New Issue
Block a user