Document main_menu state machine, name window constants
The new names for the constants (and newly named functions) give a much better understanding of what the window system is trying to do.
This commit is contained in:
+4
-4
@@ -2926,7 +2926,7 @@ void sub_80BEA24(u8 taskId)
|
||||
case 1:
|
||||
DecompressAndLoadBgGfxUsingHeap(3, gPokedexMenu_Gfx, 0x2000, 0, 0);
|
||||
CopyToBgTilemapBuffer(3, gPokedexTilemap_DescriptionScreen, 0, 0);
|
||||
FillWindowPixelBuffer(0, 0);
|
||||
FillWindowPixelBuffer(0, PIXEL_BUFFER_TRANSPARENT);
|
||||
PutWindowTilemap(0);
|
||||
PutWindowTilemap(1);
|
||||
sub_80C0D30(1, sPokedexListItem->dexNum);
|
||||
@@ -3221,7 +3221,7 @@ void sub_80BF250(u8 taskId)
|
||||
case 1:
|
||||
DecompressAndLoadBgGfxUsingHeap(3, &gPokedexMenu_Gfx, 0x2000, 0, 0);
|
||||
CopyToBgTilemapBuffer(3, &gPokedexTilemap_CryScreen, 0, 0);
|
||||
FillWindowPixelBuffer(0, 0);
|
||||
FillWindowPixelBuffer(0, PIXEL_BUFFER_TRANSPARENT);
|
||||
PutWindowTilemap(0);
|
||||
PutWindowTilemap(3);
|
||||
PutWindowTilemap(2);
|
||||
@@ -3415,7 +3415,7 @@ void sub_80BF82C(u8 taskId)
|
||||
case 1:
|
||||
DecompressAndLoadBgGfxUsingHeap(3, gPokedexMenu_Gfx, 0x2000, 0, 0);
|
||||
CopyToBgTilemapBuffer(3, gPokedexTilemap_SizeScreen, 0, 0);
|
||||
FillWindowPixelBuffer(0, 0);
|
||||
FillWindowPixelBuffer(0, PIXEL_BUFFER_TRANSPARENT);
|
||||
PutWindowTilemap(0);
|
||||
gMain.state++;
|
||||
break;
|
||||
@@ -3762,7 +3762,7 @@ void sub_80BFE38(u8 taskId)
|
||||
case 1:
|
||||
DecompressAndLoadBgGfxUsingHeap(3, gPokedexMenu_Gfx, 0x2000, 0, 0);
|
||||
CopyToBgTilemapBuffer(3, gPokedexTilemap_DescriptionScreen, 0, 0);
|
||||
FillWindowPixelBuffer(0, 0);
|
||||
FillWindowPixelBuffer(0, PIXEL_BUFFER_TRANSPARENT);
|
||||
PutWindowTilemap(0);
|
||||
PutWindowTilemap(1);
|
||||
sub_80C0D30(1, gTasks[taskId].data[1]);
|
||||
|
||||
Reference in New Issue
Block a user