papermario
Decompilation of Paper Mario
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
pause_main.c File Reference

Functions

void pause_tutorial_draw_contents (MenuPanel *menu, s32 baseX, s32 baseY, s32 width, s32 height, s32 opacity, s32 darkening)
 
void pause_main_draw_contents (MenuPanel *menu, s32 baseX, s32 baseY, s32 width, s32 height, s32 opacity, s32 darkening)
 
void pause_textbox_draw_contents (MenuPanel *menu, s32 baseX, s32 baseY, s32 width, s32 height, s32 opacity, s32 darkening)
 
void pause_draw_cursor (MenuPanel *menu, s32 baseX, s32 baseY, s32 width, s32 height, s32 opacity, s32 darkening)
 
void pause_set_cursor_opacity (s32 val)
 
void pause_set_cursor_pos_immediate (s32 windowID, s32 posX, s32 posY)
 
void pause_set_cursor_pos (s32 windowID, s32 posX, s32 posY)
 
void pause_interp_cursor (void)
 
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)
 
void func_80242FBC (s32 windowIndex, s32 *flags, s32 *posX, s32 *posY, s32 *posZ, f32 *scaleX, f32 *scaleY, f32 *rotX, f32 *rotY, f32 *rotZ, s32 *darkening, s32 *opacity)
 
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)
 
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)
 
void func_802430E4 (s32 windowIndex, s32 *flags, s32 *posX, s32 *posY, s32 *posZ, f32 *scaleX, f32 *scaleY, f32 *rotX, f32 *rotY, f32 *rotZ, s32 *darkening, s32 *opacity)
 
void func_8024313C (s32 windowIndex, s32 *flags, s32 *posX, s32 *posY, s32 *posZ, f32 *scaleX, f32 *scaleY, f32 *rotX, f32 *rotY, f32 *rotZ, s32 *darkening, s32 *opacity)
 
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)
 
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)
 
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)
 
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)
 
s32 pause_interp_text_scroll (s32 deltaBefore)
 
s32 pause_interp_vertical_scroll (s32 deltaBefore)
 
void pause_init (void)
 
void pause_tutorial_input (s32 *pressed, s32 *held)
 
void pause_handle_input (s32 pressed, s32 held)
 
void pause_cleanup (void)
 
s32 pause_get_total_equipped_bp_cost (void)
 
void pause_draw_rect (s32 ulx, s32 uly, s32 lrx, s32 lry, s32 tileIdx, s32 uls, s32 ult, s32 dsdx, s32 dtdy)
 
void pause_sort_item_list (s16 *arr, s32 len, s32(*compare)(s16 *, s16 *))
 

Variables

MenuPanel gPausePanelTabs
 
MenuPanel gPausePanelStats
 
MenuPanel gPausePanelBadges
 
MenuPanel gPausePanelItems
 
MenuPanel gPausePanelPartners
 
MenuPanel gPausePanelSpirits
 
MenuPanel gPausePanelMap
 
BSS s32 gPauseHeldButtons
 
BSS s32 gPausePressedButtons
 
BSS s32 gPauseCurrentDescMsg
 
BSS HudScriptgPauseCurrentDescIconScript
 
BSS HudElemID gPauseCursorHID
 
BSS s8 gPauseMenuCurrentTab
 
BSS s8 D_802700D [7]
 
MenuPanelgPausePanels []
 
s32 gPauseCursorPosX = 160
 
s32 gPauseCursorPosY = -120
 
s32 gPauseCursorOpacity = 0
 
s32 gPauseCursorTargetPosX = 160
 
s32 gPauseCursorTargetPosY = -120
 
s32 gPauseCursorTargetOpacity = 0
 
u32 D_8024EFB4 = 1
 
s16 D_8024EFB8 [] = { -10, -25, -42, -60, -80 }
 
u8 gPauseWindowFlipUpFlags [] = { DRAW_FLAG_ROTSCALE, DRAW_FLAG_ROTSCALE, DRAW_FLAG_ROTSCALE, DRAW_FLAG_ROTSCALE, DRAW_FLAG_ROTSCALE, 0, 0}
 
s16 gPauseWindowFlipUpAngles [] = { -80, -65, -38, -30, -10, 0 }
 
s16 gPauseWindowFlipUpAngles_2 [] = { 80, 65, 38, 30, 10, 0 }
 
u8 gPauseWindowFlipDownFlags [] = { DRAW_FLAG_ROTSCALE, DRAW_FLAG_ROTSCALE, DRAW_FLAG_ROTSCALE, DRAW_FLAG_ROTSCALE, DRAW_FLAG_ROTSCALE, DRAW_FLAG_ROTSCALE, 0, 0 }
 
u8 D_8024EFEC []
 
s16 gPauseWindowFlipDownAngles [] = { -10, -25, -42, -60, -80}
 
s16 gPauseWindowFlipDownAngles_2 [] = { 10, 25, 42, 60, 80 }
 
s32 gPauseTutorialState = -1
 
s32 gPauseTutorialInputState = 3
 
s32 gPauseTutorialButtons [] = { BUTTON_A, BUTTON_STICK_RIGHT, BUTTON_A, BUTTON_A, BUTTON_A, BUTTON_A, BUTTON_START }
 
s32 gPauseTutorialDescMessages []
 
s32 gPauseTutorialCmdMessages []
 
s32 D_8024F074 []
 
s32 gPauseTutorialIconIDs [] = { 5, 4, 5, 5, 5, 5, 6 }
 
u8 gPauseMenuTextScrollInterpEasingLUT [] = { 0, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8}
 
u8 gPauseMenuPageScrollInterpEasingLUT [] = { 0, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8}
 
s32 gPauseTutorialSpriteAnims [][4]
 
Vp gPauseTutorialViewport
 
s32 gPauseTutorialScrollPos = 0
 
MenuWindowBP gPauseCommonWindowsBPs []
 

Function Documentation

◆ func_80242FBC()

void func_80242FBC ( s32 windowIndex,
s32 * flags,
s32 * posX,
s32 * posY,
s32 * posZ,
f32 * scaleX,
f32 * scaleY,
f32 * rotX,
f32 * rotY,
f32 * rotZ,
s32 * darkening,
s32 * opacity )

◆ func_802430E4()

void func_802430E4 ( s32 windowIndex,
s32 * flags,
s32 * posX,
s32 * posY,
s32 * posZ,
f32 * scaleX,
f32 * scaleY,
f32 * rotX,
f32 * rotY,
f32 * rotZ,
s32 * darkening,
s32 * opacity )

◆ func_8024313C()

void func_8024313C ( s32 windowIndex,
s32 * flags,
s32 * posX,
s32 * posY,
s32 * posZ,
f32 * scaleX,
f32 * scaleY,
f32 * rotX,
f32 * rotY,
f32 * rotZ,
s32 * darkening,
s32 * opacity )

◆ pause_cleanup()

void pause_cleanup ( void )

Referenced by state_step_unpause().

◆ pause_draw_cursor()

void pause_draw_cursor ( MenuPanel * menu,
s32 baseX,
s32 baseY,
s32 width,
s32 height,
s32 opacity,
s32 darkening )

◆ pause_draw_rect()

void pause_draw_rect ( s32 ulx,
s32 uly,
s32 lrx,
s32 lry,
s32 tileIdx,
s32 uls,
s32 ult,
s32 dsdx,
s32 dtdy )

◆ pause_get_total_equipped_bp_cost()

s32 pause_get_total_equipped_bp_cost ( void )

◆ pause_handle_input()

void pause_handle_input ( s32 pressed,
s32 held )

Referenced by state_step_pause().

◆ pause_init()

void pause_init ( void )

Referenced by state_step_pause().

◆ pause_interp_cursor()

void pause_interp_cursor ( void )

Referenced by pause_draw_cursor().

◆ pause_interp_text_scroll()

s32 pause_interp_text_scroll ( s32 deltaBefore)

◆ pause_interp_vertical_scroll()

s32 pause_interp_vertical_scroll ( s32 deltaBefore)

◆ pause_main_draw_contents()

void pause_main_draw_contents ( MenuPanel * menu,
s32 baseX,
s32 baseY,
s32 width,
s32 height,
s32 opacity,
s32 darkening )

◆ pause_set_cursor_opacity()

void pause_set_cursor_opacity ( s32 val)

◆ pause_set_cursor_pos()

◆ pause_set_cursor_pos_immediate()

void pause_set_cursor_pos_immediate ( s32 windowID,
s32 posX,
s32 posY )

◆ pause_sort_item_list()

void pause_sort_item_list ( s16 * arr,
s32 len,
s32(*)(s16 *, s16 *) compare )

◆ pause_textbox_draw_contents()

void pause_textbox_draw_contents ( MenuPanel * menu,
s32 baseX,
s32 baseY,
s32 width,
s32 height,
s32 opacity,
s32 darkening )

◆ pause_tutorial_draw_contents()

void pause_tutorial_draw_contents ( MenuPanel * menu,
s32 baseX,
s32 baseY,
s32 width,
s32 height,
s32 opacity,
s32 darkening )

◆ pause_tutorial_input()

void pause_tutorial_input ( s32 * pressed,
s32 * held )

Referenced by pause_handle_input().

◆ pause_update_page_active_1()

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 )

Referenced by pause_tabs_update().

◆ pause_update_page_active_2()

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 )

Referenced by pause_tabs_update().

◆ pause_update_page_inactive_1()

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 )

Referenced by pause_tabs_update().

◆ pause_update_page_inactive_2()

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 )

Referenced by pause_tabs_update().

◆ pause_update_tab_active()

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 )

Referenced by pause_tabs_handle_input().

◆ pause_update_tab_default()

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 )

◆ pause_update_tab_inactive()

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 )

Referenced by pause_tabs_handle_input().

Variable Documentation

◆ D_8024EFB4

u32 D_8024EFB4 = 1

◆ D_8024EFB8

s16 D_8024EFB8[] = { -10, -25, -42, -60, -80 }

◆ D_8024EFEC

u8 D_8024EFEC[]
Initial value:
= { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x11, 0x00, 0x25, 0x00, 0x3C,
0x00, 0x55, 0x00, 0x6E }

◆ D_8024F074

s32 D_8024F074[]
Initial value:
= {
}
@ PAUSE_MSG_TUT_UNUSED_6
Definition pause_common.h:154
@ PAUSE_MSG_TUT_UNUSED_2
Definition pause_common.h:150
@ PAUSE_MSG_TUT_UNUSED_5
Definition pause_common.h:153
@ PAUSE_MSG_TUT_UNUSED_7
Definition pause_common.h:155
@ PAUSE_MSG_TUT_UNUSED_3
Definition pause_common.h:151
@ PAUSE_MSG_TUT_UNUSED_4
Definition pause_common.h:152
@ PAUSE_MSG_TUT_UNUSED_1
Definition pause_common.h:149

◆ D_802700D

BSS s8 D_802700D[7]

◆ gPauseCommonWindowsBPs

MenuWindowBP gPauseCommonWindowsBPs[]

Referenced by pause_init().

◆ gPauseCurrentDescIconScript

◆ gPauseCurrentDescMsg

◆ gPauseCursorHID

BSS HudElemID gPauseCursorHID

Referenced by pause_init().

◆ gPauseCursorOpacity

s32 gPauseCursorOpacity = 0

◆ gPauseCursorPosX

◆ gPauseCursorPosY

◆ gPauseCursorTargetOpacity

s32 gPauseCursorTargetOpacity = 0

◆ gPauseCursorTargetPosX

s32 gPauseCursorTargetPosX = 160

◆ gPauseCursorTargetPosY

s32 gPauseCursorTargetPosY = -120

◆ gPauseHeldButtons

◆ gPauseMenuCurrentTab

◆ gPauseMenuPageScrollInterpEasingLUT

u8 gPauseMenuPageScrollInterpEasingLUT[] = { 0, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8}

◆ gPauseMenuTextScrollInterpEasingLUT

u8 gPauseMenuTextScrollInterpEasingLUT[] = { 0, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8}

◆ gPausePanelBadges

MenuPanel gPausePanelBadges
extern

◆ gPausePanelItems

MenuPanel gPausePanelItems
extern

◆ gPausePanelMap

MenuPanel gPausePanelMap
extern

◆ gPausePanelPartners

MenuPanel gPausePanelPartners
extern

◆ gPausePanels

MenuPanel* gPausePanels[]
Initial value:
= {
}
MenuPanel gPausePanelSpirits
Definition pause_spirits.c:130
MenuPanel gPausePanelMap
Definition pause_map.c:79
MenuPanel gPausePanelTabs
Definition pause_tabs.c:202
MenuPanel gPausePanelStats
Definition pause_stats.c:238
MenuPanel gPausePanelItems
Definition pause_items.c:57
MenuPanel gPausePanelPartners
Definition pause_partners.c:271
MenuPanel gPausePanelBadges
Definition pause_badges.c:110

Referenced by pause_cleanup(), pause_handle_input(), pause_init(), pause_tabs_handle_input(), and pause_tabs_update().

◆ gPausePanelSpirits

MenuPanel gPausePanelSpirits
extern

◆ gPausePanelStats

MenuPanel gPausePanelStats
extern

◆ gPausePanelTabs

MenuPanel gPausePanelTabs
extern

◆ gPausePressedButtons

◆ gPauseTutorialButtons

s32 gPauseTutorialButtons[] = { BUTTON_A, BUTTON_STICK_RIGHT, BUTTON_A, BUTTON_A, BUTTON_A, BUTTON_A, BUTTON_START }

Referenced by pause_tutorial_input().

◆ gPauseTutorialCmdMessages

s32 gPauseTutorialCmdMessages[]
Initial value:
= {
}
@ PAUSE_MSG_TUT_CMD_4
Definition pause_common.h:166
@ PAUSE_MSG_TUT_CMD_3
Definition pause_common.h:165
@ PAUSE_MSG_TUT_CMD_1
Definition pause_common.h:163
@ PAUSE_MSG_TUT_CMD_5
Definition pause_common.h:167
@ PAUSE_MSG_TUT_CMD_6
Definition pause_common.h:168
@ PAUSE_MSG_TUT_CMD_2
Definition pause_common.h:164
@ PAUSE_MSG_TUT_CMD_7
Definition pause_common.h:169

Referenced by pause_tutorial_draw_contents().

◆ gPauseTutorialDescMessages

s32 gPauseTutorialDescMessages[]
Initial value:
= {
}
@ PAUSE_MSG_TUT_DESC_3
Definition pause_common.h:158
@ PAUSE_MSG_TUT_DESC_5
Definition pause_common.h:160
@ PAUSE_MSG_TUT_DESC_4
Definition pause_common.h:159
@ PAUSE_MSG_TUT_DESC_1
Definition pause_common.h:156
@ PAUSE_MSG_TUT_DESC_2
Definition pause_common.h:157
@ PAUSE_MSG_TUT_DESC_6
Definition pause_common.h:161
@ PAUSE_MSG_TUT_DESC_7
Definition pause_common.h:162

Referenced by pause_tutorial_draw_contents().

◆ gPauseTutorialIconIDs

s32 gPauseTutorialIconIDs[] = { 5, 4, 5, 5, 5, 5, 6 }

◆ gPauseTutorialInputState

s32 gPauseTutorialInputState = 3

Referenced by pause_tutorial_input().

◆ gPauseTutorialScrollPos

s32 gPauseTutorialScrollPos = 0

◆ gPauseTutorialSpriteAnims

s32 gPauseTutorialSpriteAnims[][4]
Initial value:
= {
{
ANIM_Goombaria_Still,
ANIM_Goombaria_Idle,
ANIM_Goombaria_Talk,
},
{
ANIM_WorldGoombario_Still,
ANIM_WorldGoombario_Idle,
ANIM_WorldGoombario_Talk,
},
{
ANIM_Goompa_Still,
ANIM_Goompa_Idle,
ANIM_Goompa_Talk,
}
}
#define ANIM_LIST_END
Terminates an extraAnimationList.
Definition types.h:22

Referenced by pause_handle_input(), and pause_init().

◆ gPauseTutorialState

s32 gPauseTutorialState = -1

◆ gPauseTutorialViewport

Vp gPauseTutorialViewport
Initial value:
= {
.vp = {
.vscale = { 640, 480, 511, 0 },
.vtrans = { 640, 480, 511, 0 },
}
}

Referenced by pause_tutorial_draw_contents().

◆ gPauseWindowFlipDownAngles

s16 gPauseWindowFlipDownAngles[] = { -10, -25, -42, -60, -80}

◆ gPauseWindowFlipDownAngles_2

s16 gPauseWindowFlipDownAngles_2[] = { 10, 25, 42, 60, 80 }

◆ gPauseWindowFlipDownFlags

◆ gPauseWindowFlipUpAngles

s16 gPauseWindowFlipUpAngles[] = { -80, -65, -38, -30, -10, 0 }

◆ gPauseWindowFlipUpAngles_2

s16 gPauseWindowFlipUpAngles_2[] = { 80, 65, 38, 30, 10, 0 }

◆ gPauseWindowFlipUpFlags