298 {
315
323 return;
324 }
329 } else {
337 }
338 break;
345 }
353 } else {
364 }
365 break;
366 }
367
373 if (partnerActor !=
NULL) {
376 }
383 break;
384 }
385
387 initialPos = 2;
390 }
391
392
399 }
405 }
408 }
410
411
417
422 }
423
428 }
429
434 }
435
438 }
439
441 }
442
443
448
453 }
458 }
463 }
466 }
468
469
479 }
484 }
489 }
492 }
494 }
495
496
507 }
510 }
512 }
513
519 } else {
521 }
526 break;
530 } else {
532 }
545 }
546 break;
547 }
548
551 break;
552 }
553
555 break;
556 }
557
564 }
565
573 continue;
574 }
576
581 }
592
595
598 }
600 }
601 }
602 }
606 }
607 break;
612 }
615 }
616 break;
621 }
624 }
625 break;
631 initialPos = 8;
632 for (i = 0; i <
playerData->maxStarPower; i++) {
643 }
646 }
649 }
651 }
653 if (starBeamLevel == 1) {
664 }
667 }
670 }
672 }
684 }
687 }
690 }
692 }
694 break;
695 }
696
698
703 break;
704 }
705
711 } else {
717 }
718 break;
719 }
720
721
725 } else {
729 }
730 break;
731 }
732
733 initialPos = 0;
737 }
739 }
743 }
745 }
749 }
751 }
752
757
761 }
765 }
769 }
773 }
777 }
778
784
788 }
792 }
793
798
799 }
805 break;
810
811 break;
814 break;
822 break;
823 default:
828 }
831 }
839 break;
840 }
841 }
845 break;
846 }
847 break;
854 break;
855 }
857 break;
858 }
869 break;
874 break;
880 break;
881 }
882 break;
886 break;
887 }
889 break;
894 break;
898 break;
902 }
903 break;
907 } else {
909 }
912 break;
915 break;
916 }
921 break;
925 break;
928
933 }
934 break;
935 }
936
946 break;
953 break;
954 default:
955 ;
956 }
959 break;
960 }
964 break;
968 break;
971 break;
975 }
978 }
982 continue;
983 }
987 continue;
988 }
1001 }
1003 }
1005 popup->titleNumber = 0;
1009 }
1013 }
1016 }
1020 popup->initialPos = initialPos;
1024 break;
1026 switch (
popup->result) {
1028
1029 break;
1037 break;
1038 default:
1051 break;
1052 }
1053 break;
1061 } else {
1065 }
1066 }
1067 break;
1072 }
1073 break;
1080 break;
1085 break;
1090 continue;
1091 }
1095 continue;
1096 }
1102
1110 }
1112 }
1115 }
1120 popup->titleNumber = 0;
1121 popup->initialPos = initialPos;
1125 break;
1127 switch(
popup->result) {
1129
1130 break;
1138 break;
1139 default:
1152 break;
1153 }
1154 break;
1160 } else {
1163 }
1164 }
1165 break;
1169 }
1170 break;
1175 break;
1179 break;
1184
1187 }
1188
1192 }
1196 }
1197 if (!(
battleStatus->enabledStarPowersFlags & (1 << i))) {
1200 }
1201
1205 }
1215 }
1218 }
1225 break;
1230
1231 break;
1234 break;
1242 break;
1243 default:
1249 break;
1250 }
1251 break;
1267 }
1269 }
1270 break;
1275 }
1276 break;
1281 break;
1285 break;
1289 }
1290 break;
1295 } else {
1299 continue;
1300 }
1304 continue;
1305 }
1306
1319 }
1321 }
1325 } else {
1331 }
1336 }
1339 }
1342 popup->initialPos = initialPos;
1346 }
1347 }
1348 break;
1350 switch(
popup->result) {
1352
1353 break;
1357 break;
1358 default:
1370 break;
1371 }
1372 break;
1376 } else {
1378 }
1379 break;
1383 } else {
1385 }
1386 break;
1391 break;
1394 break;
1400 } else {
1402 }
1403
1408 } else {
1410 }
1411
1416 } else {
1420 }
1423 }
1430 } else {
1436 }
1438 }
1439 break;
1443
1444
1455 }
1457 }
1458
1459
1466
1467
1477 }
1479
1482 }
1488 break;
1493
1494 break;
1497 break;
1505 break;
1506 default:
1513 } else {
1517 }
1518 break;
1519 }
1520 break;
1537 break;
1544 break;
1551 break;
1556 break;
1557 }
1558 }
1559 break;
1566 }
1567 break;
1572 break;
1576 break;
1580 }
1581 break;
1597 }
1599 }
1600 }
1603 }
1608 popup->titleNumber = 0;
1612 break;
1614 switch(
popup->result) {
1616
1617 break;
1620 break;
1626 break;
1627 default:
1640 break;
1641 }
1642 break;
1649 } else {
1655 }
1656 }
1657 break;
1662 }
1663 break;
1669 break;
1674 break;
1682 }
1683 break;
1684 }
1685}
void btl_init_menu_items(void)
void btl_check_can_change_partner(void)
s32 MenuIndexFromPartnerID[]
PartnerPopupProperties gPartnerPopupProperties[]
void create_battle_popup_menu(PopupMenu *popup)
void flush_popup_menu(void)
void show_popup_menu(void)
@ BS_FLAGS1_TUTORIAL_BATTLE
@ BS_FLAGS1_PLAYER_IN_BACK
@ BTL_MSG_CANT_SELECT_NOW
@ BTL_MSG_CANT_SELECT_NOW_ALT
@ BTL_MSG_NO_HAMMER_TARGET
@ POPUP_MENU_SWITCH_PARTNER
@ BTL_MENU_TYPE_CHANGE_PARTNER
@ BTL_MENU_TYPE_STAR_POWERS
@ BTL_MENU_TYPE_ACT_LATER
@ BTL_MENU_TYPE_STRATEGIES
@ BTL_MENU_TYPE_DO_NOTHING
@ BS_FLAGS2_PARTNER_TURN_USED
@ ITEM_TYPE_FLAG_BATTLE_USABLE
@ TARGET_FLAG_PRIMARY_ONLY
@ BATTLE_STATE_SWITCH_TO_PARTNER
@ BATTLE_STATE_PLAYER_MOVE
@ BATTLE_STATE_END_PLAYER_TURN
@ BATTLE_STATE_SELECT_TARGET
@ BATTLE_STATE_CHANGE_PARTNER
@ SOUND_PARTNER_SWAP_BATTLE_POS
@ BTL_MENU_ENABLED_STAR_POWERS
@ BTL_MENU_ENABLED_STRATEGIES
@ ACTOR_FLAG_SHOW_STATUS_ICONS
@ ACTOR_FLAG_USING_IDLE_ANIM
@ BTL_MENU_IDX_STAR_POWER
void btl_show_variable_battle_message(s32, s32, s32)
void hide_popup_menu(void)
void set_window_update(s32 panelID, s32)
void destroy_popup_menu(void)
void btl_cam_use_preset(s32)
void set_actor_anim(s32 actorID, s32 partID, AnimID animID)
void btl_set_state(s32 battleState)
s32 btl_is_popup_displayed(void)
void sfx_play_sound(s32 soundID)
s32 PartnerIDFromMenuIndex[12]
GameStatus * gGameStatusPtr