new layout for evo screen and new buttons for the PE version
This commit is contained in:
parent
2d4a91f0b4
commit
6b8f40b3b1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 915 B After Width: | Height: | Size: 855 B |
@ -602,6 +602,8 @@ extern const u8 gText_Stats_eggGroup_UNDISCOVERED[];
|
||||
extern const u8 gText_Dex_SEEN[];
|
||||
extern const u8 gText_Dex_OWN[];
|
||||
|
||||
extern const u8 gText_EVO_Buttons_PE[];
|
||||
extern const u8 gText_EVO_Buttons_Decapped_PE[];
|
||||
extern const u8 gText_EVO_Name[];
|
||||
extern const u8 gText_EVO_FRIENDSHIP[];
|
||||
extern const u8 gText_EVO_FRIENDSHIP_DAY[];
|
||||
@ -636,6 +638,9 @@ extern const u8 gText_EVO_LEVEL_DARK_TYPE_MON_IN_PARTY[];
|
||||
extern const u8 gText_EVO_TRADE_SPECIFIC_MON[];
|
||||
extern const u8 gText_EVO_SPECIFIC_MAP[];
|
||||
extern const u8 gText_EVO_NONE[];
|
||||
|
||||
extern const u8 gText_FORMS_Buttons_PE[];
|
||||
extern const u8 gText_FORMS_Buttons_Decapped_PE[];
|
||||
extern const u8 gText_FORMS_NONE[];
|
||||
|
||||
|
||||
|
||||
@ -7320,6 +7320,31 @@ static void DestroySplitIcon(void)
|
||||
#endif
|
||||
|
||||
//PokedexPlus HGSS_Ui Evolution Page
|
||||
static const u8 sEvoFormsPageNavigationTextColor[] = {TEXT_COLOR_TRANSPARENT, TEXT_COLOR_WHITE, TEXT_COLOR_DARK_GREY};
|
||||
static void EvoFormsPage_PrintAToggleUpdownEvos(void)
|
||||
{
|
||||
u8 x = 9;
|
||||
u8 y = 0;
|
||||
#ifdef POKEMON_EXPANSION
|
||||
if (sPokedexView->selectedScreen == EVO_SCREEN)
|
||||
{
|
||||
if (!HGSS_DECAPPED)
|
||||
AddTextPrinterParameterized3(WIN_NAVIGATION_BUTTONS, 0, x, y, sStatsPageNavigationTextColor, 0, gText_EVO_Buttons_PE);
|
||||
else
|
||||
AddTextPrinterParameterized3(WIN_NAVIGATION_BUTTONS, 0, x, y, sStatsPageNavigationTextColor, 0, gText_EVO_Buttons_Decapped_PE);
|
||||
}
|
||||
else if (sPokedexView->selectedScreen == FORMS_SCREEN)
|
||||
{
|
||||
if (!HGSS_DECAPPED)
|
||||
AddTextPrinterParameterized3(WIN_NAVIGATION_BUTTONS, 0, x, y, sStatsPageNavigationTextColor, 0, gText_FORMS_Buttons_PE);
|
||||
else
|
||||
AddTextPrinterParameterized3(WIN_NAVIGATION_BUTTONS, 0, x, y, sStatsPageNavigationTextColor, 0, gText_FORMS_Buttons_Decapped_PE);
|
||||
}
|
||||
// DrawKeypadIcon(WIN_NAVIGATION_BUTTONS, 10, 5, 0); //(u8 windowId, u8 keypadIconId, u16 x, u16 y)
|
||||
PutWindowTilemap(WIN_NAVIGATION_BUTTONS);
|
||||
CopyWindowToVram(WIN_NAVIGATION_BUTTONS, 3);
|
||||
#endif
|
||||
}
|
||||
static void Task_LoadEvolutionScreen(u8 taskId)
|
||||
{
|
||||
switch (gMain.state)
|
||||
@ -7347,6 +7372,9 @@ static void Task_LoadEvolutionScreen(u8 taskId)
|
||||
FillWindowPixelBuffer(WIN_INFO, PIXEL_FILL(0));
|
||||
PutWindowTilemap(WIN_INFO);
|
||||
CopyWindowToVram(WIN_INFO, 3);
|
||||
FillWindowPixelBuffer(WIN_NAVIGATION_BUTTONS, PIXEL_FILL(0));
|
||||
PutWindowTilemap(WIN_NAVIGATION_BUTTONS);
|
||||
CopyWindowToVram(WIN_NAVIGATION_BUTTONS, 3);
|
||||
CopyBgTilemapBufferToVram(1);
|
||||
CopyBgTilemapBufferToVram(2);
|
||||
CopyBgTilemapBufferToVram(3);
|
||||
@ -7370,6 +7398,7 @@ static void Task_LoadEvolutionScreen(u8 taskId)
|
||||
gTasks[taskId].data[4] = CreateMonIcon(NationalPokedexNumToSpecies(sPokedexListItem->dexNum), SpriteCB_MonIcon, 18, 31, 4, 0); //Create pokemon sprite
|
||||
#endif
|
||||
gSprites[gTasks[taskId].data[4]].oam.priority = 0;
|
||||
EvoFormsPage_PrintAToggleUpdownEvos(); //HGSS_Ui Navigation buttons
|
||||
}
|
||||
gMain.state++;
|
||||
break;
|
||||
@ -7515,7 +7544,7 @@ static void PrintEvolutionTargetSpeciesAndMethod(u8 taskId, u16 species)
|
||||
bool8 left = TRUE;
|
||||
u8 base_x = 13;
|
||||
u8 base_x_offset = 54;
|
||||
u8 base_y = 52;
|
||||
u8 base_y = 51;
|
||||
u8 base_y_offset = 9;
|
||||
u8 base_i = 0;
|
||||
u8 times = 0;
|
||||
@ -8095,6 +8124,9 @@ static void Task_LoadFormsScreen(u8 taskId)
|
||||
FillWindowPixelBuffer(WIN_INFO, PIXEL_FILL(0));
|
||||
PutWindowTilemap(WIN_INFO);
|
||||
CopyWindowToVram(WIN_INFO, 3);
|
||||
FillWindowPixelBuffer(WIN_NAVIGATION_BUTTONS, PIXEL_FILL(0));
|
||||
PutWindowTilemap(WIN_NAVIGATION_BUTTONS);
|
||||
CopyWindowToVram(WIN_NAVIGATION_BUTTONS, 3);
|
||||
CopyBgTilemapBufferToVram(1);
|
||||
CopyBgTilemapBufferToVram(2);
|
||||
CopyBgTilemapBufferToVram(3);
|
||||
@ -8114,6 +8146,7 @@ static void Task_LoadFormsScreen(u8 taskId)
|
||||
gTasks[taskId].data[4] = CreateMonIcon(NationalPokedexNumToSpecies(sPokedexListItem->dexNum), SpriteCB_MonIcon, 18, 31, 4, 0); //Create pokemon sprite
|
||||
gSprites[gTasks[taskId].data[4]].oam.priority = 0;
|
||||
}
|
||||
EvoFormsPage_PrintAToggleUpdownEvos(); //HGSS_Ui Navigation buttons
|
||||
gMain.state++;
|
||||
break;
|
||||
case 4:
|
||||
|
||||
@ -1888,6 +1888,8 @@ const u8 gText_Stats_eggGroup_UNDISCOVERED[]= _("---");
|
||||
const u8 gText_Dex_SEEN[] = _("SEEN");
|
||||
const u8 gText_Dex_OWN[] = _("OWN");
|
||||
|
||||
const u8 gText_EVO_Buttons_PE[] = _("{A_BUTTON}FORMS");
|
||||
const u8 gText_EVO_Buttons_Decapped_PE[] = _("{A_BUTTON}Forms");
|
||||
const u8 gText_EVO_Name[] = _("{STR_VAR_3}:");
|
||||
const u8 gText_EVO_FRIENDSHIP[] = _("LvlUp, high friendship");
|
||||
const u8 gText_EVO_FRIENDSHIP_DAY[] = _("LvlUp, high friendship, day");
|
||||
@ -1922,4 +1924,7 @@ const u8 gText_EVO_LEVEL_DARK_TYPE_MON_IN_PARTY[] = _("LvlUp with dark type in
|
||||
const u8 gText_EVO_TRADE_SPECIFIC_MON[] = _("Traded for {STR_VAR_2}");
|
||||
const u8 gText_EVO_SPECIFIC_MAP[] = _("LvlUp on {STR_VAR_2}");
|
||||
const u8 gText_EVO_NONE[] = _("{STR_VAR_1} has no evolution.");
|
||||
|
||||
const u8 gText_FORMS_Buttons_PE[] = _("{A_BUTTON}EVOLUTIONS");
|
||||
const u8 gText_FORMS_Buttons_Decapped_PE[] = _("{A_BUTTON}Evolutions");
|
||||
const u8 gText_FORMS_NONE[] = _("{STR_VAR_1} has no alternate forms.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user