Go to the source code of this file.
◆ update()
Definition at line 69 of file stop_leech.c.
69 {
72 s32 hudElement;
73 s16 hudElementX;
74
75 switch (actionCommandStatus->
state) {
76 case 0:
79 if (actionCommandStatus->
showHud) {
81 }
85 if (actionCommandStatus->
showHud) {
87 }
88 actionCommandStatus->
state = 1;
89 break;
90 case 1:
92 hudElementX = actionCommandStatus->
hudPosX + 20;
93 actionCommandStatus->
hudPosX = hudElementX;
94 if (hudElementX > 50) {
95 actionCommandStatus->
hudPosX = 50;
96 }
99 break;
100 case 10:
104 break;
105 }
108 actionCommandStatus->
state = 11;
110 case 11:
115 }
116 } else {
119 }
123 }
124
128 actionCommandStatus->
state = 12;
129 break;
130 }
132 break;
133 case 12:
136 break;
137 }
141 default:
142 break;
143 }
144}
BSS ActionCommandStatus gActionCommandStatus
void action_command_free(void)
HudScript HES_MashAButton
void btl_set_popup_duration(s32 duration)
void hud_element_set_alpha(s32 id, s32 opacity)
void hud_element_set_script(s32 id, HudScript *anim)
void hud_element_set_render_pos(s32 id, s32 x, s32 y)
void hud_element_clear_flags(s32 id, s32 flags)
Turns off the given flags.
@ HUD_ELEMENT_FLAG_DISABLED
s32 * actionCmdDifficultyTable
BattleStatus gBattleStatus
◆ draw()
Definition at line 146 of file stop_leech.c.
146 {
148 s32 x, y;
149 s32 hudElement;
150
153 }
154
159}
void draw_mash_meter_multicolor_with_divisor(s32 posX, s32 posY, s32 fillValue, s32 divisor)
void hud_element_get_render_pos(s32 id, s32 *x, s32 *y)
void hud_element_draw_clipped(s32 id)
◆ free()
Definition at line 161 of file stop_leech.c.
161 {
164}
void hud_element_free(s32 id)
◆ actionCmdTableStopLeech
s32 actionCmdTableStopLeech[] |
|
extern |
Definition at line 33 of file action_cmd.c.
33{ 130, 120, 110, 100, 90, 80, 70, 60 };