544 int16_t inactive_name_entry_option_string_ids[0x2];
548 int32_t inactive_option_index = 0;
550 inactive_name_entry_option_string_ids[0] = 9;
551 inactive_name_entry_option_string_ids[1] = 0xa;
553 int32_t inactive_option_y_offset = 0;
554 int16_t *inactive_option_string_cursor = inactive_name_entry_option_string_ids;
558 int32_t inactive_option_tint;
561 inactive_option_tint = 0;
564 uint32_t inactive_highlight_channel = (uint32_t)(uint8_t)highlight_tint;
569 char *inactive_option_text =
String_GetByIndex((int32_t)(uint16_t)*inactive_option_string_cursor);
574 ((inactive_window_height / 2) + inactive_option_y_offset - 0x20) <<
UI_PACKED_Y_SHIFT | (uint32_t)(uint16_t)(inactive_window_width / 2),
576 inactive_option_y_offset += 0x20;
577 inactive_option_index += 1;
578 inactive_option_string_cursor = &inactive_option_string_cursor[1];
579 }
while (inactive_option_y_offset < 0x40);
585 char glyph_text[0x2];
589 int32_t name_window_width = window_width_or_highlight_channel;
591 int32_t name_draw_x =
592 (name_window_width / 2) - (int64_t)(window_width_or_highlight_channel * 0x1e) / window_width_or_highlight_channel;
593 int32_t name_character_index = 0;
595 if (initial_name_cursor_index >= 0)
597 bool name_character_unselected = 0 != initial_name_cursor_index;
598 int32_t current_name_cursor_index;
604 if (name_character_unselected)
608 window_width_or_highlight_channel = (uint32_t)(uint8_t)highlight_tint;
617 int32_t name_height_low = name_window_height;
620 (
const char *)(&glyph_text), text_flags, NULL);
622 name_draw_x += (int64_t)(window_width_or_highlight_channel * 0x14) / window_width_or_highlight_channel;
623 name_character_index += 1;
625 name_character_unselected = name_character_index != current_name_cursor_index;
626 }
while (name_character_index <= current_name_cursor_index);
630 int32_t grid_draw_y = grid_window_height / 2;
631 int32_t charset_row = 0;
632 int32_t name_entry_row_y = grid_draw_y;
633 int32_t grid_row_index = 0;
637 if (charset_row != 4)
639 int32_t grid_column_index = 0;
640 int32_t grid_draw_x = (int64_t)(window_width_or_highlight_channel * 0x64) / window_width_or_highlight_channel;
644 int32_t grid_glyph_tint;
650 uint32_t grid_highlight_channel = (uint32_t)(uint8_t)highlight_tint;
661 grid_draw_x += (int64_t)(window_width_or_highlight_channel * 0x32) / window_width_or_highlight_channel;
662 grid_column_index += 1;
663 }
while (grid_column_index < 0xa);
667 uint32_t action_highlight_tint;
668 int32_t delete_action_tint;
672 action_highlight_tint = highlight_tint;
673 delete_action_tint = 0;
677 action_highlight_tint = highlight_tint;
679 uint32_t delete_highlight_channel = (uint32_t)(uint8_t)action_highlight_tint;
687 (uint32_t)((int16_t)((int64_t)(window_width_or_highlight_channel * 0x64) / window_width_or_highlight_channel) + (int16_t)(((int64_t)(window_width_or_highlight_channel * 0x32) / window_width_or_highlight_channel) << 1)) | packed_action_y,
690 int32_t finish_action_tint;
693 finish_action_tint = 0;
696 uint32_t finish_highlight_channel = (uint32_t)(uint8_t)action_highlight_tint;
702 int32_t action_column_spacing = (int64_t)(action_window_width * 0x32) / action_window_width;
705 (uint32_t)((int16_t)(action_column_spacing << 3) - (uint16_t)action_column_spacing + (int16_t)((int64_t)(action_window_width * 0x64) / action_window_width)) | packed_action_y,
710 bool has_more_grid_rows = grid_row_index + 1 < 5;
713 name_entry_row_y += 0x20;
715 if (!has_more_grid_rows)
718 charset_row = grid_row_index;
719 grid_draw_y = name_entry_row_y;
727 ((title_window_height / 2) - 0x80) <<
UI_PACKED_Y_SHIFT | (uint32_t)(uint16_t)(title_window_width / 2),