Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
battle_menu.h
Go to the documentation of this file.
1#ifndef _BATTLE_MENU_H_
2#define _BATTLE_MENU_H_
3
4#include "common.h"
5#include "hud_element.h"
6
7#define MENU_CHANGE_DELAY 8
8#define MENU_DIPPING_DELAY 5
9
10void btl_main_menu_init(void);
11
12// hides the main menu (wheel) (e.g., while choosing a target for an action)
13void btl_main_menu_hide(void);
14
15// restore main menu (wheel) to a choosing state immediately (e.g., after a submenu is closed)
17
18// restore main menu (wheel) to a choosing state after a one-frame transitional state
20
21// restore main menu (wheel) to a visible, but locked state (e.g., canceling target selection to reopen a submenu)
22// use this when the menu should be visibile, but in the background of another menu
24
25void btl_main_menu_destroy(void);
26
28void btl_main_menu_draw(void);
29
31
34
36
37void flush_popup_menu(void);
38void show_popup_menu(void);
39
40void btl_submenu_moves_init(void);
41void btl_submenu_moves_hide(void);
47
49void btl_menu_strats_init(void);
50
53
55
57void btl_init_menu_items(void);
59
61
62extern s32 StratsOptionHIDs[];
63extern s16 StratsMenuPosX;
64extern s16 StratsMenuPosY;
66extern s32 StratsOptionNames[]; // msg IDs
69
72extern s32 StratsOptionError[];
74
77
79
85
88
91
93
97
102
104extern s32 MovesOptionNames[24];
106extern s32 MovesOptionDiscounts[24];
108extern s32 MovesOptionBPCosts[24];
110extern s32 MovesOptionCount;
112extern s32 MovesOptionIndices[24];
113extern s32 MovesOptionEnabled[24];
114extern s32 MovesOptionDesc[24];
115extern s8 MovesOptionSortPriority[24];
116extern s8 MovesOptionError[24];
118
119extern s32 WheelOptionSubmenu[];
120extern s32 WheelOptionEnabled[];
121extern s32 WheelOptionError[];
123extern s32 WheelOptionName[];
124
126extern s32 WheelOptionCount;
127
131
133
144
145extern HudScript HES_Kooper;
155extern HudScript HES_Bow;
157extern HudScript HES_Watt;
159extern HudScript HES_Sushie;
165
172
179
182
185
188extern HudScript HES_Mamar;
190extern HudScript HES_Skolar;
196extern HudScript HES_Klevar;
198extern HudScript HES_Kalmar;
204
213
219
220extern HudScript HES_FPCost;
235extern HudScript HES_SwapZ;
236
238
240
241#endif
BSS s32 PopupMenu_SelectedIndex
HudScript HES_Muskular
HudScript HES_BombetteDisabled
void btl_main_menu_resume_choose(void)
HudScript HES_MenuBoots2Disabled
void create_battle_popup_menu(PopupMenu *popup)
void btl_main_menu_destroy(void)
HudScript * battle_menu_DisabledPartnerHudScripts[]
HudScript HES_POWCostReducedTwice
HudScript HES_MoveGreenOrbDisabled
HudScript HES_FPCostReducedTwice
void btl_main_menu_restore_choose(void)
HudScript HES_MenuHammer1
s8 BattleMenu_CurPos
HudScript HES_MuskularDisabled
s32 BattleMenu_ChooseDelay
s32 BattleMenu_TargetPointerAlpha
HudScript HES_HandPointer
HudScript HES_Parakarry
HudScript HES_MoveBlueOrb
IconHudScriptPair gItemHudScripts[]
HudScript HES_MenuHammer2
HudScript HES_MenuDefendDisabled
s32 MovesOptionNames[24]
Definition menu_moves.c:55
HudScript HES_Mamar
void btl_submenu_moves_restore_locked(void)
Definition menu_moves.c:249
s8 ShowingErrorMessage
Definition menu_strats.c:54
s16 StratsMenuPosY
Definition menu_strats.c:31
s32 MovesOptionCount
Definition menu_moves.c:65
HudScript HES_HandPointDownLoop
HudScript HES_MenuHammer1Disabled
s32 MovesOptionIndices[24]
Definition menu_moves.c:61
void btl_submenu_moves_resume_choose(void)
Definition menu_moves.c:167
IconHudScriptPair StarPowersHudScripts
void btl_init_menu_items(void)
Definition 190B20.c:601
s32 btl_submenu_moves_update(void)
Definition menu_moves.c:254
HudScript HES_MoveRedOrbDisabled
HudScript HES_MisstarDisabled
HudScript HES_HandPointLeftLoop
HudScript HES_Misstar
HudScript HES_MenuHammer3Disabled
HudScript HES_MenuHammer2Disabled
HudScript HES_PartnerADisabled
s32 WheelOptionEnabled[]
HudScript HES_BowDisabled
s32 WheelOptionName[]
HudScript HES_SwapArrowRight
HudScript HES_ProjectorBeam
s32 StratsOptionHIDs[]
Definition menu_strats.c:37
s32 MovesOptionEnabled[24]
Definition menu_moves.c:62
HudScript HES_LakilesterDisabled
void btl_main_menu_init(void)
void btl_submenu_moves_destroy(void)
Definition menu_moves.c:138
s32 btl_main_menu_update(void)
s32 BattleMenu_SwapDelay
void btl_submenu_strats_restore_choose(void)
HudScript * MovesOptionHudScripts[24]
Definition menu_moves.c:52
s32 StratsOptionNames[]
Definition menu_strats.c:38
s32 MovesOptionBPCosts[24]
Definition menu_moves.c:60
HudScript HES_MamarDisabled
HudScript HES_NotEnoughFP
HudScript HES_MenuStrategiesDisabled
HudScript HES_EldstarDisabled
HudScript HES_SushieDisabled
HudScript HES_GreenArrowDown
HudScript HES_SwapArrowLeft
HudScript HES_MenuBoots1Disabled
s32 MovesOptionDiscounts[24]
Definition menu_moves.c:58
HudScript HES_Kalmar
s32 UsingSpiritsSubmenu
Definition menu_moves.c:82
HudScript HES_ProjectorReel
HudScript HES_Eldstar
void btl_check_can_change_partner(void)
Definition 190B20.c:566
HudScript HES_KooperDisabled
HudScript HES_GoombarioDisabled
s32 BattleMenu_TargetHudElems[]
HudScript HES_MenuDoNothing
s32 WheelOptionError[]
HudScript HES_MenuFlee
HudScript HES_MenuItemDisabled
HudScript HES_MenuBoots3Disabled
s32 LeftJustMenuMessages[]
HudScript HES_MenuPouch
HudScript HES_ParakarryDisabled
s32 WheelOptionSubmenu[]
s32 StratsOptionError[]
Definition menu_strats.c:42
IconHudScriptPair StrategiesHudScripts
HudScript HES_GreenArrowUp
HudScript HES_MoveDiamond
HudScript HES_KalmarDisabled
HudScript HES_MenuStrategies
void flush_popup_menu(void)
s8 MovesOptionSortPriority[24]
Definition menu_moves.c:63
void btl_submenu_moves_restore_choose(void)
Definition menu_moves.c:207
HudScript HES_StarBeam
HudScript HES_FPCost
s8 BattleMenu_HomePos
void btl_submenu_strats_restore_locked(void)
void btl_submenu_moves_hide(void)
Definition menu_moves.c:134
HudScript HES_MoveBlueOrbDisabled
HudScript HES_PeachBeamDisabled
HudScript HES_NotEnoughPOW
s32 StratsOptionMessage[]
Definition menu_strats.c:41
s32 MenuIndexFromPartnerID[]
Definition 5B320.c:316
HudScript HES_MenuHammer3
HudScript HES_SwapBackground
HudScript HES_PeachBeam
HudScript HES_MenuItem
HudScript * StratsOptionHudScripts[]
Definition menu_strats.c:36
s32 MovesPrevSelected
Definition menu_moves.c:46
s16 StratsMenuPosX
Definition menu_strats.c:30
HudScript HES_Partner0Disabled
HudScript HES_MenuDefend
HudScript HES_WattDisabled
HudScript HES_MoveDiamond_disabled
s32 MovesOptionDesc[24]
Definition menu_moves.c:56
IconHudScriptPair PartnerHudScripts[]
HudScript HES_ProjectorSpot
HudScript HES_Klevar
HudScript HES_SwapZ
void btl_main_menu_restore_submenu(void)
HudScript HES_Sushie
s32 StratsPrevSelected
Definition menu_strats.c:34
void btl_main_menu_hide(void)
void btl_submenu_moves_init(void)
Definition menu_moves.c:94
HudScript HES_MenuPouchDisabled
HudScript * WheelOptionHudScript[]
b32 btl_partner_can_act(void)
HudScript HES_Partner0
HudScript HES_StarBeamDisabled
HudScript HES_POWCostReduced
void show_popup_menu(void)
IconHudScriptPair ItemsHudScripts
void btl_submenu_strats_hide(void)
HudScript HES_MenuBoots2
HudScript HES_PartnerA
HudScript HES_MenuBoots3
HudScript HES_MoveGreenOrb
void btl_submenu_strats_destroy(void)
s32 BattleMenu_WheelBase
HudScript HES_Kooper
HudScript HES_MenuStarPowerDisabled
s32 StratsOptionEnabled[]
Definition menu_strats.c:40
IconHudScriptPair DoNothingHudScripts
HudScript HES_Skolar
HudScript HES_SkolarDisabled
HudScript HES_YellowArrow
s32 BattleMenu_PrevSelected
IconHudScriptPair StarPowerMovesHudScripts[]
PopupMenu BattlePopupMenu
s32 WheelOptionCount
s32 BattleMenu_TargetNameOffsetX
HudScript HES_MoveRedOrb
void btl_main_menu_draw(void)
HudScript HES_POWCost
s8 MovesOptionError[24]
Definition menu_moves.c:64
s32 StratsOptionMenuTypes[]
Definition menu_strats.c:39
HudScript HES_Watt
b32 btl_player_can_act(void)
void btl_menu_strats_init(void)
Definition menu_strats.c:66
IconHudScriptPair FleeHudScripts
b32 BattleMenu_ShowSwapIcons
HudScript HES_FPCostReduced
HudScript HES_MenuFleeDisabled
s32 SelectedMovesIndex
Definition menu_moves.c:83
HudScript HES_MenuBoots1
s32 btl_submenu_strats_update(void)
s32 StratsOptionCount
Definition menu_strats.c:43
HudScript HES_StatusFlower
HudScript HES_Lakilester
HudScript HES_MenuDoNothingDisabled
HudScript HES_KlevarDisabled
HudScript HES_Bow
HudScript HES_Bombette
HudScript HES_Goombario
s32 PartnerNameMessages[]
HudScript HES_MenuStarPower
s32 MovesOptionDisplayCosts[24]
Definition menu_moves.c:57
s32 MovesOptionDiscountColors[24]
Definition menu_moves.c:59
s32 CenteredBattleMessages[]
void btl_submenu_strats_resume_choose(void)
s32 b32
s32 HudScript[]
Definition hud_element.h:9