37 uint32_t previous_button_bits, uint32_t entry_frame_flags)
68 navigation_selection = (int8_t)(navigation_selection + (up_pulse ? -1 : 1));
92 if (!confirmed_selection)
178 if (save_prompt_choice)
250 if (save_menu_choice)
274 if (save_menu_choice_before_up - 1 < 0)
284 if (save_menu_choice_before_down + 1 >= 2)
310 if (!continue_choice_or_context)
383 int32_t save_confirm_byte;
384 uint8_t save_completion_sound = out_result->
sound_effect;
393 uint8_t save_back_to_continue_sound = out_result->
sound_effect;
401 uint8_t save_back_to_prompt_sound = out_result->
sound_effect;
482 int16_t entry_level_or_menu_state;
484 if (initial_entry_flag)
516 if (!(uint8_t)entry_level_or_menu_state)
549 entry_level_or_menu_state)] =
550 (int16_t)((third_bonus_initial << 6 | second_bonus_initial) << 6) | first_bonus_initial;
554 if (!(uint8_t)entry_level_or_menu_state)
613 uint32_t highlight_tint;
615 if (!fade_counter_for_tint)
628 int32_t title_string_id;
630 if (render_level_id < LEVEL_CAMPAIGN_FIRST || render_level_id >=
LEVEL_AFTER_BONUS)
635 title_string_id = 0x50;
658 int32_t options_button_set =
661 if (options_button_set)
678 ((save_title_window_height / 2) - 0x80) <<
UI_PACKED_Y_SHIFT | (uint32_t)(uint16_t)(save_title_window_width / 2),
681 int32_t save_option_index = 0;
682 const int16_t save_option_string_ids[2] = {9, 10};
683 int32_t save_option_y_offset = 0;
687 int32_t save_option_tint;
690 save_option_tint = 0;
693 uint32_t save_highlight_channel = (uint32_t)(uint8_t)highlight_tint;
698 char *save_option_text =
String_GetByIndex((int32_t)save_option_string_ids[save_option_index]);
703 ((save_option_window_height / 2) + save_option_y_offset - 0x20) <<
UI_PACKED_Y_SHIFT | (uint32_t)(uint16_t)(save_option_window_width / 2),
705 save_option_y_offset += 0x20;
706 save_option_index += 1;
707 }
while (save_option_y_offset < 0x40);
728 ((pause_title_window_height / 2) - 0x80) <<
UI_PACKED_Y_SHIFT | (uint32_t)(uint16_t)(pause_title_window_width / 2),
734 int32_t pause_action_hidden;
737 pause_action_hidden = 1;
739 pause_action_hidden = 0;
741 int32_t bonus_action_hidden = (pause_menu_level_id < LEVEL_BONUS_FIRST || pause_menu_level_id >=
LEVEL_AFTER_BONUS);
742 int32_t title_only_actions_hidden = (uint8_t)(pause_menu_level_id != 6);
743 const int16_t pause_option_string_ids[2] = {10, 11};
745 int32_t pause_option_y = (pause_window_height / 2) - ((7 - (title_only_actions_hidden << 1) - bonus_action_hidden - pause_action_hidden) >> 1 << 5);
755 if (pause_menu_level_id < LEVEL_BONUS_FIRST || pause_menu_level_id >=
LEVEL_AFTER_BONUS)
777 if (pause_menu_level_id < LEVEL_BONUS_FIRST || pause_menu_level_id >=
LEVEL_AFTER_BONUS)
784 if (pause_menu_level_id != 6)
791 if (pause_menu_level_id != 6)
797 string_id = (int32_t)pause_option_string_ids[pause_option_index];
799 int32_t pause_option_tint;
802 pause_option_tint = 0;
805 uint32_t pause_highlight_channel = (uint32_t)(uint8_t)highlight_tint;
814 (uint32_t)(uint16_t)(pause_option_window_width / 2) | pause_option_y <<
UI_PACKED_Y_SHIFT,
817 pause_option_y += 0x20;
829 (uint32_t)(uint16_t)(special_pause_window_width / 2) | special_pause_window_height / 2 <<
UI_PACKED_Y_SHIFT,
835 int32_t game_over_option_index = 0;
836 const int16_t game_over_string_ids[2] = {10, 13};
837 int32_t game_over_option_y_offset = 0;
841 int32_t game_over_option_tint;
844 game_over_option_tint = 0;
847 uint32_t game_over_highlight_channel = (uint32_t)(uint8_t)highlight_tint;
852 char *game_over_option_text =
String_GetByIndex((int32_t)game_over_string_ids[game_over_option_index]);
857 ((game_over_window_height / 2) + game_over_option_y_offset - 0x20) <<
UI_PACKED_Y_SHIFT | (uint32_t)(uint16_t)(game_over_window_width / 2),
859 game_over_option_y_offset += 0x20;
860 game_over_option_index += 1;
861 }
while (game_over_option_y_offset < 0x40);
879 if (fade_counter != 1)
887 if (fade_counter == 1)
char * String_GetByIndex(int32_t string_id)