93 {
99
100 switch (
acs->state) {
103
107 }
109
114 }
115
117 break;
120
122 if (
acs->hudPosX > 50) {
124 }
125
128 break;
131
132 if (
acs->prepareTime != 0) {
134 break;
135 }
136
138 acs->meterFillLevel = 0;
139 acs->squirt.draining =
false;
140 acs->stateTimer =
acs->duration;
143
144
147
148
149 cutoff =
acs->mashMeterCutoffs[
acs->mashMeterNumIntervals];
151 if (!
acs->squirt.draining) {
154 if (
acs->meterFillLevel < 0) {
155 acs->meterFillLevel = 0;
156 }
157 } else {
162 acs->squirt.draining =
true;
163 }
164 }
165 } else {
167 if (
acs->meterFillLevel <= 0) {
168 acs->meterFillLevel = 0;
169 acs->squirt.draining =
false;
170 }
171 }
172
175
180 }
181 } else {
184 }
185 }
186
187 if (
acs->stateTimer != 0) {
189 break;
190 }
191
192 if (
acs->meterFillLevel == 0) {
194 } else {
196 }
197
198
199 cutoff =
acs->mashMeterCutoffs[
acs->mashMeterNumIntervals - 1];
202 } else {
204 }
205
207
209 }
210
215 break;
217 if (
acs->stateTimer != 0) {
219 break;
220 }
222 break;
223 }
224}
BSS s32 PopupMenu_SelectedIndex
BSS ActionCommandStatus gActionCommandStatus
void action_command_free(void)
void increment_action_command_success_count(void)
#define AC_QUALITY_FAILED
#define SCALE_BY_PCT(x, pct)
HudScript HES_PressAButton
HudScript HES_AButtonDown
#define GET_DRAIN_RATE(pct)
#define GET_FILL_RATE(pct)
@ SOUND_LOOP_CHARGE_METER
@ ACTION_RESULT_METER_BELOW_HALF
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)
HudScript * hud_element_get_script(s32 id)
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)
BattleStatus gBattleStatus