Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
pause_common.h
Go to the documentation of this file.
1#ifndef PAUSE_COMMON_H
2#define PAUSE_COMMON_H
3
4#include "common.h"
5#include "hud_element.h"
6
32extern HudScript HES_Clock;
47extern HudScript HES_Dash;
49#if VERSION_PAL
50extern HudScript HES_LabelBpNeeded_de;
51extern HudScript HES_LabelBpNeeded_fr;
52extern HudScript HES_LabelBpNeeded_es;
53#endif
70
100
101//bss
102extern s32 gPauseHeldButtons;
103extern s32 gPausePressedButtons;
104extern s32 gPauseCurrentDescMsg;
106extern s32 gPauseCursorIconID;
107extern s8 gPauseMenuCurrentTab;
108
109void pause_update_tab_default(s32 windowIndex, s32* flags, s32* posX, s32* posY, s32* posZ, f32* scaleX, f32* scaleY,
110 f32* rotX, f32* rotY, f32* rotZ, s32* darkening, s32* opacity);
111void pause_update_tab_active(s32 windowIndex, s32* flags, s32* posX, s32* posY, s32* posZ, f32* scaleX, f32* scaleY,
112 f32* rotX, f32* rotY, f32* rotZ, s32* darkening, s32* opacity);
113void pause_update_tab_inactive(s32 windowIndex, s32* flags, s32* posX, s32* posY, s32* posZ, f32* scaleX, f32* scaleY,
114 f32* rotX, f32* rotY, f32* rotZ, s32* darkening, s32* opacity);
115void pause_update_page_active_1(s32 windowIndex, s32* flags, s32* posX, s32* posY, s32* posZ, f32* scaleX, f32* scaleY,
116 f32* rotX, f32* rotY, f32* rotZ, s32* darkening, s32* opacity);
117void pause_update_page_inactive_1(s32 windowIndex, s32* flags, s32* posX, s32* posY, s32* posZ, f32* scaleX, f32* scaleY,
118 f32* rotX, f32* rotY, f32* rotZ, s32* darkening, s32* opacity);
119void pause_update_page_active_2(s32 windowIndex, s32* flags, s32* posX, s32* posY, s32* posZ, f32* scaleX, f32* scaleY,
120 f32* rotX, f32* rotY, f32* rotZ, s32* darkening, s32* opacity);
121void pause_update_page_inactive_2(s32 windowIndex, s32* flags, s32* posX, s32* posY, s32* posZ, f32* scaleX, f32* scaleY,
122 f32* rotX, f32* rotY, f32* rotZ, s32* darkening, s32* opacity);
123
124void pause_set_cursor_pos(s32 windowID, s32 posX, s32 posY);
125void pause_set_cursor_pos_immediate(s32 windowID, s32 posX, s32 posY);
126void pause_set_cursor_opacity(s32 val);
127void pause_draw_menu_label(s32 index, s32 x, s32 y);
129void pause_draw_rect(s32 ulx, s32 uly, s32 lrx, s32 lry, s32 tileIdx, s32 uls, s32 ult, s32 dsdx, s32 dtdy);
130s32 pause_get_menu_msg(s32 index);
131s32 pause_interp_vertical_scroll(s32 deltaBefore);
132void pause_sort_item_list(s16* arr, s32 len, s32 (*compare)(s16*, s16 *));
133
145
147 /* 0x00 */ PAUSE_MSG_NONE,
170#if !VERSION_PAL
171 /* 0x17 */ PAUSE_MSG_17,
172 /* 0x18 */ PAUSE_MSG_18,
173 /* 0x19 */ PAUSE_MSG_19,
174 /* 0x1A */ PAUSE_MSG_1A,
175#endif
206 /* 0x39 */ PAUSE_MSG_SLASH,
207 /* 0x3A */ PAUSE_MSG_DOT,
208#if !VERSION_PAL
209 /* 0x3B */ PAUSE_MSG_3B,
210#endif
211 /* 0x3C */ PAUSE_MSG_3C,
212 /* 0x3D */ PAUSE_MSG_3D,
213 /* 0x3E */ PAUSE_MSG_3E,
214#if !VERSION_PAL
215 /* 0x3F */ PAUSE_MSG_3F,
216#endif
217 /* 0x40 */ PAUSE_MSG_40,
218 /* 0x41 */ PAUSE_MSG_41,
219 /* 0x42 */ PAUSE_MSG_42,
220 /* 0x43 */ PAUSE_MSG_MARIO,
221 /* 0x44 */ PAUSE_MSG_LEVEL,
225#if VERSION_PAL
226 /* */ PAUSE_MSG_PAL_42,
227#endif
236#if VERSION_PAL
237 /* */ PAUSE_MSG_PAL_4B,
238#endif
246};
247
248#endif
s8 flags
Definition demo_api.c:15
s32 HudScript[]
Definition hud_element.h:9
HudScript HES_HeaderMap
HudScript HES_PartnerRank
s32 gPausePressedButtons
Definition pause_main.c:24
HudScript * gPauseCurrentDescIconScript
Definition pause_main.c:26
WindowStyleCustom gPauseWS_21
WindowStyleCustom gPauseWS_2
HudScript HES_MoveBlueOrb
HudScript HES_PressStartButton
HudScript HES_StatusSPIncrement6
IconHudScriptPair gItemHudScripts[]
void pause_update_page_active_2(s32 windowIndex, s32 *flags, s32 *posX, s32 *posY, s32 *posZ, f32 *scaleX, f32 *scaleY, f32 *rotX, f32 *rotY, f32 *rotZ, s32 *darkening, s32 *opacity)
Definition pause_main.c:369
s32 pause_interp_vertical_scroll(s32 deltaBefore)
Definition pause_main.c:451
WindowStyleCustom gPauseWS_26
HudScript HES_HeaderParty
HudScript HES_MarioHeadSmall
WindowStyleCustom gPauseWS_0
HudScript HES_Dash
HudScript HES_StatusSPIncrement4
WindowStyleCustom gPauseWS_11
HudScript HES_DescMsgNext
WindowStyleCustom gPauseWS_19
HudScript HES_StatusStar1
HudScript HES_ListPrevPage
WindowStyleCustom gPauseWS_27
HudScript HES_StatusSPIncrement3
HudScript HES_StatBoots3
WindowStyleCustom gPauseWS_20
HudScript HES_DescMsgPrev
HudScript HES_AnimatedCursorHand
HudScript HES_StatHammer3
WindowStyleCustom gPauseWS_13
WindowStyleCustom gPauseWS_5
HudScript HES_StatHammer1
WindowStyleCustom gPauseWS_6
HudScript HES_StatusStarEmpty
WindowStyleCustom gPauseWS_4
void pause_update_page_inactive_2(s32 windowIndex, s32 *flags, s32 *posX, s32 *posY, s32 *posZ, f32 *scaleX, f32 *scaleY, f32 *rotX, f32 *rotY, f32 *rotZ, s32 *darkening, s32 *opacity)
Definition pause_main.c:421
HudScript HES_UnusedBadge
HudScript HES_StatusStarPoint
HudScript HES_HeaderSpirits
s32 pause_get_total_equipped_bp_cost(void)
Definition pause_main.c:825
HudScript HES_StatBoots1
HudScript HES_Clock
HudScript HES_StatusStar2
HudScript HES_StatusStar3
WindowStyleCustom gPauseWS_1
WindowStyleCustom gPauseWS_18
HudScript HES_MoveDiamond
HudScript HES_StatBoots0
void pause_set_cursor_opacity(s32 val)
Definition pause_main.c:192
HudScript HES_MapWalk0
HudScript HES_StatusSPIncrement7
HudScript HES_FPCost
void pause_update_tab_inactive(s32 windowIndex, s32 *flags, s32 *posX, s32 *posY, s32 *posZ, f32 *scaleX, f32 *scaleY, f32 *rotX, f32 *rotY, f32 *rotZ, s32 *darkening, s32 *opacity)
Definition pause_main.c:306
HudScript HES_StickTapRight
HudScript HES_StartButtonText
WindowStyleCustom gPauseWS_22
WindowStyleCustom gPauseWS_14
HudScript HES_StatFp_1
void pause_set_cursor_pos_immediate(s32 windowID, s32 posX, s32 posY)
Definition pause_main.c:196
s32 pause_get_menu_msg(s32 index)
Definition pause_gfx.c:583
void pause_update_tab_active(s32 windowIndex, s32 *flags, s32 *posX, s32 *posY, s32 *posZ, f32 *scaleX, f32 *scaleY, f32 *rotX, f32 *rotY, f32 *rotZ, s32 *darkening, s32 *opacity)
Definition pause_main.c:327
WindowStyleCustom gPauseWS_15
HudScript HES_StatBoots2
PauseMenuMessages
@ PAUSE_MSG_TIP_BP
@ PAUSE_MSG_DONT_WEAR_MORE
@ PAUSE_MSG_TIP_FP
@ PAUSE_MSG_TAB_BADGES
@ PAUSE_MSG_TUT_DESC_3
@ PAUSE_MSG_18
@ PAUSE_MSG_TUT_DESC_5
@ PAUSE_MSG_NO_BADGE
@ PAUSE_MSG_TUT_CMD_4
@ PAUSE_MSG_PARTNER_HP
@ PAUSE_MSG_TUT_DESC_4
@ PAUSE_MSG_TAB_MAP
@ PAUSE_MSG_LBL_TIME
@ PAUSE_MSG_TUT_DESC_1
@ PAUSE_MSG_TAB_STATS
@ PAUSE_MSG_LBL_STAR_PIECES
@ PAUSE_MSG_TIP_BOOTS_1
@ PAUSE_MSG_1A
@ PAUSE_MSG_TIP_STAR_PIECES
@ PAUSE_MSG_TUT_UNUSED_6
@ PAUSE_MSG_LBL_FP
@ PAUSE_MSG_PARTNER_FP
@ PAUSE_MSG_TIP_STAR_POINTS
@ PAUSE_MSG_BADGES
@ PAUSE_MSG_3F
@ PAUSE_MS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MABLES
@ PAUSE_MSG_TIP_STAR_POWER
@ PAUSE_MSG_NOT_ENOUGH_BP
@ PAUSE_MSG_BAGDE_DESC_NONE
@ PAUSE_MSG_TUT_NAME_BADGES
@ PAUSE_MSG_TIP_HAMMER_1
@ PAUSE_MSG_DOT
@ PAUSE_MSG_TUT_CMD_7
@ PAUSE_MSG_PARTNER_ABILITIES
@ PAUSE_MSG_TUT_UNUSED_1
@ PAUSE_MSG_BAGDE_DESC_ACTIVE
@ PAUSE_MSG_TIP_COINS
@ PAUSE_MSG_3B
HudScript HES_PressAButton
void pause_update_page_inactive_1(s32 windowIndex, s32 *flags, s32 *posX, s32 *posY, s32 *posZ, f32 *scaleX, f32 *scaleY, f32 *rotX, f32 *rotY, f32 *rotZ, s32 *darkening, s32 *opacity)
Definition pause_main.c:405
WindowStyleCustom gPauseWS_3
void pause_update_tab_default(s32 windowIndex, s32 *flags, s32 *posX, s32 *posY, s32 *posZ, f32 *scaleX, f32 *scaleY, f32 *rotX, f32 *rotY, f32 *rotZ, s32 *darkening, s32 *opacity)
Definition pause_main.c:289
WindowStyleCustom gPauseWS_7
s32 gPauseCursorIconID
Definition pause_main.c:27
WindowStyleCustom gPauseWS_23
s32 gPauseHeldButtons
Definition pause_main.c:23
WindowStyleCustom gPauseWS_17
void pause_update_page_active_1(s32 windowIndex, s32 *flags, s32 *posX, s32 *posY, s32 *posZ, f32 *scaleX, f32 *scaleY, f32 *rotX, f32 *rotY, f32 *rotZ, s32 *darkening, s32 *opacity)
Definition pause_main.c:387
HudScript HES_HeaderStats
s8 gPauseMenuCurrentTab
Definition pause_main.c:28
HudScript HES_LabelBpNeeded
HudScript HES_StatusStar7
HudScript HES_StatusStar5
HudScript HES_StatusSPIncrement5
HudScript HES_HeaderItems
HudScript HES_StatHammer0
HudScript HES_MoveGreenOrb
HudScript HES_StatusSPIncrement2
WindowStyleCustom gPauseWS_9
WindowStyleCustom gPauseWS_8
void pause_draw_menu_label(s32 index, s32 x, s32 y)
Definition pause_gfx.c:587
WindowStyleCustom gPauseWS_12
void pause_set_cursor_pos(s32 windowID, s32 posX, s32 posY)
Definition pause_main.c:228
void pause_draw_rect(s32 ulx, s32 uly, s32 lrx, s32 lry, s32 tileIdx, s32 uls, s32 ult, s32 dsdx, s32 dtdy)
Definition pause_main.c:841
HudScript HES_ListNextPage
WindowStyleCustom gPauseWS_25
HudScript HES_StatusStar6
HudScript HES_StatBp
HudScript HES_MoveRedOrb
WindowStyleCustom gPauseWS_24
WindowStyleCustom gPauseWS_10
HudScript HES_StatStarPiece_1
void pause_sort_item_list(s16 *arr, s32 len, s32(*compare)(s16 *, s16 *))
Definition pause_main.c:851
HudScript HES_StatusHeart
HudScript HES_StatusStar4
HudScript HES_StatusSPEmptyIncrement
HudScript HES_HeaderBadges
HudScript HES_StatusSPIncrement1
WindowStyleCustom gPauseWS_16
PauseMenuLabels
@ PAUSE_LBL_ENERGY
@ PAUSE_LBL_BOOTS
@ PAUSE_LBL_ABILITIES
@ PAUSE_LBL_HAMMER
@ PAUSE_LBL_HP
@ PAUSE_LBL_AVAILABLE
@ PAUSE_LBL_STATS
@ PAUSE_LBL_BP
@ PAUSE_LBL_FP
WindowStyleCustom gPauseWS_28
HudScript HES_StatHammer2
s32 gPauseCurrentDescMsg
Definition pause_main.c:25
HudScript HES_StatTimes