Clarify party menu slot tilemaps

This commit is contained in:
GriffinR
2023-02-07 15:07:50 -05:00
parent 83a266f547
commit 4bc2f88213
7 changed files with 24 additions and 54 deletions
+1
View File
@@ -0,0 +1 @@
 !!!!!!!!" !!!!!!!!" !!!!!!!!"(;<::::::=.////////0
+1
View File
@@ -0,0 +1 @@
 !!!!!!!!" !!!!!!!!" !!!!!!!!"())))))))*.////////0
+1
View File
@@ -0,0 +1 @@
+,,,,,,,,,,,,,,,,-1!!!!!!!!453333336788888888888888889
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
+,,,,,,,,,,,,,,,,-1!!!!!!!!!!!!!!!!2788888888888888889
+8 -42
View File
@@ -549,48 +549,14 @@ static const struct WindowTemplate sFieldMoveDescriptionWindowTemplate =
.baseBlock = 0x373, .baseBlock = 0x373,
}; };
static const u8 sMainSlotTileNums[] = // Plain tilemaps for party menu slots.
{ // The versions with no HP bar are used by eggs, and in certain displays like registering at a battle facility.
24, 25, 25, 25, 25, 25, 25, 25, 25, 26, // There is no empty version of the main slot because it shouldn't ever be empty.
32, 33, 33, 33, 33, 33, 33, 33, 33, 34, static const u8 sSlotTilemap_Main[] = INCBIN_U8("graphics/party_menu/slot_main.bin");
32, 33, 33, 33, 33, 33, 33, 33, 33, 34, static const u8 sSlotTilemap_MainNoHP[] = INCBIN_U8("graphics/party_menu/slot_main_no_hp.bin");
32, 33, 33, 33, 33, 33, 33, 33, 33, 34, static const u8 sSlotTilemap_Wide[] = INCBIN_U8("graphics/party_menu/slot_wide.bin");
40, 59, 60, 58, 58, 58, 58, 58, 58, 61, static const u8 sSlotTilemap_WideNoHP[] = INCBIN_U8("graphics/party_menu/slot_wide_no_hp.bin");
15, 16, 16, 16, 16, 16, 16, 16, 16, 17, static const u8 sSlotTilemap_WideEmpty[] = INCBIN_U8("graphics/party_menu/slot_wide_empty.bin");
46, 47, 47, 47, 47, 47, 47, 47, 47, 48,
};
static const u8 sMainSlotTileNums_Egg[] =
{
24, 25, 25, 25, 25, 25, 25, 25, 25, 26,
32, 33, 33, 33, 33, 33, 33, 33, 33, 34,
32, 33, 33, 33, 33, 33, 33, 33, 33, 34,
32, 33, 33, 33, 33, 33, 33, 33, 33, 34,
40, 41, 41, 41, 41, 41, 41, 41, 41, 42,
15, 16, 16, 16, 16, 16, 16, 16, 16, 17,
46, 47, 47, 47, 47, 47, 47, 47, 47, 48,
};
static const u8 sOtherSlotsTileNums[] =
{
43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45,
49, 33, 33, 33, 33, 33, 33, 33, 33, 52, 53, 51, 51, 51, 51, 51, 51, 54,
55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57,
};
static const u8 sOtherSlotsTileNums_Egg[] =
{
43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45,
49, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 50,
55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57,
};
static const u8 sEmptySlotTileNums[] =
{
21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23,
30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31,
37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39,
};
static const u8 sGenderPalOffsets[] = {11, 12}; static const u8 sGenderPalOffsets[] = {11, 12};
+12 -12
View File
@@ -110,7 +110,7 @@ enum
struct PartyMenuBoxInfoRects struct PartyMenuBoxInfoRects
{ {
void (*blitFunc)(u8 windowId, u8 x, u8 y, u8 width, u8 height, bool8 isEgg); void (*blitFunc)(u8 windowId, u8 x, u8 y, u8 width, u8 height, bool8 hideHP);
u8 dimensions[24]; u8 dimensions[24];
u8 descTextLeft; u8 descTextLeft;
u8 descTextTop; u8 descTextTop;
@@ -145,8 +145,8 @@ struct PartyMenuBox
u8 statusSpriteId; u8 statusSpriteId;
}; };
static void BlitBitmapToPartyWindow_LeftColumn(u8 windowId, u8 x, u8 y, u8 width, u8 height, bool8 isEgg); static void BlitBitmapToPartyWindow_LeftColumn(u8 windowId, u8 x, u8 y, u8 width, u8 height, bool8 hideHP);
static void BlitBitmapToPartyWindow_RightColumn(u8 windowId, u8 x, u8 y, u8 width, u8 height, bool8 isEgg); static void BlitBitmapToPartyWindow_RightColumn(u8 windowId, u8 x, u8 y, u8 width, u8 height, bool8 hideHP);
static void CursorCB_Summary(u8 taskId); static void CursorCB_Summary(u8 taskId);
static void CursorCB_Switch(u8 taskId); static void CursorCB_Switch(u8 taskId);
static void CursorCB_Cancel1(u8 taskId); static void CursorCB_Cancel1(u8 taskId);
@@ -2184,35 +2184,35 @@ static void BlitBitmapToPartyWindow(u8 windowId, const u8 *tileNums, u8 menuBoxW
} }
} }
static void BlitBitmapToPartyWindow_LeftColumn(u8 windowId, u8 x, u8 y, u8 width, u8 height, u8 isEgg) static void BlitBitmapToPartyWindow_LeftColumn(u8 windowId, u8 x, u8 y, u8 width, u8 height, bool8 hideHP)
{ {
if (width == 0 && height == 0) if (width == 0 && height == 0)
{ {
width = 10; width = 10;
height = 7; height = 7;
} }
if (!isEgg) if (!hideHP)
BlitBitmapToPartyWindow(windowId, sMainSlotTileNums, 10, x, y, width, height); BlitBitmapToPartyWindow(windowId, sSlotTilemap_Main, 10, x, y, width, height);
else else
BlitBitmapToPartyWindow(windowId, sMainSlotTileNums_Egg, 10, x, y, width, height); BlitBitmapToPartyWindow(windowId, sSlotTilemap_MainNoHP, 10, x, y, width, height);
} }
static void BlitBitmapToPartyWindow_RightColumn(u8 windowId, u8 x, u8 y, u8 width, u8 height, u8 isEgg) static void BlitBitmapToPartyWindow_RightColumn(u8 windowId, u8 x, u8 y, u8 width, u8 height, bool8 hideHP)
{ {
if (width == 0 && height == 0) if (width == 0 && height == 0)
{ {
width = 18; width = 18;
height = 3; height = 3;
} }
if (!isEgg) if (!hideHP)
BlitBitmapToPartyWindow(windowId, sOtherSlotsTileNums, 18, x, y, width, height); BlitBitmapToPartyWindow(windowId, sSlotTilemap_Wide, 18, x, y, width, height);
else else
BlitBitmapToPartyWindow(windowId, sOtherSlotsTileNums_Egg, 18, x, y, width, height); BlitBitmapToPartyWindow(windowId, sSlotTilemap_WideNoHP, 18, x, y, width, height);
} }
static void DrawEmptySlot(u8 windowId) static void DrawEmptySlot(u8 windowId)
{ {
BlitBitmapToPartyWindow(windowId, sEmptySlotTileNums, 18, 0, 0, 18, 3); BlitBitmapToPartyWindow(windowId, sSlotTilemap_WideEmpty, 18, 0, 0, 18, 3);
} }
#define LOAD_PARTY_BOX_PAL(paletteIds, paletteOffsets) \ #define LOAD_PARTY_BOX_PAL(paletteIds, paletteOffsets) \