@@ -2019,61 +2019,32 @@ void menuCheckButton()
2019
2019
}
2020
2020
else
2021
2021
{
2022
- uint32_t MaxOptionsPerPage = 14 ;
2023
2022
switch (CurrentButton)
2024
2023
{
2025
2024
case DPADDOWN:
2026
2025
case DPADUP:
2027
2026
{
2028
- if (tempSelectedOption != 0 )
2029
- {
2030
- adjustBattlesActorSelection (CurrentButton);
2031
- }
2027
+ adjustBattlesActorSelection (CurrentButton);
2032
2028
break ;
2033
2029
}
2034
2030
case A:
2035
2031
{
2036
- switch (tempSelectedOption)
2032
+ // Make sure the current slot isn't empty
2033
+ void *CurrentActorPointer = getActorPointer (tempCurrentMenuOption + 1 ); // Add 1 to skip System
2034
+ if (CurrentActorPointer)
2037
2035
{
2038
- case 0 :
2039
- {
2040
- SelectedOption = tempCurrentMenuOption + 1 ;
2041
- CurrentMenuOption = tempCurrentPage * MaxOptionsPerPage;
2042
- break ;
2043
- }
2044
- default :
2045
- {
2046
- // Make sure the current slot isn't empty
2047
- void *CurrentActorPointer = getActorPointer (tempCurrentMenuOption + 1 ); // Add 1 to skip System
2048
- if (CurrentActorPointer)
2049
- {
2050
- // Go to the next menu
2051
- CurrentMenu = BATTLES_CURRENT_ACTOR;
2052
- MenuSelectedOption = tempCurrentMenuOption + 1 ; // Add 1 to skip System
2053
- resetMenu ();
2054
- }
2055
- break ;
2056
- }
2036
+ // Go to the next menu
2037
+ CurrentMenu = BATTLES_CURRENT_ACTOR;
2038
+ MenuSelectedOption = tempCurrentMenuOption + 1 ; // Add 1 to skip System
2039
+ resetMenu ();
2057
2040
}
2058
2041
break ;
2059
2042
}
2060
2043
case B:
2061
2044
{
2062
- switch (tempSelectedOption)
2063
- {
2064
- case 0 :
2065
- {
2066
- // Go back to the previous menu
2067
- CurrentMenu = tempPreviousMenu;
2068
- resetMenu ();
2069
- break ;
2070
- }
2071
- default :
2072
- {
2073
- closeSecondaryMenu ();
2074
- break ;
2075
- }
2076
- }
2045
+ // Go back to the previous menu
2046
+ CurrentMenu = tempPreviousMenu;
2047
+ resetMenu ();
2077
2048
break ;
2078
2049
}
2079
2050
default :
@@ -3258,7 +3229,12 @@ void drawMenu()
3258
3229
else
3259
3230
{
3260
3231
// Draw the text for the options
3261
- drawSingleColumnSelectedOption ();
3232
+ drawSingleColumnMain ();
3233
+
3234
+ // Draw the page number
3235
+ int32_t PosX = 150 ;
3236
+ int32_t PosY = 180 ;
3237
+ drawPageNumber (PosX, PosY, tempCurrentPage);
3262
3238
3263
3239
// Draw each actor
3264
3240
drawBattlesActorsList ();
0 commit comments