From 3c22d5513045b50e54fe8aadbdd3b6608bafad36 Mon Sep 17 00:00:00 2001 From: TheXaman Date: Mon, 14 Jun 2021 19:18:06 +0200 Subject: [PATCH] form screen new navigation buttons and special case for Unown --- .../pokedex/HGSS_tilemap_evo_screen_PE.bin | Bin 1344 -> 1344 bytes .../pokedex/HGSS_tilemap_forms_screen.bin | Bin 1344 -> 1344 bytes graphics/pokedex/HGSS_tileset_menu2.png | Bin 855 -> 847 bytes src/pokedex.c | 14 +++++++++----- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/graphics/pokedex/HGSS_tilemap_evo_screen_PE.bin b/graphics/pokedex/HGSS_tilemap_evo_screen_PE.bin index 77ac6ad54f3e98fecd0ecc4f6f28cb3c1ffaa64c..5cabb2e65b814c1f6157fea2adae0e6f45cef910 100644 GIT binary patch delta 63 zcmX@Wb%1L_1B-A7LnsOiV+fx-pGA7|Iu;?}NQNkeXdr}(Ug7rr-L@`7IA&iV+h-L6+@B=~u QBol+*WJXr|$pWlw0AcVLNdN!< delta 79 qcmX@Wb%1L_70YBRCO7L~h7g8OAVelXd_pjUA#5@utNmmFRyF{!ybp>1 diff --git a/graphics/pokedex/HGSS_tileset_menu2.png b/graphics/pokedex/HGSS_tileset_menu2.png index 65018e3a0e6bb2d9de0e21fc11f2f0e64ec66f32..7c271984cbc2a7dba805a4509f726ded6387e6bb 100644 GIT binary patch delta 671 zcmV;Q0$}~u2G0hNEe8<`CduD7bCEQYe{)GhK~#90wUkY6<1h?`bp>HEYo8(T%nfpZ zqR6^C0X~7@m6wwf*u!Ib5oGBhDN+_?JIxPFCI-+dlbaGi2UY+;7e-pZp*XW|rNlK{|PXn70L}5jq%YN(0WQ_I|$gWV{Egf2`=O8T#Pz zX1Mvycpo6v#nynlMa70R7wh^M2QyA_;^gu~jgpS`^7xi4)cN-sWtfK1n#c3CFc$ zHs>W5J4wa*ZEdV^e` zD7x-WfKOm}<>llA_VAcq1X+4Wij+lJX_^MZHep1`Pa^qc=gKJXe#JjeVjLz(8B)r58x_FH9l+6y z0HhIvHW{+ER{+r*ReNbx+J9-5e+Yme&C|BC3P>FZa8`3Phg(|!t3;Gb3-B{>H)9dk z%(Mn2AWFZN8j$8Xr~~M%M!KpaNWuY@oCt?TlrqYIH*|pkbDu6xl5SpvO}bn&tTq9t z=q}c4?)Cas0C8&tNY^lDZo5-~4DtdoZwpW%3^3D>9F8dWalMWtyl+TZf6=uO>frpO zx%EkV9w5@i(tx~0MTRsM>H25~p&OLNiATXP642bJD=C81QZ3W1M-JW6%WYNBw`c7ll=ey N002ovPDHLkV1i=kG7ta& diff --git a/src/pokedex.c b/src/pokedex.c index 4479cb7cdf..8447a7c85c 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -7329,9 +7329,9 @@ static void EvoFormsPage_PrintAToggleUpdownEvos(void) if (sPokedexView->selectedScreen == EVO_SCREEN) { if (!HGSS_DECAPPED) - AddTextPrinterParameterized3(WIN_NAVIGATION_BUTTONS, 0, x, y, sStatsPageNavigationTextColor, 0, gText_EVO_Buttons_PE); + AddTextPrinterParameterized3(WIN_NAVIGATION_BUTTONS, 0, x+9, y, sStatsPageNavigationTextColor, 0, gText_EVO_Buttons_PE); else - AddTextPrinterParameterized3(WIN_NAVIGATION_BUTTONS, 0, x, y, sStatsPageNavigationTextColor, 0, gText_EVO_Buttons_Decapped_PE); + AddTextPrinterParameterized3(WIN_NAVIGATION_BUTTONS, 0, x+9, y, sStatsPageNavigationTextColor, 0, gText_EVO_Buttons_Decapped_PE); } else if (sPokedexView->selectedScreen == FORMS_SCREEN) { @@ -8231,6 +8231,10 @@ static void PrintForms(u8 taskId, u16 species) u8 base_y_offset = 9; u8 base_i = 0; u8 times = 0; + u8 y_offset_icons = 0; //For unown only + + if (species == SPECIES_UNOWN) + y_offset_icons = 8; StringCopy(gStringVar1, gSpeciesNames[species]); @@ -8248,11 +8252,11 @@ static void PrintForms(u8 taskId, u16 species) if (times < 7) gTasks[taskId].data[4+times] = CreateMonIcon(speciesForm, SpriteCB_MonIcon, 52 + 34*(times-1), 31, 4, 0); //Create pokemon sprite else if (times < 14) - gTasks[taskId].data[4+times] = CreateMonIcon(speciesForm, SpriteCB_MonIcon, 18 + 34*(times-7), 70, 4, 0); //Create pokemon sprite + gTasks[taskId].data[4+times] = CreateMonIcon(speciesForm, SpriteCB_MonIcon, 18 + 34*(times-7), 70 - y_offset_icons, 4, 0); //Create pokemon sprite else if (times < 21) - gTasks[taskId].data[4+times] = CreateMonIcon(speciesForm, SpriteCB_MonIcon, 18 + 34*(times-14), 104, 4, 0); //Create pokemon sprite + gTasks[taskId].data[4+times] = CreateMonIcon(speciesForm, SpriteCB_MonIcon, 18 + 34*(times-14), 104 - y_offset_icons, 4, 0); //Create pokemon sprite else - gTasks[taskId].data[4+times] = CreateMonIcon(speciesForm, SpriteCB_MonIcon, 18 + 34*(times-21), 138, 4, 0); //Create pokemon sprite + gTasks[taskId].data[4+times] = CreateMonIcon(speciesForm, SpriteCB_MonIcon, 18 + 34*(times-21), 138 - y_offset_icons, 4, 0); //Create pokemon sprite gSprites[gTasks[taskId].data[4+times]].oam.priority = 0; } }