Go to the source code of this file.
Macros | |
#define | BADGE_NONE_STANDIN 0x7FFE |
#define | BADGE_INVALID 0x7FFF |
#define | TRY_REMOVE_NOT_ENOUGH_BP_RESULT -1 |
#define | OFFSET_1_X 43 |
#define | OFFSET_1_Y 81 |
#define | OFFSET_2_X 16 |
#define | OFFSET_3_X 69 |
#define | OFFSET_3_Y 74 |
Enumerations | |
enum | BadgeEquipResult { EQUIP_RESULT_ALREADY_EQUIPPED , EQUIP_RESULT_NOT_ENOUGH_BP , EQUIP_RESULT_TOO_MANY_BADGES , EQUIP_RESULT_SUCCESS } |
Functions | |
void | pause_badges_draw_contents (MenuPanel *menu, s32 baseX, s32 baseY, s32 width, s32 height, s32 opacity, s32 darkening) |
void | pause_badges_init (MenuPanel *panel) |
void | pause_badges_handle_input (MenuPanel *panel) |
void | pause_badges_update (MenuPanel *panel) |
void | pause_badges_cleanup (MenuPanel *panel) |
s32 | pause_badges_comparator (s16 *a, s16 *b) |
s32 | pause_badges_count_all (void) |
s32 | pause_badges_count_equipped (void) |
s32 | pause_badges_get_pos_x (s32 page, s32 itemIndex) |
s32 | pause_badges_get_pos_y (s32 page, s32 itemIndex) |
s32 | pause_badges_get_column (s32 page, s32 itemIdx) |
s32 | pause_badges_get_row (s32 page, s32 itemIdx) |
s32 | pause_badges_is_visible (s32 y) |
s32 | pause_badges_scroll_offset_y (s32 offset) |
s32 | pause_badges_scroll_offset_x (s32 x) |
s32 | pause_badges_try_remove (s16 badgeID) |
s32 | pause_badges_try_equip (s16 badgeID) |
void | pause_badges_draw_bp_orbs (s32 orbState, s32 x, s32 y) |
void | pause_badges_load_badges (s32 onlyEquipped) |
Variables | |
Gfx | PauseGfxOrbs [] |
HudScript * | gPauseBadgesElements [][22] |
MenuWindowBP | gPauseBadgesWindowBPs [] |
MenuPanel | gPausePanelBadges |
#define BADGE_NONE_STANDIN 0x7FFE |
Definition at line 35 of file pause_badges.c.
Referenced by pause_badges_draw_contents(), pause_badges_handle_input(), pause_badges_init(), pause_badges_load_badges(), and pause_badges_try_equip().
#define BADGE_INVALID 0x7FFF |
Definition at line 37 of file pause_badges.c.
Referenced by pause_badges_comparator(), pause_badges_draw_contents(), pause_badges_handle_input(), pause_badges_load_badges(), pause_badges_try_equip(), and pause_badges_try_remove().
#define TRY_REMOVE_NOT_ENOUGH_BP_RESULT -1 |
Definition at line 40 of file pause_badges.c.
Referenced by pause_badges_handle_input(), and pause_badges_try_remove().
#define OFFSET_1_X 43 |
Definition at line 49 of file pause_badges.c.
Referenced by pause_badges_draw_contents().
#define OFFSET_1_Y 81 |
Definition at line 50 of file pause_badges.c.
Referenced by pause_badges_draw_contents().
#define OFFSET_2_X 16 |
Definition at line 51 of file pause_badges.c.
Referenced by pause_badges_draw_contents().
#define OFFSET_3_X 69 |
Definition at line 52 of file pause_badges.c.
Referenced by pause_badges_draw_contents().
#define OFFSET_3_Y 74 |
Definition at line 53 of file pause_badges.c.
Referenced by pause_badges_draw_contents().
enum BadgeEquipResult |
Enumerator | |
---|---|
EQUIP_RESULT_ALREADY_EQUIPPED | |
EQUIP_RESULT_NOT_ENOUGH_BP | |
EQUIP_RESULT_TOO_MANY_BADGES | |
EQUIP_RESULT_SUCCESS |
Definition at line 254 of file pause_badges.c.
void pause_badges_draw_contents | ( | MenuPanel * | menu, |
s32 | baseX, | ||
s32 | baseY, | ||
s32 | width, | ||
s32 | height, | ||
s32 | opacity, | ||
s32 | darkening ) |
Definition at line 323 of file pause_badges.c.
void pause_badges_init | ( | MenuPanel * | panel | ) |
Definition at line 911 of file pause_badges.c.
void pause_badges_handle_input | ( | MenuPanel * | panel | ) |
Definition at line 941 of file pause_badges.c.
void pause_badges_update | ( | MenuPanel * | panel | ) |
Definition at line 1111 of file pause_badges.c.
void pause_badges_cleanup | ( | MenuPanel * | panel | ) |
Definition at line 1132 of file pause_badges.c.
s32 pause_badges_comparator | ( | s16 * | a, |
s16 * | b ) |
Definition at line 129 of file pause_badges.c.
Referenced by pause_badges_count_all(), and pause_badges_count_equipped().
s32 pause_badges_count_all | ( | void | ) |
Definition at line 154 of file pause_badges.c.
Referenced by pause_badges_init().
s32 pause_badges_count_equipped | ( | void | ) |
Definition at line 169 of file pause_badges.c.
Referenced by pause_badges_load_badges().
s32 pause_badges_get_pos_x | ( | s32 | page, |
s32 | itemIndex ) |
Definition at line 184 of file pause_badges.c.
Referenced by pause_badges_draw_contents().
s32 pause_badges_get_pos_y | ( | s32 | page, |
s32 | itemIndex ) |
Definition at line 188 of file pause_badges.c.
Referenced by pause_badges_draw_contents(), pause_badges_load_badges(), and pause_badges_update().
s32 pause_badges_get_column | ( | s32 | page, |
s32 | itemIdx ) |
Definition at line 193 of file pause_badges.c.
Referenced by pause_badges_draw_contents().
s32 pause_badges_get_row | ( | s32 | page, |
s32 | itemIdx ) |
Definition at line 197 of file pause_badges.c.
Referenced by pause_badges_draw_contents().
s32 pause_badges_is_visible | ( | s32 | y | ) |
Definition at line 201 of file pause_badges.c.
Referenced by pause_badges_draw_contents().
s32 pause_badges_scroll_offset_y | ( | s32 | offset | ) |
Definition at line 209 of file pause_badges.c.
Referenced by pause_badges_draw_contents().
s32 pause_badges_scroll_offset_x | ( | s32 | x | ) |
Definition at line 213 of file pause_badges.c.
Referenced by pause_badges_draw_contents().
s32 pause_badges_try_remove | ( | s16 | badgeID | ) |
Definition at line 217 of file pause_badges.c.
Referenced by pause_badges_handle_input().
s32 pause_badges_try_equip | ( | s16 | badgeID | ) |
Definition at line 261 of file pause_badges.c.
Referenced by pause_badges_handle_input().
void pause_badges_draw_bp_orbs | ( | s32 | orbState, |
s32 | x, | ||
s32 | y ) |
Definition at line 307 of file pause_badges.c.
Referenced by pause_badges_draw_contents().
void pause_badges_load_badges | ( | s32 | onlyEquipped | ) |
Definition at line 829 of file pause_badges.c.
Referenced by pause_badges_handle_input(), and pause_badges_init().
|
extern |
Definition at line 264 of file pause_gfx.c.
Referenced by pause_badges_draw_contents().
HudScript* gPauseBadgesElements[][22] |
Definition at line 56 of file pause_badges.c.
Referenced by pause_badges_init().
MenuWindowBP gPauseBadgesWindowBPs[] |
Definition at line 97 of file pause_badges.c.
Referenced by pause_badges_init().
MenuPanel gPausePanelBadges |
Definition at line 113 of file pause_badges.c.