98 {
101
102 s32 buttonsPushed;
103 s32 frameCount;
104 s32 buttonsAB;
105 s32 bufferPos;
106 s32 hudElement;
107 s32 mashMeterIndex;
108 s32 mashMeterCutoff;
109 s8 adjustedFillLevel;
110
111 switch (actionCommandStatus->
state) {
112 case 0:
114
116 if (actionCommandStatus->
showHud) {
118 }
120
122 if (actionCommandStatus->
showHud) {
124 }
126
129 if (actionCommandStatus->
showHud) {
131 }
132
133 actionCommandStatus->
state = 1;
134 break;
135 case 1:
139 break;
140 }
141
142 actionCommandStatus->
hudPosX += 20;
143 if (actionCommandStatus->
hudPosX > 50) {
144 actionCommandStatus->
hudPosX = 50;
145 }
146
152 actionCommandStatus->
hudPosY + 28);
153 break;
154 case 10:
158 break;
159 }
163 actionCommandStatus->
unk_5C = 0;
166 actionCommandStatus->
state = 11;
167 case 11:
170 s16 newFillLevel;
171
175 s32 index;
176
177 mashMeterCutoff = mashMeterCutoffs[mashMeterIntervals];
178 index = actionCommandStatus->
barFillLevel / mashMeterCutoff / 20;
180 } else {
182 }
183
187 }
188 }
189
191 bufferPos -= 2;
192 if (bufferPos < 0) {
194 }
195
196 buttonsPushed = 0;
197 frameCount = 1;
198
199 while (frameCount >= 0) {
202 }
203
205 frameCount--;
206 }
207
209 if ((buttonsPushed & buttonsAB) == buttonsAB) {
211 s32 fillLevel;
212
215
216
217
218
219
220 buttonsPushed = fillLevel / 100;
221
223 } else {
225
228 }
229 }
230
232 bufferPos -= 2;
233 if (bufferPos < 0) {
235 }
236
237 frameCount = 1;
238 while (frameCount >= 0) {
241 }
242
244 frameCount--;
245 }
246 }
247
253 actionCommandStatus->
hudPosY + 28);
255 }
256
257 adjustedFillLevel = actionCommandStatus->
barFillLevel / 100;
258
261
263 s16 threshold;
264
265
266
267
270 buttonsPushed = 0;
271 }
272
273 if (buttonsPushed == 0) {
275 } else {
277 }
278
281 threshold = mashMeterCutoff / 2;
282
285 } else {
287 }
288
291 }
292
296 actionCommandStatus->
state = 12;
297 } else {
299 }
300 break;
301 case 12:
306 }
307 }
308
311 } else {
313 }
314 break;
315 }
316}
BSS ActionCommandStatus gActionCommandStatus
void action_command_free(void)
HudScript HES_MashBButton1
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
void sfx_stop_sound(s32 soundID)
void sfx_adjust_env_sound_params(s32 soundID, u8 volume, u8 pan, s16 pitchShift)
void sfx_play_sound_with_params(s32 soundID, u8 volume, u8 pan, s16 pitchShift)
s32 * actionCmdDifficultyTable
BattleStatus gBattleStatus