mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
Clean up pokemon_storage_system graphics
This commit is contained in:
parent
5cbe572607
commit
ca9bc34bea
1
graphics/pokemon_storage/close_box_button.bin
Executable file
1
graphics/pokemon_storage/close_box_button.bin
Executable file
@ -0,0 +1 @@
|
|||||||
|
LMNOpqrst\]^_€<01>‚<01>„uvwxyz{|}…†‡<01>‰Š‹ŚŤ
|
1
graphics/pokemon_storage/party_slot_empty.bin
Executable file
1
graphics/pokemon_storage/party_slot_empty.bin
Executable file
@ -0,0 +1 @@
|
|||||||
|
CDDESTTUcdde
|
1
graphics/pokemon_storage/party_slot_filled.bin
Executable file
1
graphics/pokemon_storage/party_slot_filled.bin
Executable file
@ -0,0 +1 @@
|
|||||||
|
@AABPQQR`aab
|
1
graphics/pokemon_storage/pkmn_data.bin
Executable file
1
graphics/pokemon_storage/pkmn_data.bin
Executable file
@ -0,0 +1 @@
|
|||||||
|
!!!!!!!!!!!!!!!!
|
@ -946,45 +946,26 @@ static const union AffineAnimCmd *const sAffineAnims_ChooseBoxMenu[] =
|
|||||||
static const u8 sChooseBoxMenu_TextColors[] = {TEXT_COLOR_RED, TEXT_DYNAMIC_COLOR_6, TEXT_DYNAMIC_COLOR_5};
|
static const u8 sChooseBoxMenu_TextColors[] = {TEXT_COLOR_RED, TEXT_DYNAMIC_COLOR_6, TEXT_DYNAMIC_COLOR_5};
|
||||||
static const u8 sText_OutOf30[] = _("/30");
|
static const u8 sText_OutOf30[] = _("/30");
|
||||||
|
|
||||||
static const u16 sChooseBoxMenu_Pal[] = INCBIN_U16("graphics/pokemon_storage/box_selection_popup.gbapal");
|
static const u16 sChooseBoxMenu_Pal[] = INCBIN_U16("graphics/pokemon_storage/box_selection_popup.gbapal");
|
||||||
static const u8 sChooseBoxMenuCenter_Gfx[] = INCBIN_U8("graphics/pokemon_storage/box_selection_popup_center.4bpp");
|
static const u8 sChooseBoxMenuCenter_Gfx[] = INCBIN_U8("graphics/pokemon_storage/box_selection_popup_center.4bpp");
|
||||||
static const u8 sChooseBoxMenuSides_Gfx[] = INCBIN_U8("graphics/pokemon_storage/box_selection_popup_sides.4bpp");
|
static const u8 sChooseBoxMenuSides_Gfx[] = INCBIN_U8("graphics/pokemon_storage/box_selection_popup_sides.4bpp");
|
||||||
static const u32 sScrollingBg_Gfx[] = INCBIN_U32("graphics/pokemon_storage/scrolling_bg.4bpp.lz");
|
static const u32 sScrollingBg_Gfx[] = INCBIN_U32("graphics/pokemon_storage/scrolling_bg.4bpp.lz");
|
||||||
static const u32 sScrollingBg_Tilemap[] = INCBIN_U32("graphics/pokemon_storage/scrolling_bg.bin.lz");
|
static const u32 sScrollingBg_Tilemap[] = INCBIN_U32("graphics/pokemon_storage/scrolling_bg.bin.lz");
|
||||||
static const u16 sDisplayMenu_Pal[] = INCBIN_U16("graphics/pokemon_storage/display_menu.gbapal"); // Unused
|
static const u16 sDisplayMenu_Pal[] = INCBIN_U16("graphics/pokemon_storage/display_menu.gbapal"); // Unused
|
||||||
static const u32 sDisplayMenu_Tilemap[] = INCBIN_U32("graphics/pokemon_storage/display_menu.bin.lz");
|
static const u32 sDisplayMenu_Tilemap[] = INCBIN_U32("graphics/pokemon_storage/display_menu.bin.lz");
|
||||||
|
static const u16 sPkmnData_Tilemap[] = INCBIN_U16("graphics/pokemon_storage/pkmn_data.bin");
|
||||||
static const u16 sPkmnData_Tilemap[] =
|
|
||||||
{
|
|
||||||
0x0101, 0x0102, 0x0103, 0x0104, 0x0105, 0x0106, 0x0107, 0x0108, 0x0111, 0x0112, 0x0113, 0x0114, 0x0115, 0x0116, 0x0117, 0x0118,
|
|
||||||
0x2101, 0x2102, 0x2103, 0x2104, 0x2105, 0x2106, 0x2107, 0x2108, 0x2111, 0x2112, 0x2113, 0x2114, 0x2115, 0x2116, 0x2117, 0x2118,
|
|
||||||
};
|
|
||||||
|
|
||||||
// sInterface_Pal - parts of the display frame, "PkmnData"'s normal color, Close Box
|
// sInterface_Pal - parts of the display frame, "PkmnData"'s normal color, Close Box
|
||||||
static const u16 sInterface_Pal[] = INCBIN_U16("graphics/pokemon_storage/interface.gbapal");
|
static const u16 sInterface_Pal[] = INCBIN_U16("graphics/pokemon_storage/interface.gbapal");
|
||||||
static const u16 sPkmnDataGray_Pal[] = INCBIN_U16("graphics/pokemon_storage/pkmn_data_gray.gbapal");
|
static const u16 sPkmnDataGray_Pal[] = INCBIN_U16("graphics/pokemon_storage/pkmn_data_gray.gbapal");
|
||||||
static const u16 sBg_Pal[] = INCBIN_U16("graphics/pokemon_storage/bg.gbapal");
|
static const u16 sBg_Pal[] = INCBIN_U16("graphics/pokemon_storage/bg.gbapal");
|
||||||
static const u16 sBgMoveItems_Pal[] = INCBIN_U16("graphics/pokemon_storage/bg_move_items.gbapal");
|
static const u16 sBgMoveItems_Pal[] = INCBIN_U16("graphics/pokemon_storage/bg_move_items.gbapal");
|
||||||
|
static const u16 sCloseBoxButton_Tilemap[] = INCBIN_U16("graphics/pokemon_storage/close_box_button.bin");
|
||||||
static const u16 sCloseBoxButton_Tilemap[] =
|
static const u16 sPartySlotFilled_Tilemap[] = INCBIN_U16("graphics/pokemon_storage/party_slot_filled.bin");
|
||||||
{
|
static const u16 sPartySlotEmpty_Tilemap[] = INCBIN_U16("graphics/pokemon_storage/party_slot_empty.bin");
|
||||||
0x014c, 0x014d, 0x014e, 0x014f, 0x0170, 0x0171, 0x0172, 0x0173, 0x0174, 0x015c, 0x015d, 0x015e, 0x015f, 0x0180, 0x0181, 0x0182,
|
static const u16 sWaveform_Pal[] = INCBIN_U16("graphics/pokemon_storage/waveform.gbapal");
|
||||||
0x0183, 0x0184, 0x0175, 0x0176, 0x0177, 0x0178, 0x0179, 0x017a, 0x017b, 0x017c, 0x017d, 0x0185, 0x0186, 0x0187, 0x0188, 0x0189,
|
static const u32 sWaveform_Gfx[] = INCBIN_U32("graphics/pokemon_storage/waveform.4bpp");
|
||||||
0x018a, 0x018b, 0x018c, 0x018d
|
static const u16 sUnused_Pal[] = INCBIN_U16("graphics/pokemon_storage/unused.gbapal");
|
||||||
};
|
static const u16 sTextWindows_Pal[] = INCBIN_U16("graphics/pokemon_storage/text_windows.gbapal");
|
||||||
static const u16 sPartySlotFilled_Tilemap[] =
|
|
||||||
{
|
|
||||||
0x1140, 0x1141, 0x1141, 0x1142, 0x1150, 0x1151, 0x1151, 0x1152, 0x1160, 0x1161, 0x1161, 0x1162,
|
|
||||||
};
|
|
||||||
static const u16 sPartySlotEmpty_Tilemap[] =
|
|
||||||
{
|
|
||||||
0x1143, 0x1144, 0x1144, 0x1145, 0x1153, 0x1154, 0x1154, 0x1155, 0x1163, 0x1164, 0x1164, 0x1165,
|
|
||||||
};
|
|
||||||
|
|
||||||
static const u16 sWaveform_Pal[] = INCBIN_U16("graphics/pokemon_storage/waveform.gbapal");
|
|
||||||
static const u32 sWaveform_Gfx[] = INCBIN_U32("graphics/pokemon_storage/waveform.4bpp");
|
|
||||||
static const u16 sUnused_Pal[] = INCBIN_U16("graphics/pokemon_storage/unused.gbapal");
|
|
||||||
static const u16 sUnknown_Pal[] = INCBIN_U16("graphics/pokemon_storage/unknown.gbapal");
|
|
||||||
|
|
||||||
static const struct WindowTemplate sWindowTemplates[] =
|
static const struct WindowTemplate sWindowTemplates[] =
|
||||||
{
|
{
|
||||||
@ -1357,7 +1338,7 @@ void DrawTextWindowAndBufferTiles(const u8 *string, void *dst, u8 zero1, u8 zero
|
|||||||
windowId = AddWindow(&winTemplate);
|
windowId = AddWindow(&winTemplate);
|
||||||
FillWindowPixelBuffer(windowId, PIXEL_FILL(zero2));
|
FillWindowPixelBuffer(windowId, PIXEL_FILL(zero2));
|
||||||
tileData1 = (u8*) GetWindowAttribute(windowId, WINDOW_TILE_DATA);
|
tileData1 = (u8*) GetWindowAttribute(windowId, WINDOW_TILE_DATA);
|
||||||
tileData2 = (winTemplate.width * 32) + tileData1;
|
tileData2 = (winTemplate.width * TILE_SIZE_4BPP) + tileData1;
|
||||||
|
|
||||||
if (!zero1)
|
if (!zero1)
|
||||||
txtColor[0] = TEXT_COLOR_TRANSPARENT;
|
txtColor[0] = TEXT_COLOR_TRANSPARENT;
|
||||||
@ -1393,7 +1374,7 @@ void DrawTextWindowAndBufferTiles(const u8 *string, void *dst, u8 zero1, u8 zero
|
|||||||
// Unused
|
// Unused
|
||||||
static void UnusedDrawTextWindow(const u8 *string, void *dst, u16 offset, u8 bgColor, u8 fgColor, u8 shadowColor)
|
static void UnusedDrawTextWindow(const u8 *string, void *dst, u16 offset, u8 bgColor, u8 fgColor, u8 shadowColor)
|
||||||
{
|
{
|
||||||
u32 tileSize;
|
u32 tilesSize;
|
||||||
u8 windowId;
|
u8 windowId;
|
||||||
u8 txtColor[3];
|
u8 txtColor[3];
|
||||||
u8 *tileData1, *tileData2;
|
u8 *tileData1, *tileData2;
|
||||||
@ -1401,17 +1382,17 @@ static void UnusedDrawTextWindow(const u8 *string, void *dst, u16 offset, u8 bgC
|
|||||||
|
|
||||||
winTemplate.width = StringLength_Multibyte(string);
|
winTemplate.width = StringLength_Multibyte(string);
|
||||||
winTemplate.height = 2;
|
winTemplate.height = 2;
|
||||||
tileSize = winTemplate.width * 32;
|
tilesSize = winTemplate.width * TILE_SIZE_4BPP;
|
||||||
windowId = AddWindow(&winTemplate);
|
windowId = AddWindow(&winTemplate);
|
||||||
FillWindowPixelBuffer(windowId, PIXEL_FILL(bgColor));
|
FillWindowPixelBuffer(windowId, PIXEL_FILL(bgColor));
|
||||||
tileData1 = (u8*) GetWindowAttribute(windowId, WINDOW_TILE_DATA);
|
tileData1 = (u8*) GetWindowAttribute(windowId, WINDOW_TILE_DATA);
|
||||||
tileData2 = (winTemplate.width * 32) + tileData1;
|
tileData2 = (winTemplate.width * TILE_SIZE_4BPP) + tileData1;
|
||||||
txtColor[0] = bgColor;
|
txtColor[0] = bgColor;
|
||||||
txtColor[1] = fgColor;
|
txtColor[1] = fgColor;
|
||||||
txtColor[2] = shadowColor;
|
txtColor[2] = shadowColor;
|
||||||
AddTextPrinterParameterized4(windowId, FONT_NORMAL, 0, 2, 0, 0, txtColor, TEXT_SKIP_DRAW, string);
|
AddTextPrinterParameterized4(windowId, FONT_NORMAL, 0, 2, 0, 0, txtColor, TEXT_SKIP_DRAW, string);
|
||||||
CpuCopy16(tileData1, dst, tileSize);
|
CpuCopy16(tileData1, dst, tilesSize);
|
||||||
CpuCopy16(tileData2, dst + offset, tileSize);
|
CpuCopy16(tileData2, dst + offset, tilesSize);
|
||||||
RemoveWindow(windowId);
|
RemoveWindow(windowId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3870,7 +3851,7 @@ static void InitPalettesAndSprites(void)
|
|||||||
{
|
{
|
||||||
LoadPalette(sInterface_Pal, 0, sizeof(sInterface_Pal));
|
LoadPalette(sInterface_Pal, 0, sizeof(sInterface_Pal));
|
||||||
LoadPalette(sPkmnDataGray_Pal, 0x20, sizeof(sPkmnDataGray_Pal));
|
LoadPalette(sPkmnDataGray_Pal, 0x20, sizeof(sPkmnDataGray_Pal));
|
||||||
LoadPalette(sUnknown_Pal, 0xF0, sizeof(sUnknown_Pal));
|
LoadPalette(sTextWindows_Pal, 0xF0, sizeof(sTextWindows_Pal));
|
||||||
if (sStorage->boxOption != OPTION_MOVE_ITEMS)
|
if (sStorage->boxOption != OPTION_MOVE_ITEMS)
|
||||||
LoadPalette(sBg_Pal, 0x30, sizeof(sBg_Pal));
|
LoadPalette(sBg_Pal, 0x30, sizeof(sBg_Pal));
|
||||||
else
|
else
|
||||||
@ -3978,7 +3959,7 @@ static void CreateDisplayMonSprite(void)
|
|||||||
|
|
||||||
sStorage->displayMonSprite = &gSprites[spriteId];
|
sStorage->displayMonSprite = &gSprites[spriteId];
|
||||||
sStorage->displayMonPalOffset = palSlot * 16 + 0x100;
|
sStorage->displayMonPalOffset = palSlot * 16 + 0x100;
|
||||||
sStorage->displayMonTilePtr = (void*) OBJ_VRAM0 + tileStart * 32;
|
sStorage->displayMonTilePtr = (void*) OBJ_VRAM0 + tileStart * TILE_SIZE_4BPP;
|
||||||
} while (0);
|
} while (0);
|
||||||
|
|
||||||
if (sStorage->displayMonSprite == NULL)
|
if (sStorage->displayMonSprite == NULL)
|
||||||
@ -5138,7 +5119,7 @@ static u16 TryLoadMonIconTiles(u16 species)
|
|||||||
sStorage->iconSpeciesList[i] = species;
|
sStorage->iconSpeciesList[i] = species;
|
||||||
sStorage->numIconsPerSpecies[i]++;
|
sStorage->numIconsPerSpecies[i]++;
|
||||||
offset = 16 * i;
|
offset = 16 * i;
|
||||||
CpuCopy32(GetMonIconTiles(species, TRUE), (void*)(OBJ_VRAM0) + offset * 32, 0x200);
|
CpuCopy32(GetMonIconTiles(species, TRUE), (void*)(OBJ_VRAM0) + offset * TILE_SIZE_4BPP, 0x200);
|
||||||
|
|
||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
@ -8763,7 +8744,7 @@ static void CreateItemIconSprites(void)
|
|||||||
{
|
{
|
||||||
spriteSheet.tag = GFXTAG_ITEM_ICON_0 + i;
|
spriteSheet.tag = GFXTAG_ITEM_ICON_0 + i;
|
||||||
LoadCompressedSpriteSheet(&spriteSheet);
|
LoadCompressedSpriteSheet(&spriteSheet);
|
||||||
sStorage->itemIcons[i].tiles = GetSpriteTileStartByTag(spriteSheet.tag) * 32 + (void*)(OBJ_VRAM0);
|
sStorage->itemIcons[i].tiles = GetSpriteTileStartByTag(spriteSheet.tag) * TILE_SIZE_4BPP + (void*)(OBJ_VRAM0);
|
||||||
sStorage->itemIcons[i].palIndex = AllocSpritePalette(PALTAG_ITEM_ICON_0 + i);
|
sStorage->itemIcons[i].palIndex = AllocSpritePalette(PALTAG_ITEM_ICON_0 + i);
|
||||||
sStorage->itemIcons[i].palIndex *= 16;
|
sStorage->itemIcons[i].palIndex *= 16;
|
||||||
sStorage->itemIcons[i].palIndex += 0x100;
|
sStorage->itemIcons[i].palIndex += 0x100;
|
||||||
|
Loading…
Reference in New Issue
Block a user