Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
btl_states_menus.c File Reference

Go to the source code of this file.

Macros

#define MENU_CAPACITY   6
 
#define WHEEL_SPACING   (28.0f)
 
#define WHEEL_RADIUS   (87.0f)
 
#define REEL_APPEAR_TIME   (3)
 

Enumerations

enum  BattleMenuStates {
  BTL_MENU_STATE_SUBMENU_OPEN = -1 , BTL_MENU_STATE_CREATE = 0 , BTL_MENU_STATE_SHOW_REEL = 1 , BTL_MENU_STATE_CHOOSING = 2 ,
  BTL_MENU_STATE_HIDE_INIT = 10 , BTL_MENU_STATE_HIDE_HOLD = 11 , BTL_MENU_STATE_RESTORE = 20 , BTL_MENU_STATE_RESUME_SUBMENU = 30 ,
  BTL_MENU_STATE_ERROR_SHOW = 100 , BTL_MENU_STATE_ERROR_DONE = 101
}
 

Functions

void btl_main_menu_init (void)
 
void btl_main_menu_hide (void)
 
void btl_main_menu_resume_choose (void)
 
void btl_main_menu_restore_choose (void)
 
void btl_main_menu_restore_submenu (void)
 
void btl_main_menu_destroy (void)
 
s32 btl_main_menu_update (void)
 
void btl_main_menu_draw (void)
 
b32 btl_player_can_act (void)
 
b32 btl_partner_can_act (void)
 

Variables

HudScript HES_YellowArrow
 
HudScript HES_MenuFlee
 
HudScript HES_MenuFleeDisabled
 
HudScript HES_MenuDefend
 
HudScript HES_MenuDefendDisabled
 
HudScript HES_MenuStrategies
 
HudScript HES_MenuStrategiesDisabled
 
HudScript HES_MenuPouch
 
HudScript HES_MenuPouchDisabled
 
HudScript HES_MenuDoNothing
 
HudScript HES_MenuDoNothingDisabled
 
HudScript HES_Kooper
 
HudScript HES_Bombette
 
HudScript HES_Partner0
 
HudScript HES_Partner0Disabled
 
HudScript HES_Goombario
 
HudScript HES_GoombarioDisabled
 
HudScript HES_KooperDisabled
 
HudScript HES_BombetteDisabled
 
HudScript HES_Parakarry
 
HudScript HES_ParakarryDisabled
 
HudScript HES_Bow
 
HudScript HES_BowDisabled
 
HudScript HES_Watt
 
HudScript HES_WattDisabled
 
HudScript HES_Sushie
 
HudScript HES_SushieDisabled
 
HudScript HES_Lakilester
 
HudScript HES_LakilesterDisabled
 
HudScript HES_PartnerA
 
HudScript HES_PartnerADisabled
 
HudScript HES_MenuBoots1
 
HudScript HES_MenuBoots1Disabled
 
HudScript HES_MenuBoots2
 
HudScript HES_MenuBoots2Disabled
 
HudScript HES_MenuBoots3
 
HudScript HES_MenuBoots3Disabled
 
HudScript HES_MenuHammer1
 
HudScript HES_MenuHammer1Disabled
 
HudScript HES_MenuHammer2
 
HudScript HES_MenuHammer2Disabled
 
HudScript HES_MenuHammer3
 
HudScript HES_MenuHammer3Disabled
 
HudScript HES_MenuItem
 
HudScript HES_MenuItemDisabled
 
HudScript HES_MenuStarPower
 
HudScript HES_MenuStarPowerDisabled
 
HudScript HES_Eldstar
 
HudScript HES_EldstarDisabled
 
HudScript HES_Mamar
 
HudScript HES_MamarDisabled
 
HudScript HES_Skolar
 
HudScript HES_SkolarDisabled
 
HudScript HES_Muskular
 
HudScript HES_MuskularDisabled
 
HudScript HES_Misstar
 
HudScript HES_MisstarDisabled
 
HudScript HES_Klevar
 
HudScript HES_KlevarDisabled
 
HudScript HES_Kalmar
 
HudScript HES_KalmarDisabled
 
HudScript HES_StarBeam
 
HudScript HES_StarBeamDisabled
 
HudScript HES_PeachBeam
 
HudScript HES_PeachBeamDisabled
 
HudScript HES_MoveDiamond
 
HudScript HES_MoveDiamond_disabled
 
HudScript HES_MoveBlueOrb
 
HudScript HES_MoveBlueOrbDisabled
 
HudScript HES_MoveGreenOrb
 
HudScript HES_MoveGreenOrbDisabled
 
HudScript HES_MoveRedOrb
 
HudScript HES_MoveRedOrbDisabled
 
HudScript HES_HandPointDownLoop
 
HudScript HES_HandPointLeftLoop
 
HudScript HES_ProjectorBeam
 
HudScript HES_ProjectorReel
 
HudScript HES_ProjectorSpot
 
HudScript HES_SwapArrowLeft
 
HudScript HES_SwapArrowRight
 
HudScript HES_SwapBackground
 
HudScript HES_SwapZ
 
IconHudScriptPair ItemsHudScripts = { &HES_MenuItem, &HES_MenuItemDisabled }
 
IconHudScriptPair StarPowersHudScripts = { &HES_MenuStarPower, &HES_MenuStarPowerDisabled }
 
IconHudScriptPair StarPowerMovesHudScripts []
 
IconHudScriptPair PartnerHudScripts []
 
IconHudScriptPair StrategiesHudScripts = { &HES_MenuStrategies, &HES_MenuStrategiesDisabled }
 
IconHudScriptPair DoNothingHudScripts = { &HES_MenuDoNothing, &HES_MenuDoNothingDisabled }
 
IconHudScriptPair FleeHudScripts = { &HES_MenuFlee, &HES_MenuFleeDisabled }
 
s32 LeftJustMenuMessages []
 
s32 CenteredBattleMessages []
 
BSS s32 BattleMenu_ChooseDelay
 
BSS s32 BattleMenu_TargetPointerAlpha
 
BSS s32 BattleMenu_TargetNameOffsetX
 
BSS s32 BattleMenu_SwapDelay
 
BSS s32 BattleMenu_TargetHudElems [MAX_ENEMY_ACTORS]
 
BSS PopupMenu BattlePopupMenu
 
BSS s8 BattleMenuState
 
BSS s8 BattleMenu_ReelAppearTimer
 
BSS s8 BattleMenu_CurPos
 
BSS s8 BattleMenu_PrevPos
 
BSS b8 BattleMenu_WheelMoving
 
BSS s16 BattleMenu_ReelAlpha
 
BSS s16 BattleMenuAlpha
 
BSS s16 BattleMenu_ReelHidePercent
 
BSS HudElemID HID_HighlightSpot
 
BSS HudElemID HID_ProjectorReelA
 
BSS HudElemID HID_ProjectorReelB
 
BSS HudElemID HID_ProjectorBeam
 
BSS HudElemID HID_SwapZ
 
BSS HudElemID HID_SwapArrowLeft
 
BSS HudElemID HID_SwapArrowRight
 
BSS HudElemID HID_SwapBackground
 
BSS s32 BattleMenu_BasePosX
 
BSS s32 BattleMenu_BasePosY
 
BSS s8 BattleMenu_ErrorCode
 
BSS s8 BattleMenu_MinIdx
 
BSS s8 BattleMenu_MaxIdx
 
BSS s8 BattleMenu_HomePos
 
BSS s32 BattleMenu_PrevSelected
 
BSS s32 BattleMenu_WheelBase
 
BSS f32 BattleMenu_WheelAngle
 
BSS f32 BattleMenu_WheelSpeed
 
BSS b32 BattleMenu_ShowSwapIcons
 
BSS HudScriptWheelOptionHudScript [6]
 
BSS HudElemID HID_OptionIcons [6]
 
BSS HudElemID HID_Spotlights [6]
 
BSS MsgID WheelOptionName [6]
 
BSS s32 WheelOptionSubmenu [6]
 
BSS s32 WheelOptionEnabled [6]
 
BSS s32 WheelOptionError [6]
 
BSS s32 WheelOptionCount
 

Macro Definition Documentation

◆ MENU_CAPACITY

#define MENU_CAPACITY   6

Definition at line 4 of file btl_states_menus.c.

◆ WHEEL_SPACING

#define WHEEL_SPACING   (28.0f)

Definition at line 6 of file btl_states_menus.c.

Referenced by btl_main_menu_draw(), and btl_main_menu_update().

◆ WHEEL_RADIUS

#define WHEEL_RADIUS   (87.0f)

Definition at line 7 of file btl_states_menus.c.

Referenced by btl_main_menu_draw(), and btl_main_menu_update().

◆ REEL_APPEAR_TIME

#define REEL_APPEAR_TIME   (3)

Definition at line 9 of file btl_states_menus.c.

Referenced by btl_main_menu_hide(), and btl_main_menu_update().

Enumeration Type Documentation

◆ BattleMenuStates

Enumerator
BTL_MENU_STATE_SUBMENU_OPEN 
BTL_MENU_STATE_CREATE 
BTL_MENU_STATE_SHOW_REEL 
BTL_MENU_STATE_CHOOSING 
BTL_MENU_STATE_HIDE_INIT 
BTL_MENU_STATE_HIDE_HOLD 
BTL_MENU_STATE_RESTORE 
BTL_MENU_STATE_RESUME_SUBMENU 
BTL_MENU_STATE_ERROR_SHOW 
BTL_MENU_STATE_ERROR_DONE 

Definition at line 11 of file btl_states_menus.c.

11 {
18 BTL_MENU_STATE_RESTORE = 20, // reappear and resume choosing
22};
@ BTL_MENU_STATE_SHOW_REEL
@ BTL_MENU_STATE_ERROR_DONE
@ BTL_MENU_STATE_CREATE
@ BTL_MENU_STATE_HIDE_HOLD
@ BTL_MENU_STATE_RESTORE
@ BTL_MENU_STATE_ERROR_SHOW
@ BTL_MENU_STATE_RESUME_SUBMENU
@ BTL_MENU_STATE_SUBMENU_OPEN
@ BTL_MENU_STATE_HIDE_INIT
@ BTL_MENU_STATE_CHOOSING

Function Documentation

◆ btl_main_menu_init()

void btl_main_menu_init ( void )

Definition at line 234 of file btl_states_menus.c.

234 {
236 BattleMenuAlpha = 255;
239}
BSS s16 BattleMenu_ReelAlpha
BSS s16 BattleMenuAlpha
BSS s8 BattleMenu_ErrorCode
BSS s8 BattleMenuState

Referenced by btl_state_update_partner_menu(), btl_state_update_peach_menu(), btl_state_update_player_menu(), and btl_state_update_twink_menu().

◆ btl_main_menu_hide()

◆ btl_main_menu_resume_choose()

◆ btl_main_menu_restore_choose()

void btl_main_menu_restore_choose ( void )

◆ btl_main_menu_restore_submenu()

void btl_main_menu_restore_submenu ( void )

◆ btl_main_menu_destroy()

void btl_main_menu_destroy ( void )

Definition at line 262 of file btl_states_menus.c.

262 {
263 s32 i;
264
265 for (i = 0; i < WheelOptionCount; i++) {
268 }
269
278}
BSS s32 PopupMenu_SelectedIndex
BSS HudElemID HID_ProjectorReelB
BSS HudElemID HID_ProjectorReelA
BSS HudElemID HID_HighlightSpot
BSS HudElemID HID_SwapArrowRight
BSS HudElemID HID_Spotlights[6]
BSS HudElemID HID_SwapZ
BSS s32 WheelOptionCount
BSS HudElemID HID_ProjectorBeam
BSS HudElemID HID_SwapBackground
BSS HudElemID HID_SwapArrowLeft
BSS HudElemID HID_OptionIcons[6]
void hud_element_free(s32 id)

Referenced by btl_state_update_partner_menu(), btl_state_update_peach_menu(), btl_state_update_player_menu(), and btl_state_update_twink_menu().

◆ btl_main_menu_update()

s32 btl_main_menu_update ( void )

Definition at line 280 of file btl_states_menus.c.

280 {
283 s32 i;
284 f32 x, y;
285 s32 l, t;
286
287 switch (BattleMenuState) {
298
299 for (i = 0; i < WheelOptionCount; i++) {
306
313 }
314
321
326 hud_element_set_tint(hid, 0, 91, 127);
331
336 hud_element_set_tint(hid, 0, 91, 127);
341
346 hud_element_set_tint(hid, 255, 255, 255);
348 hud_element_set_transform_rotation(hid, 0.0f, 0.0f, -45.0f);
353
357 hud_element_set_tint(hid, 255, 255, 255);
361
367
373
383 break;
386
388 default:
390 break;
391 case 1:
392 // show the projector beam
395 // last tick
397 break;
398 case 0:
402 for (i = 0; i < WheelOptionCount; i++) {
403 x = 0.0f;
404 y = 0.0f;
406
409 hid = HID_OptionIcons[i];
412
413 hid = HID_Spotlights[i];
417 }
418
419 x = 0.0f;
420 y = 0.0f;
422
431 break;
432 }
433 break;
435 if (battleStatus->curButtonsPressed & BUTTON_A) {
439 } else {
443 }
444 } else {
447 if ((battleStatus->curButtonsHeld & (BUTTON_STICK_LEFT | BUTTON_STICK_UP)) &&
449 {
451 }
452 if ((battleStatus->curButtonsHeld & (BUTTON_STICK_RIGHT | BUTTON_STICK_DOWN)) &&
454 {
456 }
457 }
458
462 }
463 }
464 break;
466 BattleMenuAlpha = 100;
484 break;
488 break;
491 break;
492 }
495 break;
496 }
497 return 0;
498}
BSS s8 BattleMenu_MaxIdx
BSS s32 WheelOptionEnabled[6]
HudScript HES_SwapArrowRight
BSS s8 BattleMenu_CurPos
HudScript HES_ProjectorBeam
HudScript HES_SwapArrowLeft
BSS s32 BattleMenu_BasePosY
HudScript HES_ProjectorReel
#define WHEEL_SPACING
BSS s32 BattleMenu_BasePosX
BSS f32 BattleMenu_WheelAngle
BSS s32 BattleMenu_WheelBase
BSS s8 BattleMenu_PrevPos
HudScript HES_SwapBackground
BSS s16 BattleMenu_ReelHidePercent
HudScript HES_ProjectorSpot
HudScript HES_SwapZ
#define WHEEL_RADIUS
BSS f32 BattleMenu_WheelSpeed
BSS s32 BattleMenu_PrevSelected
BSS HudScript * WheelOptionHudScript[6]
BSS s32 WheelOptionError[6]
BSS s8 BattleMenu_MinIdx
BSS b8 BattleMenu_WheelMoving
BSS s8 BattleMenu_HomePos
s32 HudElemID
@ BUTTON_A
Definition enums.h:2776
@ BUTTON_STICK_UP
Definition enums.h:2777
@ BUTTON_STICK_DOWN
Definition enums.h:2778
@ BUTTON_STICK_LEFT
Definition enums.h:2779
@ BUTTON_STICK_RIGHT
Definition enums.h:2780
@ SOUND_MENU_CHANGE_TAB
Definition enums.h:702
@ SOUND_MENU_NEXT
Definition enums.h:703
@ SOUND_MENU_ERROR
Definition enums.h:936
void btl_show_battle_message(s32 messageIndex, s32 duration)
s32 btl_is_popup_displayed(void)
void add_vec2D_polar(f32 *x, f32 *y, f32 r, f32 theta)
Definition 43F0.c:683
void hud_element_set_scale(s32 index, f32 scale)
void hud_element_set_alpha(s32 id, s32 opacity)
void hud_element_set_render_depth(s32 id, s32 z)
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.
@ HUD_ELEMENT_FLAG_DISABLED
Definition hud_element.h:72
@ HUD_ELEMENT_FLAG_MANUAL_RENDER
Definition hud_element.h:78
@ HUD_ELEMENT_FLAG_FILTER_TEX
Definition hud_element.h:86
void sfx_play_sound(s32 soundID)
BattleStatus gBattleStatus
Definition battle.cpp:14

Referenced by btl_state_update_partner_menu(), btl_state_update_peach_menu(), btl_state_update_player_menu(), and btl_state_update_twink_menu().

◆ btl_main_menu_draw()

void btl_main_menu_draw ( void )

Definition at line 500 of file btl_states_menus.c.

500 {
501 s32 hid;
502 s32 opacity;
503 f32 theta;
505 f32 x, y;
506 f32 scale;
507 s32 i;
508
509 switch (BattleMenuState) {
513 hud_element_set_transform_rotation(hid, 0.0f, 0.0f, 0.0f);
521 break;
527 opacity = (BattleMenu_ReelAlpha * BattleMenuAlpha) / 255;
530
537 }
538 } else if (BattleMenu_WheelAngle < theta) {
543 }
544 } else { // BattleMenu_WheelAngle == theta
546 }
547
548 if (wheelDoneMoving) {
551 } else {
553 }
554
555 // draw the spotlights
556 for (i = 0; i < WheelOptionCount; i++) {
557 // draw the series of base spotlights under each option
559 x = 0.0f;
560 y = 0.0f;
564
565 hid = HID_Spotlights[i];
568 hud_element_set_alpha(hid, (opacity * 150) / 255);
569
570 if (wheelDoneMoving && theta == (2 * WHEEL_SPACING)) {
572 } else {
574 }
576
577 // draw the current selection highlight (if aligned)
579 x = 0.0f;
580 y = 0.0f;
584
588 hud_element_set_alpha(hid, (opacity * 180) / 255);
590
591 if (!wheelDoneMoving) {
593 } else {
595 }
597 }
598 }
600
601 // calculate beam narrowing
602 scale = (fabsf(fabsf((BattleMenu_WheelAngle - theta) * (45.0 / WHEEL_SPACING)) - 22.5) / 22.5) + 0.01;
603 if (wheelDoneMoving) {
604 scale = 1.0f;
605 }
606
609 hud_element_set_transform_rotation(hid, 0.0f, 0.0f, -43.0f);
611 hud_element_set_transform_scale(hid, 1.0f, 1.8f, 1.0f);
612 hud_element_set_alpha(hid, (opacity * 200) / 255);
615
618 scale = (BattleMenu_WheelAngle - theta) * (45.0 / WHEEL_SPACING);
619 hud_element_set_transform_rotation(hid, 0.0f, 0.0f, -scale);
622 hud_element_set_alpha(hid, (opacity * 254) / 255);
625
627 hud_element_set_alpha(hid, (opacity * 254) / 255);
631
632 // draw the icons for each option
633 for (i = 0; i < WheelOptionCount; i++) {
635 x = 0.0f;
636 y = 0.0f;
640
641 btl_draw_prim_quad(0, 0, 0, 0, x - 12, y - 12, 24, 24);
642 hid = HID_OptionIcons[i];
644 hud_element_set_alpha(hid, (opacity * 180) / 255);
646 hud_element_set_alpha(hid, opacity);
647 }
649 }
650
651 // draw the names for each option
652 if (wheelDoneMoving) {
653 x = BattleMenu_BasePosX + 20;
654 y = BattleMenu_BasePosY - 34;
655 btl_draw_prim_quad(0, 0, 0, 0, x + 26, y, 48, 16);
657 }
658
661 }
662
665 hud_element_set_alpha(hid, (opacity * 200) / 255);
667 hid = HID_SwapZ;
668 hud_element_set_alpha(hid, opacity);
671 hud_element_set_alpha(hid, opacity);
674 hud_element_set_alpha(hid, opacity);
676 }
677 break;
678 }
679}
BSS MsgID WheelOptionName[6]
BSS b32 BattleMenu_ShowSwapIcons
s32 b32
#define draw_msg
@ BS_FLAGS1_TUTORIAL_BATTLE
Definition enums.h:3627
@ MSG_PAL_35
Definition enums.h:5043
@ BS_FLAGS2_PEACH_BATTLE
Definition enums.h:3643
f32 fabsf(f32 f)
void btl_draw_prim_quad(u8 r, u8 g, u8 b, u8 a, u16 left, u16 top, u16 arg6, u16 arg7)
Definition 190B20.c:2663
void hud_element_draw_complex_hud_next(s32 hid)
void hud_element_set_transform_pos(s32 id, f32 x, f32 y, f32 z)
void hud_element_draw_complex_hud_first(s32 hid)
void hud_element_draw_clipped(s32 id)
void hud_element_set_transform_scale(s32 id, f32 x, f32 y, f32 z)
#define SQ(x)
Definition macros.h:178

Referenced by btl_state_draw_partner_menu(), btl_state_draw_peach_menu(), btl_state_draw_player_menu(), and btl_state_draw_twink_menu().

◆ btl_player_can_act()

b32 btl_player_can_act ( void )

Definition at line 681 of file btl_states_menus.c.

681 {
683 Actor* player = battleStatus->playerActor;
684
686 return FALSE;
687 } else {
688 s8 debuff = player->debuff;
690
691 if (player->koStatus == STATUS_KEY_KO) {
693 }
694 if (debuff == STATUS_KEY_POISON) {
696 }
697 if (debuff == STATUS_KEY_SHRINK) {
699 }
700 if (debuff == STATUS_KEY_SLEEP) {
702 }
703 if (debuff == STATUS_KEY_UNUSED) {
705 }
706 if (debuff == STATUS_KEY_DIZZY) {
708 }
709 if (debuff == STATUS_KEY_PARALYZE) {
711 }
712 if (debuff == STATUS_KEY_FROZEN) {
714 }
715 if (debuff == STATUS_KEY_STOP) {
717 }
718 if (player->stoneStatus == STATUS_KEY_STONE) {
720 }
721 if (battleStatus->outtaSightActive) {
723 }
724 return !playerCantMove;
725 }
726}
@ BS_FLAGS2_PLAYER_TURN_USED
Definition enums.h:3638
@ STATUS_KEY_PARALYZE
Definition enums.h:2806
@ STATUS_KEY_FROZEN
Definition enums.h:2808
@ STATUS_KEY_KO
Definition enums.h:2814
@ STATUS_KEY_SLEEP
Definition enums.h:2807
@ STATUS_KEY_UNUSED
Definition enums.h:2804
@ STATUS_KEY_STONE
Definition enums.h:2813
@ STATUS_KEY_STOP
Definition enums.h:2809
@ STATUS_KEY_SHRINK
Definition enums.h:2811
@ STATUS_KEY_DIZZY
Definition enums.h:2805
@ STATUS_KEY_POISON
Definition enums.h:2810

Referenced by btl_state_update_partner_menu(), and btl_state_update_player_menu().

◆ btl_partner_can_act()

b32 btl_partner_can_act ( void )

Definition at line 728 of file btl_states_menus.c.

728 {
730 Actor* partner = battleStatus->partnerActor;
733
735 return FALSE;
736 }
737
740
741 if (partner->koStatus == STATUS_KEY_KO) {
743 }
746 }
749 }
752 }
755 }
758 }
761 }
764 }
765 if (partner->stoneStatus == STATUS_KEY_STONE) {
767 }
768 return !partnerCantMove;
769}
@ BS_FLAGS2_PARTNER_TURN_USED
Definition enums.h:3639
@ ACTOR_FLAG_NO_ATTACK
Skip attack turn.
Definition enums.h:3373
@ PARTNER_NONE
Definition enums.h:2919

Referenced by btl_state_update_partner_menu(), and btl_state_update_player_menu().

Variable Documentation

◆ HES_YellowArrow

HudScript HES_YellowArrow
extern

Definition at line 255 of file battle_ui_gfx.c.

◆ HES_MenuFlee

HudScript HES_MenuFlee
extern

Definition at line 257 of file battle_ui_gfx.c.

◆ HES_MenuFleeDisabled

HudScript HES_MenuFleeDisabled
extern

Definition at line 259 of file battle_ui_gfx.c.

◆ HES_MenuDefend

HudScript HES_MenuDefend
extern

Definition at line 261 of file battle_ui_gfx.c.

◆ HES_MenuDefendDisabled

HudScript HES_MenuDefendDisabled
extern

Definition at line 263 of file battle_ui_gfx.c.

◆ HES_MenuStrategies

HudScript HES_MenuStrategies
extern

Definition at line 265 of file battle_ui_gfx.c.

◆ HES_MenuStrategiesDisabled

HudScript HES_MenuStrategiesDisabled
extern

Definition at line 267 of file battle_ui_gfx.c.

◆ HES_MenuPouch

HudScript HES_MenuPouch
extern

Definition at line 269 of file battle_ui_gfx.c.

◆ HES_MenuPouchDisabled

HudScript HES_MenuPouchDisabled
extern

Definition at line 271 of file battle_ui_gfx.c.

◆ HES_MenuDoNothing

HudScript HES_MenuDoNothing
extern

Definition at line 273 of file battle_ui_gfx.c.

◆ HES_MenuDoNothingDisabled

HudScript HES_MenuDoNothingDisabled
extern

Definition at line 275 of file battle_ui_gfx.c.

◆ HES_Kooper

HudScript HES_Kooper
extern

Definition at line 1950 of file global_hud_scripts.c.

◆ HES_Bombette

HudScript HES_Bombette
extern

Definition at line 1954 of file global_hud_scripts.c.

◆ HES_Partner0

HudScript HES_Partner0
extern

Definition at line 1942 of file global_hud_scripts.c.

◆ HES_Partner0Disabled

HudScript HES_Partner0Disabled
extern

Definition at line 1944 of file global_hud_scripts.c.

◆ HES_Goombario

HudScript HES_Goombario
extern

Definition at line 1946 of file global_hud_scripts.c.

◆ HES_GoombarioDisabled

HudScript HES_GoombarioDisabled
extern

Definition at line 1948 of file global_hud_scripts.c.

◆ HES_KooperDisabled

HudScript HES_KooperDisabled
extern

Definition at line 1952 of file global_hud_scripts.c.

◆ HES_BombetteDisabled

HudScript HES_BombetteDisabled
extern

Definition at line 1956 of file global_hud_scripts.c.

◆ HES_Parakarry

HudScript HES_Parakarry
extern

Definition at line 1958 of file global_hud_scripts.c.

◆ HES_ParakarryDisabled

HudScript HES_ParakarryDisabled
extern

Definition at line 1960 of file global_hud_scripts.c.

◆ HES_Bow

HudScript HES_Bow
extern

Definition at line 1962 of file global_hud_scripts.c.

◆ HES_BowDisabled

HudScript HES_BowDisabled
extern

Definition at line 1964 of file global_hud_scripts.c.

◆ HES_Watt

HudScript HES_Watt
extern

Definition at line 1966 of file global_hud_scripts.c.

◆ HES_WattDisabled

HudScript HES_WattDisabled
extern

Definition at line 1968 of file global_hud_scripts.c.

◆ HES_Sushie

HudScript HES_Sushie
extern

Definition at line 1970 of file global_hud_scripts.c.

◆ HES_SushieDisabled

HudScript HES_SushieDisabled
extern

Definition at line 1972 of file global_hud_scripts.c.

◆ HES_Lakilester

HudScript HES_Lakilester
extern

Definition at line 1974 of file global_hud_scripts.c.

◆ HES_LakilesterDisabled

HudScript HES_LakilesterDisabled
extern

Definition at line 1976 of file global_hud_scripts.c.

◆ HES_PartnerA

HudScript HES_PartnerA
extern

Definition at line 1982 of file global_hud_scripts.c.

◆ HES_PartnerADisabled

HudScript HES_PartnerADisabled
extern

Definition at line 1984 of file global_hud_scripts.c.

◆ HES_MenuBoots1

HudScript HES_MenuBoots1
extern

Definition at line 2140 of file global_hud_scripts.c.

◆ HES_MenuBoots1Disabled

HudScript HES_MenuBoots1Disabled
extern

Definition at line 2142 of file global_hud_scripts.c.

◆ HES_MenuBoots2

HudScript HES_MenuBoots2
extern

Definition at line 2144 of file global_hud_scripts.c.

◆ HES_MenuBoots2Disabled

HudScript HES_MenuBoots2Disabled
extern

Definition at line 2146 of file global_hud_scripts.c.

◆ HES_MenuBoots3

HudScript HES_MenuBoots3
extern

Definition at line 2148 of file global_hud_scripts.c.

◆ HES_MenuBoots3Disabled

HudScript HES_MenuBoots3Disabled
extern

Definition at line 2150 of file global_hud_scripts.c.

◆ HES_MenuHammer1

HudScript HES_MenuHammer1
extern

Definition at line 2152 of file global_hud_scripts.c.

◆ HES_MenuHammer1Disabled

HudScript HES_MenuHammer1Disabled
extern

Definition at line 2154 of file global_hud_scripts.c.

◆ HES_MenuHammer2

HudScript HES_MenuHammer2
extern

Definition at line 2156 of file global_hud_scripts.c.

◆ HES_MenuHammer2Disabled

HudScript HES_MenuHammer2Disabled
extern

Definition at line 2158 of file global_hud_scripts.c.

◆ HES_MenuHammer3

HudScript HES_MenuHammer3
extern

Definition at line 2160 of file global_hud_scripts.c.

◆ HES_MenuHammer3Disabled

HudScript HES_MenuHammer3Disabled
extern

Definition at line 2162 of file global_hud_scripts.c.

◆ HES_MenuItem

HudScript HES_MenuItem
extern

Definition at line 2164 of file global_hud_scripts.c.

◆ HES_MenuItemDisabled

HudScript HES_MenuItemDisabled
extern

Definition at line 2166 of file global_hud_scripts.c.

◆ HES_MenuStarPower

HudScript HES_MenuStarPower
extern

Definition at line 2168 of file global_hud_scripts.c.

◆ HES_MenuStarPowerDisabled

HudScript HES_MenuStarPowerDisabled
extern

Definition at line 2170 of file global_hud_scripts.c.

◆ HES_Eldstar

HudScript HES_Eldstar
extern

Definition at line 1906 of file global_hud_scripts.c.

◆ HES_EldstarDisabled

HudScript HES_EldstarDisabled
extern

Definition at line 1908 of file global_hud_scripts.c.

◆ HES_Mamar

HudScript HES_Mamar
extern

Definition at line 1910 of file global_hud_scripts.c.

◆ HES_MamarDisabled

HudScript HES_MamarDisabled
extern

Definition at line 1912 of file global_hud_scripts.c.

◆ HES_Skolar

HudScript HES_Skolar
extern

Definition at line 1914 of file global_hud_scripts.c.

◆ HES_SkolarDisabled

HudScript HES_SkolarDisabled
extern

Definition at line 1916 of file global_hud_scripts.c.

◆ HES_Muskular

HudScript HES_Muskular
extern

Definition at line 1918 of file global_hud_scripts.c.

◆ HES_MuskularDisabled

HudScript HES_MuskularDisabled
extern

Definition at line 1920 of file global_hud_scripts.c.

◆ HES_Misstar

HudScript HES_Misstar
extern

Definition at line 1922 of file global_hud_scripts.c.

◆ HES_MisstarDisabled

HudScript HES_MisstarDisabled
extern

Definition at line 1924 of file global_hud_scripts.c.

◆ HES_Klevar

HudScript HES_Klevar
extern

Definition at line 1926 of file global_hud_scripts.c.

◆ HES_KlevarDisabled

HudScript HES_KlevarDisabled
extern

Definition at line 1928 of file global_hud_scripts.c.

◆ HES_Kalmar

HudScript HES_Kalmar
extern

Definition at line 1930 of file global_hud_scripts.c.

◆ HES_KalmarDisabled

HudScript HES_KalmarDisabled
extern

Definition at line 1932 of file global_hud_scripts.c.

◆ HES_StarBeam

HudScript HES_StarBeam
extern

Definition at line 1934 of file global_hud_scripts.c.

◆ HES_StarBeamDisabled

HudScript HES_StarBeamDisabled
extern

Definition at line 1936 of file global_hud_scripts.c.

◆ HES_PeachBeam

HudScript HES_PeachBeam
extern

Definition at line 1938 of file global_hud_scripts.c.

◆ HES_PeachBeamDisabled

HudScript HES_PeachBeamDisabled
extern

Definition at line 1940 of file global_hud_scripts.c.

◆ HES_MoveDiamond

HudScript HES_MoveDiamond
extern

Definition at line 2591 of file global_hud_scripts.c.

◆ HES_MoveDiamond_disabled

HudScript HES_MoveDiamond_disabled
extern

Definition at line 2599 of file global_hud_scripts.c.

◆ HES_MoveBlueOrb

HudScript HES_MoveBlueOrb
extern

Definition at line 2593 of file global_hud_scripts.c.

◆ HES_MoveBlueOrbDisabled

HudScript HES_MoveBlueOrbDisabled
extern

Definition at line 2601 of file global_hud_scripts.c.

◆ HES_MoveGreenOrb

HudScript HES_MoveGreenOrb
extern

Definition at line 2595 of file global_hud_scripts.c.

◆ HES_MoveGreenOrbDisabled

HudScript HES_MoveGreenOrbDisabled
extern

Definition at line 2603 of file global_hud_scripts.c.

◆ HES_MoveRedOrb

HudScript HES_MoveRedOrb
extern

Definition at line 2597 of file global_hud_scripts.c.

◆ HES_MoveRedOrbDisabled

HudScript HES_MoveRedOrbDisabled
extern

Definition at line 2605 of file global_hud_scripts.c.

◆ HES_HandPointDownLoop

HudScript HES_HandPointDownLoop
extern

Definition at line 173 of file 5B320.c.

173 {
176 hs_Loop
177 hs_SetTexelOffset(0, -1)
179 hs_SetTexelOffset(0, -1)
181 hs_SetTexelOffset(0, -1)
183 hs_SetTexelOffset(0, -1)
185 hs_SetTexelOffset(2, -1)
187 hs_SetTexelOffset(2, -1)
189 hs_SetTexelOffset(2, -1)
195 hs_SetTexelOffset(0, -1)
198 hs_End
199};
#define hs_SetTileSize(size)
@ HUD_ELEMENT_SIZE_24x24
Definition hud_element.h:45
#define hs_SetVisible
#define hs_End
#define hs_Restart
#define hs_Loop
#define hs_SetTexelOffset(x, y)
#define hs_SetIcon(time, icon)

Referenced by btl_state_draw_select_target(), and btl_state_update_select_target().

◆ HES_HandPointLeftLoop

◆ HES_ProjectorBeam

HudScript HES_ProjectorBeam
extern

Definition at line 514 of file battle_ui_gfx.c.

514 {
516 hs_SetCustomSize(64, 64)
517 hs_Loop
520 hs_End
521};
#define hs_SetRGBA(time, image)
#define hs_SetCustomSize(arg0, arg1)
#define hs_UseIA8

Referenced by btl_main_menu_update().

◆ HES_ProjectorReel

HudScript HES_ProjectorReel
extern

Definition at line 496 of file battle_ui_gfx.c.

Referenced by btl_main_menu_update().

◆ HES_ProjectorSpot

HudScript HES_ProjectorSpot
extern

Definition at line 505 of file battle_ui_gfx.c.

Referenced by btl_main_menu_update().

◆ HES_SwapArrowLeft

HudScript HES_SwapArrowLeft
extern

Definition at line 525 of file battle_ui_gfx.c.

525 {
527 hs_SetCustomSize(8, 16)
528 hs_Loop
532 hs_End
533};
#define hs_SetCI(time, name)

Referenced by btl_main_menu_update().

◆ HES_SwapArrowRight

HudScript HES_SwapArrowRight
extern

Definition at line 535 of file battle_ui_gfx.c.

Referenced by btl_main_menu_update().

◆ HES_SwapBackground

HudScript HES_SwapBackground
extern

Definition at line 545 of file battle_ui_gfx.c.

Referenced by btl_main_menu_update().

◆ HES_SwapZ

HudScript HES_SwapZ
extern

Definition at line 523 of file battle_ui_gfx.c.

Referenced by btl_main_menu_update().

◆ ItemsHudScripts

Definition at line 117 of file btl_states_menus.c.

HudScript HES_MenuItemDisabled
HudScript HES_MenuItem

Referenced by btl_state_update_player_menu().

◆ StarPowersHudScripts

Definition at line 119 of file btl_states_menus.c.

HudScript HES_MenuStarPowerDisabled
HudScript HES_MenuStarPower

Referenced by btl_state_update_partner_menu(), and btl_state_update_player_menu().

◆ StarPowerMovesHudScripts

IconHudScriptPair StarPowerMovesHudScripts[]
Initial value:
= {
}
HudScript HES_Muskular
HudScript HES_MuskularDisabled
HudScript HES_Mamar
HudScript HES_MisstarDisabled
HudScript HES_Misstar
HudScript HES_MamarDisabled
HudScript HES_EldstarDisabled
HudScript HES_Kalmar
HudScript HES_Eldstar
HudScript HES_KalmarDisabled
HudScript HES_StarBeam
HudScript HES_PeachBeamDisabled
HudScript HES_PeachBeam
HudScript HES_Klevar
HudScript HES_StarBeamDisabled
HudScript HES_Skolar
HudScript HES_SkolarDisabled
HudScript HES_KlevarDisabled

Definition at line 121 of file btl_states_menus.c.

Referenced by btl_state_update_partner_menu(), and btl_state_update_player_menu().

◆ PartnerHudScripts

IconHudScriptPair PartnerHudScripts[]
Initial value:
= {
}
HudScript HES_BombetteDisabled
HudScript HES_Parakarry
HudScript HES_PartnerADisabled
HudScript HES_BowDisabled
HudScript HES_LakilesterDisabled
HudScript HES_SushieDisabled
HudScript HES_KooperDisabled
HudScript HES_GoombarioDisabled
HudScript HES_ParakarryDisabled
HudScript HES_Partner0Disabled
HudScript HES_WattDisabled
HudScript HES_Sushie
HudScript HES_Partner0
HudScript HES_PartnerA
HudScript HES_Kooper
HudScript HES_Watt
HudScript HES_Lakilester
HudScript HES_Bow
HudScript HES_Bombette
HudScript HES_Goombario

Definition at line 136 of file btl_states_menus.c.

Referenced by btl_state_update_partner_menu(), and btl_state_update_player_menu().

◆ StrategiesHudScripts

Definition at line 155 of file btl_states_menus.c.

HudScript HES_MenuStrategiesDisabled
HudScript HES_MenuStrategies

Referenced by btl_state_update_partner_menu(), and btl_state_update_player_menu().

◆ DoNothingHudScripts

Definition at line 157 of file btl_states_menus.c.

HudScript HES_MenuDoNothing
HudScript HES_MenuDoNothingDisabled

Referenced by btl_state_update_partner_menu(), and btl_state_update_player_menu().

◆ FleeHudScripts

Definition at line 159 of file btl_states_menus.c.

HudScript HES_MenuFlee
HudScript HES_MenuFleeDisabled

Referenced by btl_state_update_player_menu().

◆ LeftJustMenuMessages

◆ CenteredBattleMessages

◆ BattleMenu_ChooseDelay

◆ BattleMenu_TargetPointerAlpha

BSS s32 BattleMenu_TargetPointerAlpha

◆ BattleMenu_TargetNameOffsetX

BSS s32 BattleMenu_TargetNameOffsetX

◆ BattleMenu_SwapDelay

◆ BattleMenu_TargetHudElems

BSS s32 BattleMenu_TargetHudElems[MAX_ENEMY_ACTORS]

◆ BattlePopupMenu

BSS PopupMenu BattlePopupMenu

◆ BattleMenuState

◆ BattleMenu_ReelAppearTimer

BSS s8 BattleMenu_ReelAppearTimer

Definition at line 198 of file btl_states_menus.c.

Referenced by btl_main_menu_hide(), and btl_main_menu_update().

◆ BattleMenu_CurPos

◆ BattleMenu_PrevPos

BSS s8 BattleMenu_PrevPos

Definition at line 200 of file btl_states_menus.c.

Referenced by btl_main_menu_update().

◆ BattleMenu_WheelMoving

BSS b8 BattleMenu_WheelMoving

Definition at line 201 of file btl_states_menus.c.

Referenced by btl_main_menu_draw(), and btl_main_menu_update().

◆ BattleMenu_ReelAlpha

BSS s16 BattleMenu_ReelAlpha

◆ BattleMenuAlpha

◆ BattleMenu_ReelHidePercent

BSS s16 BattleMenu_ReelHidePercent

Definition at line 204 of file btl_states_menus.c.

Referenced by btl_main_menu_draw(), and btl_main_menu_update().

◆ HID_HighlightSpot

BSS HudElemID HID_HighlightSpot

◆ HID_ProjectorReelA

BSS HudElemID HID_ProjectorReelA

◆ HID_ProjectorReelB

BSS HudElemID HID_ProjectorReelB

◆ HID_ProjectorBeam

BSS HudElemID HID_ProjectorBeam

◆ HID_SwapZ

BSS HudElemID HID_SwapZ

◆ HID_SwapArrowLeft

BSS HudElemID HID_SwapArrowLeft

◆ HID_SwapArrowRight

BSS HudElemID HID_SwapArrowRight

◆ HID_SwapBackground

BSS HudElemID HID_SwapBackground

◆ BattleMenu_BasePosX

BSS s32 BattleMenu_BasePosX

Definition at line 213 of file btl_states_menus.c.

Referenced by btl_main_menu_draw(), and btl_main_menu_update().

◆ BattleMenu_BasePosY

BSS s32 BattleMenu_BasePosY

Definition at line 214 of file btl_states_menus.c.

Referenced by btl_main_menu_draw(), and btl_main_menu_update().

◆ BattleMenu_ErrorCode

BSS s8 BattleMenu_ErrorCode

Definition at line 215 of file btl_states_menus.c.

Referenced by btl_main_menu_init(), and btl_main_menu_update().

◆ BattleMenu_MinIdx

BSS s8 BattleMenu_MinIdx

Definition at line 216 of file btl_states_menus.c.

Referenced by btl_main_menu_update().

◆ BattleMenu_MaxIdx

BSS s8 BattleMenu_MaxIdx

Definition at line 217 of file btl_states_menus.c.

Referenced by btl_main_menu_update().

◆ BattleMenu_HomePos

◆ BattleMenu_PrevSelected

◆ BattleMenu_WheelBase

◆ BattleMenu_WheelAngle

BSS f32 BattleMenu_WheelAngle

Definition at line 221 of file btl_states_menus.c.

Referenced by btl_main_menu_draw(), and btl_main_menu_update().

◆ BattleMenu_WheelSpeed

BSS f32 BattleMenu_WheelSpeed

Definition at line 222 of file btl_states_menus.c.

Referenced by btl_main_menu_draw(), and btl_main_menu_update().

◆ BattleMenu_ShowSwapIcons

◆ WheelOptionHudScript

◆ HID_OptionIcons

BSS HudElemID HID_OptionIcons[6]

◆ HID_Spotlights

BSS HudElemID HID_Spotlights[6]

◆ WheelOptionName

◆ WheelOptionSubmenu

◆ WheelOptionEnabled

◆ WheelOptionError

◆ WheelOptionCount