93 {
96
97 s32 buttonsPushed;
98 s32 frameCount;
99 s32 buttonsAB;
100 s32 bufferPos;
101 s32 hudElement;
102 s32 mashMeterIndex;
103 s32 mashMeterCutoff;
104 s8 adjustedFillLevel;
105
106 switch (actionCommandStatus->
state) {
107 case 0:
109
111 if (actionCommandStatus->
showHud) {
113 }
115
117 if (actionCommandStatus->
showHud) {
119 }
121
124 if (actionCommandStatus->
showHud) {
126 }
127
128 actionCommandStatus->
state = 1;
129 break;
130 case 1:
134 break;
135 }
136
137 actionCommandStatus->
hudPosX += 20;
138 if (actionCommandStatus->
hudPosX > 50) {
139 actionCommandStatus->
hudPosX = 50;
140 }
141
147 actionCommandStatus->
hudPosY + 28);
148 break;
149 case 10:
153 break;
154 }
158 actionCommandStatus->
unk_5C = 0;
160 actionCommandStatus->
state = 11;
161
162 case 11:
165 s16 newFillLevel;
166
170 s32 index;
171
172 mashMeterCutoff = mashMeterCutoffs[mashMeterIntervals];
173 index = actionCommandStatus->
barFillLevel / mashMeterCutoff / 20;
175 } else {
177 }
178
182 }
183 }
184
186 bufferPos -= 2;
187 if (bufferPos < 0) {
189 }
190
191 buttonsPushed = 0;
192 frameCount = 1;
193
194 while (frameCount >= 0) {
197 }
198
200 frameCount--;
201 }
202
204 if ((buttonsPushed & buttonsAB) == buttonsAB) {
206 s32 fillLevel;
207
210
211
212
213
214
215 buttonsPushed = fillLevel / 100;
216
218 } else {
220
223 }
224 }
225
227 bufferPos -= 2;
228 if (bufferPos < 0) {
230 }
231
232 frameCount = 1;
233 while (frameCount >= 0) {
236 }
237
239 frameCount--;
240 }
241 }
242
248 actionCommandStatus->
hudPosY + 28);
250 }
251
252 adjustedFillLevel = actionCommandStatus->
barFillLevel / 100;
253
255
257 s16 threshold;
258
259
260
261
264 buttonsPushed = 0;
265 }
266
267 if (buttonsPushed == 0) {
269 } else {
271 }
272
275 threshold = mashMeterCutoff / 2;
276
279 } else {
281 }
282
285 }
286
289 actionCommandStatus->
state = 12;
290 } else {
292 }
293 break;
294 case 12:
299 }
300 }
301
304 } else {
306 }
307 break;
308 }
309}
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
s32 * actionCmdDifficultyTable
BattleStatus gBattleStatus