26s32* D_8028358C_2[] = {
30s8 D_8028374C_1BA13C[][4] = {
31 { 236, 0, 0, 0 }, { 204, 0, 0, 0 }, { 238, 0, 0, 0 }, { 248, 0, 0, 0 }, { 252, 0, 0, 0 },
32 { 252, 0, 0, 0 }, { 252, 0, 0, 0 }, { 252, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 },
33 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
34 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
35 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
36 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
37 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
38 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
39 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
40 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
41 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
42 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
43 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
44 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
45 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
46 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
47 { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 }, { 248, 0, 0, 0 },
67 { 3.5f, -1.0f, 0.0f },
68 { 3.0f, -2.0f, 0.0f },
69 { 2.0f, -3.0f, 0.0f },
70 { 1.0f, -4.0f, 0.0f },
71 { 0.0f, -4.5f, 0.0f },
206s32 D_80283B88_1BA578[] = { 1, 1, 1, 1, 1, 1, 1, 1 };
207s32 D_80283BA8_1BA598[] = { 0, 0, 0, 0, 1, 0, 0, 0 };
211 MSG_Menus_Party_Mario,
212 MSG_Menus_Party_Goombario,
213 MSG_Menus_Party_Kooper,
214 MSG_Menus_Party_Bombette,
215 MSG_Menus_Party_Parakarry,
216 MSG_Menus_Party_Goompa,
217 MSG_Menus_Party_Watt,
218 MSG_Menus_Party_Sushie,
219 MSG_Menus_Party_Lakilester,
221 MSG_Menus_Party_Goombaria,
222 MSG_Menus_Party_Twink,
223 MSG_Menus_Party_Peach
277 popup->
data.bonk = NULL;
286 if (popup->
data.bonk != NULL) {
288 popup->
data.bonk = NULL;
342 if (popup->
data.bonk != NULL) {
344 popup->
data.bonk = NULL;
356 b32 hasShortLifetime;
370 hasShortLifetime = TRUE;
374 hasShortLifetime = FALSE;
387 animDir = abs(animDir) % 5;
399 for (i = 0; i < numStars; i++) {
400 bonkData->
alive = TRUE;
407 bonkPosIdx = animDir % 8;
425 if (hasShortLifetime) {
429 bonkData->
alpha = 255.0f;
441 if (bonkData->
alive) {
478 bonkData->
alive = FALSE;
486 popup->
data.bonk = NULL;
506 if (bonkData->
alive) {
511 guRotateF(mtxRotX, 0.0f, 1.0f, 0.0f, 0.0f);
533 gDPSetPrimColor(
gMainGfxPos++, 0, 0, 0, 0, 0, (alphaAmt * 255) / 10);
547 if (bonkData->
alive) {
557API_CALLABLE(ShowImmuneBonk) {
558 Bytecode* args = script->ptrReadPos;
570API_CALLABLE(ForceImmuneBonkCleanup) {
588 popup->
data.bonk = NULL;
613 popup->
data.bonk = NULL;
659 s32 shouldDisposeWindow = FALSE;
661 s32 actionCommandMode;
739 shouldDisposeWindow = TRUE;
769 shouldDisposeWindow = TRUE;
1068 shouldDisposeWindow = TRUE;
1103 shouldDisposeWindow = TRUE;
1160 shouldDisposeWindow = TRUE;
1166 if (shouldDisposeWindow) {
1175#define TIP_X_HLT1 44
1176#define TIP_X_HLT2 67
1177#define TIP_X_PBST 124
1180#define TIP_X_HLA1 43
1181#define TIP_X_HLA2 177
1182#define TIP_X_PBS1 105
1183#define TIP_X_PBS2 83
1184#define TIP_X_PBS3 127
1185#define TIP_X_PWT1 40
1186#define TIP_X_PWT2 106
1188#define TIP_X_MB2 116
1190#define TIP_X_HTR1 39
1191#define TIP_X_HTR2 55
1192#define TIP_X_MTA1 53
1193#define TIP_X_MTA2 55
1194#define TIP_X_MTA3 108
1195#define TIP_X_BF_RD 66
1196#define TIP_Y_HLT2 31
1197#define TIP_Y_HLA2 17
1198#define TIP_Y_PBS1 14
1199#define TIP_Y_PBS2 14
1200#define TIP_Y_PBS3 14
1201#define TIP_Y_PWT1 14
1202#define TIP_Y_HTR1 31
1203#define TIP_Y_MTA1 14
1204#define TIP_Y_MTA2 32
1205#define TIP_Y_BF_RD 14
1206#define TIP_SCALE1 0.6f
1207#define TIP_SCALE2 0.7f
1209#define TIP_X_PRL 115
1210#define TIP_X_HLT1 29
1211#define TIP_X_HLT2 129
1212#define TIP_X_PBST 126
1215#define TIP_X_HLA1 29
1216#define TIP_X_HLA2 128
1217#define TIP_X_PBS1 111
1218#define TIP_X_PBS2 88
1219#define TIP_X_PBS3 134
1220#define TIP_X_PWT1 28
1221#define TIP_X_PWT2 160
1225#define TIP_X_HTR1 126
1226#define TIP_X_HTR2 28
1227#define TIP_X_MTA1 29
1228#define TIP_X_MTA2 153
1229#define TIP_X_MTA3 68
1230#define TIP_X_BF_RD 29
1231#define TIP_Y_HLT2 13
1232#define TIP_Y_HLA2 15
1233#define TIP_Y_PBS1 13
1234#define TIP_Y_PBS2 13
1235#define TIP_Y_PBS3 13
1236#define TIP_Y_PWT1 13
1237#define TIP_Y_HTR1 13
1238#define TIP_Y_MTA1 13
1239#define TIP_Y_MTA2 15
1240#define TIP_Y_BF_RD 13
1241#define TIP_SCALE1 0.8f
1242#define TIP_SCALE2 0.8f
1245#define TIP_X_HLT1 55
1246#define TIP_X_HLT2 73
1247#define TIP_X_PBST 64
1250#define TIP_X_HLA1 65
1251#define TIP_X_HLA2 146
1252#define TIP_X_PBS1 86
1253#define TIP_X_PBS2 64
1254#define TIP_X_PBS3 108
1255#define TIP_X_PWT1 105
1256#define TIP_X_PWT2 65
1259#define TIP_X_HTT 124
1260#define TIP_X_HTR1 56
1261#define TIP_X_HTR2 53
1262#define TIP_X_MTA1 107
1263#define TIP_X_MTA2 210
1264#define TIP_X_MTA3 56
1265#define TIP_X_BF_RD 64
1266#define TIP_Y_HLT2 31
1267#define TIP_Y_HLA2 32
1268#define TIP_Y_PBS1 13
1269#define TIP_Y_PBS2 13
1270#define TIP_Y_PBS3 13
1271#define TIP_Y_PWT1 13
1272#define TIP_Y_HTR1 31
1273#define TIP_Y_MTA1 13
1274#define TIP_Y_MTA2 15
1275#define TIP_Y_BF_RD 13
1276#define TIP_SCALE1 0.8f
1277#define TIP_SCALE2 0.8f
1669 posX = 160 - (msgWidth / 2);
1671 height = 28 + D_8028374C_1BA13C[popup->
messageIndex][1];
1683 posX = 160 - (msgWidth / 2);
1685 height = 45 + D_8028374C_1BA13C[popup->
messageIndex][1];
1714 posX = 160 - (msgWidth / 2);
1717 height = 28 + D_8028374C_1BA13C[popup->
messageIndex][1];
1742 posX = 160 - (msgWidth / 2);
1744 height = 40 + D_8028374C_1BA13C[popup->
messageIndex][1];
1760 posX = 160 - (msgWidth / 2);
1762 if (D_80283B88_1BA578[popup->
messageIndex - 10] != 0) {
1763 height = 45 + D_8028374C_1BA13C[popup->
messageIndex][1];
1765 height = 28 + D_8028374C_1BA13C[popup->
messageIndex][1];
1783 posX = 160 - (msgWidth / 2);
1785 if (D_80283BA8_1BA598[popup->
messageIndex - 18] != 0) {
1786 height = 45 + D_8028374C_1BA13C[popup->
messageIndex][1];
1788 height = 28 + D_8028374C_1BA13C[popup->
messageIndex][1];
1812 posX = 160 - (msgWidth / 2);
1814 height = 28 + D_8028374C_1BA13C[popup->
messageIndex][1];
1827 posX = 160 - (msgWidth / 2);
1829 height = 28 + D_8028374C_1BA13C[popup->
messageIndex][1];
1889 posX = 160 - (msgWidth / 2);
1907 posX = 160 - (msgWidth / 2);
1931 posX = 160 - (msgWidth / 2);
1947 posX = 160 - (msgWidth / 2);
1982 posX = 160 - (msgWidth / 2);
2007API_CALLABLE(ShowMessageBox) {
2008 Bytecode* args = script->ptrReadPos;
2016API_CALLABLE(ShowVariableMessageBox) {
2017 Bytecode* args = script->ptrReadPos;
2026API_CALLABLE(IsMessageBoxDisplayed) {
2027 Bytecode* args = script->ptrReadPos;
2028 s32 outVar = *args++;
2034API_CALLABLE(WaitForMessageBoxDone) {
2038API_CALLABLE(ForceCloseMessageBox) {
2045API_CALLABLE(SetMessageBoxDuration) {
2050API_CALLABLE(LockMessageBoxPosition) {
2055API_CALLABLE(UnlockMessageBoxPosition) {
2063 while (part != NULL) {
2075 y -= actor->
size.
y / 2;
2078 fx_flashing_box_shockwave(0, x, y, z, f1, f2);
HudScript HES_MashBButton1
HudScript HES_TimingReady
HudScript HES_StickNeutral
HudScript HES_MashAButton
HudScript HES_PressAButton
HudScript HES_StickMashLeft
HudScript HES_AButtonDown
HudScript HES_PressBButton
@ ACTION_COMMAND_MODE_TUTORIAL
@ ACTION_COMMAND_MODE_NOT_LEARNED
HudScript HES_PressCDownButton
PopupMessageCallback updateFunc
PopupMessageCallback renderUIFunc
struct ActorPart * partsTable
PopupMessageCallback renderWorldFunc
struct ActorPart * nextPart
union PopupMessage::@39 data
#define ASSERT(condition)
s32 load_entity_model(EntityModelScript *cmdList)
@ ENTITY_MODEL_FLAG_HIDDEN
@ BTL_MSG_STATE_POPUP_DISPOSE
@ BTL_MSG_STATE_POPUP_POST_DELAY
@ BTL_MSG_STATE_ERROR_PRE_DELAY
@ BTL_MSG_STATE_DISABLED_DELAY
@ BTL_MSG_STATE_ACTION_TIP_DELAY
@ BTL_MSG_STATE_ERROR_POST_DELAY
@ BTL_MSG_STATE_ERROR_DISPOSE
@ BTL_MSG_STATE_POPUP_PRE_DELAY
@ BTL_MSG_STATE_ERROR_DELAY
@ BTL_MSG_STATE_POPUP_DELAY
@ BTL_MSG_STATE_ACTION_TIP_DISPOSE
@ BTL_MSG_JUMP_DISABLED_1
@ BTL_MSG_ACTION_TIP_HOLD_THEN_TAP
@ BTL_MSG_ACTION_TIP_UNUSED_2
@ BTL_MSG_ACTION_TIP_MOVE_TO_AIM
@ BTL_MSG_STAR_POWER_MAXED
@ BTL_MSG_ACTION_TIP_UNUSED_3
@ BTL_MSG_CHARGE_HAMMER_MORE
@ BTL_MSG_ACTION_TIP_PRESS_BUTTONS_SHOWN
@ BTL_MSG_PLAYER_POISONED
@ BTL_MSG_TURBO_CHARGE_BEGIN
@ BTL_MSG_TURBO_CHARGE_END
@ BTL_MSG_ACTION_TIP_MASH_BUTTON
@ BTL_MSG_PLAYER_PARALYZED
@ BTL_MSG_ACTION_TIP_NOT_USED_3
@ BTL_MSG_ACTION_TIP_HOLD_LEFT_TIMED
@ BTL_MSG_HAMMER_DISABLED_3
@ BTL_MSG_CANT_SWITCH_UNUSED
@ BTL_MSG_ACTION_TIP_NOT_USED_1
@ BTL_MSG_ENEMY_CANT_MOVE
@ BTL_MSG_WATER_BLOCK_BEGIN
@ BTL_MSG_CANT_MOVE_UNUSED
@ BTL_MSG_ACTION_TIP_UNUSED_4
@ BTL_MSG_ENEMY_PARALYZED
@ BTL_MSG_ACTION_TIP_HOLD_THEN_RELEASE
@ BTL_MSG_UNUSED_CLOUD_NINE
@ BTL_MSG_ACTION_TIP_NOT_USED_2
@ BTL_MSG_ACTION_TIP_BREAK_FREE
@ BTL_MSG_ACTION_TIP_UNUSED_1
@ BTL_MSG_LAST_ACTION_TIP
@ BTL_MSG_ACTION_TIP_HOLD_LEFT_AIM
@ BTL_MSG_JUMP_DISABLED_3
@ BTL_MSG_CHILL_OUT_BEGIN
@ BTL_MSG_WATER_BLOCK_END
@ BTL_MSG_ACTION_TIP_PRESS_BEFORE_STRIKE
@ BTL_MSG_CANT_SELECT_NOW
@ BTL_MSG_ACTION_TIP_MASH_BOTH
@ BTL_MSG_FIRST_ACTION_TIP
@ BTL_MSG_CHARGE_JUMP_MORE
@ BTL_MSG_JUMP_DISABLED_2
@ BTL_MSG_PARTNER_INJURED
@ BTL_MSG_CHARGE_GOOMBARIO_MORE
@ BTL_MSG_CANT_SELECT_NOW_ALT
@ BTL_MSG_STAR_POWER_RECHARGED
@ BTL_MSG_NO_HAMMER_TARGET
@ BTL_MSG_ACTION_TIP_PRESS_BEFORE_LANDING
@ BTL_MSG_ACTION_TIP_PRESS_WITH_TIMING
@ BTL_MSG_CHARGE_GOOMBARIO
@ BTL_MSG_CLOUD_NINE_BEGIN
@ BTL_MSG_ENEMY_ELECTRIFIED
@ BTL_MSG_ACTION_TIP_REDUCE_DAMAGE
@ BTL_MSG_ENEMY_TRANSPARENT
@ BTL_MSG_ACTION_TIP_MASH_LEFT
@ BTL_MSG_HAMMER_DISABLED_1
@ BTL_MSG_PLAYER_TRANSPARENT
@ BTL_MSG_HAMMER_DISABLED_2
@ BTL_MSG_STAR_POWER_FILLED
@ WINDOW_UPDATE_SHOW_DARKENED
@ WINDOW_UPDATE_SHOW_TRANSPARENT
@ ACTOR_PART_FLAG_SKIP_SHOCK_EFFECT
@ ACTOR_PART_FLAG_INVISIBLE
s32 evt_get_variable(Evt *script, Bytecode var)
void draw_entity_model_A(s32, Mtx *)
void set_window_update(s32 panelID, s32)
void clear_entity_model_flags(s32 idx, s32 newFlags)
void set_entity_model_flags(s32 idx, s32 newFlags)
s32 evt_set_variable(Evt *script, Bytecode var, s32 value)
void exec_entity_model_commandlist(s32 idx)
void set_message_int_var(s32 value, s32 index)
void set_message_text_var(s32 msgID, s32 index)
void bind_entity_model_setupGfx(s32 idx, void *setupGfxCallbackArg0, void(*fpSetupGfxCallback)(void *))
void set_window_properties(s32 panelID, s32 posX, s32 posY, s32 width, s32 height, u8, void *drawContents, void *drawContentsArg, s8 parent)
void free_entity_model_by_index(s32 idx)
void * heap_malloc(s32 size)
s32 get_msg_lines(s32 messageID)
void hud_element_set_scale(s32 index, f32 scale)
void hud_element_set_alpha(s32 id, s32 opacity)
void hud_element_set_script(s32 id, HudScript *anim)
void hud_element_create_transform_B(s32 id)
void hud_element_set_render_pos(s32 id, s32 x, s32 y)
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_draw_clipped(s32 id)
void hud_element_free(s32 id)
void func_80144218(s32 id)
@ HUD_ELEMENT_FLAG_FILTER_TEX
BattleStatus gBattleStatus