488 {
493 s8 currentSubmenu;
494 s32 newSubmenu;
495 s32 id;
496 s32 x, y, z;
497 s32 width;
498 s32 itemHudElemID;
499
502
503 s32 tensDigit;
504 s32 onesDigit;
505
506 s32 deltaSP;
507 s32 prevSP;
508
509 s32 i;
510 s32 j;
511
513
517 player->
flags &= ~ACTOR_FLAG_SHOW_STATUS_ICONS;
525
527 if (prevSP > 99) {
529 } else {
531 }
532
539 }
540 break;
548
556 }
557 break;
561
566 if (deltaSP > 0) {
568 }
569
574 }
575 }
576 if (playerData->
level >= 27) {
578 }
582 }
585 }
590 if (partner != NULL) {
592 }
598 if (partner != NULL) {
603 }
606 } else {
608 }
609 }
610 } else {
612 }
613 break;
618 } else {
620 }
621 break;
622 }
624 break;
634 }
635 break;
644 break;
652 fx_recover(0, x, y, z, playerData->
curHP);
656 fx_recover(1, x, y, z, playerData->
curFP);
658 }
659
664 }
665 } else {
670
675
680
685
690
696 }
697
702
708 }
709
714
720 }
721
725
727
728 tensDigit = playerData->
curMaxFP / 10;
729 onesDigit = playerData->
curMaxFP % 10;
732 if (tensDigit != 0) {
734 }
737
743
749
750
751 tensDigit = (playerData->
curMaxFP + 5) / 10;
752 onesDigit = (playerData->
curMaxFP + 5) % 10;
755 if (tensDigit != 0) {
757 }
760
766 } else {
767
769 tensDigit = playerData->
curMaxFP / 10;
770 onesDigit = playerData->
curMaxFP % 10;
772 if (tensDigit != 0) {
774 }
777
784 }
785
794 }
795
797
798 tensDigit = playerData->
curMaxHP / 10;
799 onesDigit = playerData->
curMaxHP % 10;
800
803 if (tensDigit != 0) {
805 }
808
814
820
821 tensDigit = (playerData->
curMaxHP + 5) / 10;
822 onesDigit = (playerData->
curMaxHP + 5) % 10;
823
826 if (tensDigit != 0) {
828 }
831
837 } else {
838 tensDigit = playerData->
curMaxHP / 10;
839 onesDigit = playerData->
curMaxHP % 10;
840
843 if (tensDigit != 0) {
845 }
848
855 }
856
865 }
866
867 if (playerData->
maxBP != 30) {
868 tensDigit = playerData->
maxBP / 10;
869 onesDigit = playerData->
maxBP % 10;
870
873 if (tensDigit != 0) {
875 }
878
884
890
891 tensDigit = (playerData->
maxBP + 3) / 10;
892 onesDigit = (playerData->
maxBP + 3) % 10;
893
896 if (tensDigit != 0) {
898 }
901
907 } else {
913
920 }
921
931
936
939 }
940 break;
944 x -= 20;
946
950 x -= 20;
952 }
953
956 y -= 20;
958
961 y -= 20;
963
967 y -= 20;
969 }
970
973 x += 20;
975
979 x += 20;
981 }
982
986#if VERSION_JP
987 x = 32;
988 y = 186;
990#else
991 x = 20;
992 y = 186;
994#endif
997 }
998 break;
1005 } else {
1008 }
1009 break;
1010 }
1011
1012 newSubmenu = currentSubmenu = battleStatus->
curSubmenu;
1014 newSubmenu--;
1015 }
1017 newSubmenu++;
1018 }
1019 if (newSubmenu < 0) {
1020 newSubmenu = 0;
1021 }
1022 if (newSubmenu > 2) {
1023 newSubmenu = 2;
1024 }
1025 if (newSubmenu != currentSubmenu) {
1028 }
1029
1032 fx_confetti(3, 0.0f, 100.0f, 0.0f, 1.0f, 120);
1034 }
1035 break;
1039
1041 case 0:
1044 playerData->
curHP += 5;
1047 }
1050 }
1053 break;
1054 case 1:
1057 playerData->
curFP += 5;
1060 }
1063 }
1064 break;
1065 case 2:
1066 playerData->
maxBP += 3;
1067 if (playerData->
maxBP > 30) {
1068 playerData->
maxBP = 30;
1069 }
1070 break;
1071 }
1072
1074
1075 if (partner != NULL) {
1080 }
1083 }
1086 break;
1090 case 0:
1092 break;
1093 case 1:
1096 break;
1097 case 2:
1099 break;
1100 }
1101 } else {
1103 case 0:
1105 break;
1106 case 1:
1109 break;
1110 case 2:
1112 break;
1113 }
1114 }
1117 break;
1118 }
1122 }
1123 break;
1129
1133 }
1134 }
1135
1140 break;
1143 x = 160 - (width / 2);
1144 y = 80;
1149 break;
1153 }
1156 break;
1157 }
1160 break;
1164#if VERSION_JP
1166#endif
1167 }
1171 }
1175 if (partner != NULL) {
1177 }
1180 break;
1181 }
1182 break;
1188 }
1189 } else {
1191 if (partner != NULL) {
1192 partner->
yaw = 0.0f;
1193 }
1194
1196 if (partner != NULL) {
1198 }
1199 }
1202 break;
1203 }
1207 }
1208 break;
1212 }
1215 }
1218 break;
1219 }
1221}
IconHudScriptPair gItemHudScripts[]
HudScript HES_level_up_small_blue_arrow
BSS s32 EndBattleRewardTotal
BSS HudElemID LevelUpSelectTextID
BSS s32 EndBattleRewardIncrement
BSS HudElemID LevelUpStatEmblemIDs[4]
HudScript HES_ProjectorBeam
HudScript HES_level_up_select_one_to_upgrade
HudScript HES_level_up_leaves
HudScript HES_level_up_badge
HudScript * level_up_small_digit_scripts[3][10]
BSS Evt * LevelUpScriptPtr
EvtScript EVS_ShowLevelUp
HudScript HES_level_up_small_red_arrow
BSS HudElemID LevelUpSpotlightID
HudScript HES_level_up_heart
BSS s32 CelebrateSubstateTime
BSS HudElemID LevelUpStatTextIDs[3][7]
void draw_content_cant_increase_popup(void *data, s32 posX, s32 posY)
HudScript HES_level_up_flower
EvtScript EVS_ShowStarpoints
BSS s32 EndBattleRewardsDone
BSS s32 LevelUpSelectTextVelX
void draw_content_level_up_textbox(void *data, s32 posX, s32 posY)
HudScript HES_level_up_small_green_arrow
BSS s32 EndBattleRewardStep
BSS s32 CelebrateStateTime
BSS s32 LevelUpSelectTextOffsetX
HudScript * HES_LevelUpDigits[3][10]
HudScript * levelup_stat_scripts[3]
struct Evt * takeTurnScript
union Evt::@8 owner1
Initially -1.
EvtScript * takeTurnSource
@ BS_FLAGS2_AWARDING_STAR_POINTS
@ BS_FLAGS2_DONT_STOP_MUSIC
@ SOUND_ID_TRIGGER_CHANGE_SOUND
@ BTL_SUBSTATE_CELEBRATE_LEVEL_UP_CREATE_HUD
@ BTL_SUBSTATE_CELEBRATE_LEVEL_UP_UPGRADE
@ BTL_SUBSTATE_CELEBRATE_INIT
@ BTL_SUBSTATE_CELEBRATE_DONE
@ BTL_SUBSTATE_CELEBRATE_LEVEL_UP_BEGIN
@ BTL_SUBSTATE_END_BATTLE_EXEC_STAGE_SCRIPT
@ BTL_SUBSTATE_CELEBRATE_LEVEL_UP_DESTROY_HUD
@ BTL_SUBSTATE_CELEBRATE_LEVEL_UP_SHOW_HUD
@ BTL_SUBSTATE_CELEBRATE_LOAD_STAR_POINTS
@ BTL_SUBSTATE_CELEBRATE_WALK_AWAY
@ BTL_SUBSTATE_CELEBRATE_TALLY_STAR_POINTS
@ BTL_SUBSTATE_CELEBRATE_POST_STAR_POINTS
@ BTL_SUBSTATE_CELEBRATE_SKIPPABLE_END_DELAY
@ BTL_SUBSTATE_CELEBRATE_LEVEL_UP_LOAD
@ BTL_SUBSTATE_CELEBRATE_LEVEL_UP_FADE_OUT
@ BATTLE_STATE_END_BATTLE
@ SOUND_JINGLE_WON_BATTLE
@ SOUND_STAR_POINT_PICKUP
@ SOUND_MENU_CHANGE_SELECTION
@ ACTOR_FLAG_SHOW_STATUS_ICONS
@ ACTOR_FLAG_USING_IDLE_ANIM
s32 is_ability_active(s32 arg0)
s32 bgm_set_song(s32 playerIndex, s32 songID, s32 variation, s32 fadeOutTime, s16 volume)
void set_window_update(s32 panelID, s32)
void btl_cam_set_params(b16, s16, s16, s16, s32, s32, s32)
void mdl_set_all_tint_type(s32)
void btl_cam_use_preset(s32)
Evt * start_script(EvtScript *source, s32 priority, s32 initialState)
void set_actor_anim(s32 actorID, s32 partID, AnimID animID)
void kill_script_by_ID(s32 id)
s32 btl_cam_is_moving_done(void)
void set_window_properties(s32 panelID, s32 posX, s32 posY, s32 width, s32 height, u8, void *drawContents, void *drawContentsArg, s8 parent)
s32 does_script_exist(s32 id)
void btl_set_state(s32 battleState)
void hud_element_get_render_pos(s32 id, s32 *x, s32 *y)
void hud_element_set_scale(s32 index, f32 scale)
void hud_element_set_alpha(s32 id, s32 opacity)
void hud_element_set_script(s32 id, HudScript *anim)
void hud_element_create_transform_B(s32 id)
void hud_element_set_tint(s32 id, s32 r, s32 g, s32 b)
void hud_element_set_transform_rotation(s32 id, f32 x, f32 y, f32 z)
void hud_element_set_render_pos(s32 id, s32 x, s32 y)
void hud_element_set_transform_rotation_pivot(s32 id, s32 dx, s32 dy)
s32 hud_element_create(HudScript *anim)
Creates a new HUD element and returns its ID.
void hud_element_set_flags(s32 id, s32 flags)
Turns on the given flags.
void hud_element_clear_flags(s32 id, s32 flags)
Turns off the given flags.
void hud_element_set_transform_scale(s32 id, f32 x, f32 y, f32 z)
void hud_element_free(s32 id)
@ HUD_ELEMENT_FLAG_DISABLED
@ HUD_ELEMENT_FLAG_FILTER_TEX
EvtScript EVS_Mario_HandlePhase
void mdl_set_shroud_tint_params(u8 r, u8 g, u8 b, u8 a)
void sfx_play_sound(s32 soundID)
#define DMA_COPY_SEGMENT(segment)
struct Actor * partnerActor
struct Actor * playerActor
GameStatus * gGameStatusPtr
u8 * gBackgroundTintModePtr