44 if (pressed_button == VK_ESCAPE || (pressed_button == VK_RETURN && !
g_optionsMenuState))
55 if (binding_device_column)
68 if (column_after_conflict_check)
102 selected_row = row_before_down + 1;
116 int32_t selected_column;
122 int32_t row_before_up = selected_row;
128 if (row_before_up - 1 < 0)
146 int32_t column_before_left = selected_column;
148 selected_column -= 1;
152 if (column_before_left - 1 < 0)
156 selected_column = bottom_action_row_flag + 1;
176 if (selected_column + 1 > 2)
179 else if (selected_column + 1 > 1)
201 if (confirmed_action_column)
240 if (!no_confirm_pulse)
269 if (preset_before_down + 1 >= 4)
279 if (preset_before_up - 1 < 0)
289 if (!no_confirmation_down_pulse)
296 if (confirmation_before_down + 1 > 1)
306 if (confirmation_before_up - 1 < 0)
338 uint8_t action = out_result->
action;
348 int32_t next_selected_row;
352 next_selected_row = selected_row;
384 next_selected_row = selected_row;
389 next_selected_row = selected_row - 1;
391 if (selected_row - 1 < 0)
401 next_selected_row = selected_row + 1;
403 if (next_selected_row >= 7)
412 next_selected_row = selected_row;
417 if (!next_selected_row)
420 int32_t adjusted_music_volume;
433 if (adjusted_music_volume <= 6)
451 int32_t adjusted_sfx_volume;
464 if (adjusted_sfx_volume <= 6)
493 if (!rumble_suppressed)
509 if ((int8_t)(gamma_setting - 1) < 0)
534 next_selected_row = selected_row;
557 int16_t option_label_string_ids[0x7];
559 option_label_string_ids[0] = 5;
560 option_label_string_ids[1] = 6;
561 option_label_string_ids[2] = 7;
562 option_label_string_ids[3] = 0x29;
563 option_label_string_ids[4] = 0x81;
564 option_label_string_ids[5] = 0x76;
565 option_label_string_ids[6] = 8;
593 ((title_window_height / 2) - 0x80) <<
UI_PACKED_Y_SHIFT | (uint32_t)(uint16_t)(title_window_width / 2), text,
598 if (selected_option_index == 6)
601 for (int32_t i = 0; i < 7; i += 1)
605 if (i != selected_option_index)
609 uint32_t highlight_channel = (uint32_t)(uint8_t)highlight_tint;
614 char option_text_buffer[0x50];
649 char *rumble_setting_text =
671 while (label_scan_remaining)
673 bool label_char_nonzero = 0 != *(uint8_t *)label_scan;
675 label_scan = &label_scan[1];
676 label_scan_remaining -= 1;
678 if (!label_char_nonzero)
682 int32_t label_bytes_including_terminator = ~label_scan_remaining;
684 memcpy(option_text_buffer, label_scan - label_bytes_including_terminator, (uint32_t)label_bytes_including_terminator);
694 (((i - 3) << 5) + (option_window_height / 2)) <<
UI_PACKED_Y_SHIFT | (uint32_t)(uint16_t)(option_window_width / 2),
char * String_GetByIndex(int32_t string_id)