Go to the source code of this file.
Macros | |
#define | MSG_ROM_START 0x1B83000 |
#define | CHOICE_POINTER_MOVE_RATE 6.0 |
#define | CHAR_SPACE_MULTIPLIER 0.6 |
Typedefs | |
typedef MessageImageData * | MessageImageDataList[1] |
Enumerations | |
enum | RewindArrowStates { REWIND_ARROW_STATE_INIT = 0 , REWIND_ARROW_STATE_GROW = 1 , REWIND_ARROW_STATE_NEUTRAL = 2 , REWIND_ARROW_STATE_CHANGE_COLOR = 3 , REWIND_ARROW_STATE_CHANGE_COLOR_BACK = 4 } |
Functions | |
s32 | draw_image_with_clipping (IMG_PTR raster, s32 width, s32 height, s32 fmt, s32 bitDepth, s16 posX, s16 posY, u16 clipULx, u16 clipULy, u16 clipLRx, u16 clipRLy) |
s32 | _update_message (MessagePrintState *printer) |
void | msg_copy_to_print_buffer (MessagePrintState *printer, s32 arg1, s32 arg2) |
void | initialize_printer (MessagePrintState *printer, s32 arg1, s32 arg2) |
MessagePrintState * | _msg_get_printer_for_msg (s32 msgID, s32 *donePrintingWriteback, s32 arg2) |
void | msg_update_rewind_arrow (s32) |
void | msg_draw_rewind_arrow (s32) |
void | msg_draw_choice_pointer (MessagePrintState *printer) |
void | draw_message_window (MessagePrintState *printer) |
void | appendGfx_message (MessagePrintState *, s16, s16, u16, u16, u16, u8) |
void | clear_character_set (void) |
void | clear_printers (void) |
void | load_font_data (Addr offset, u16 size, void *dest) |
void | load_font (s32 font) |
void | update_messages (void) |
void | render_messages (void) |
void | msg_play_speech_sound (MessagePrintState *printer, u8 character) |
void | dma_load_msg (u32 msgID, void *dest) |
s8 * | load_message_to_buffer (s32 msgID) |
MessagePrintState * | msg_get_printer_for_msg (s32 msgID, s32 *donePrintingWriteback) |
s32 | msg_printer_load_msg (s32 msgID, MessagePrintState *printer) |
void | msg_printer_set_origin_pos (MessagePrintState *msgPrintState, s32 x, s32 y) |
s32 | cancel_message (MessagePrintState *msgPrintState) |
void | set_message_images (MessageImageData *images) |
void | set_message_text_var (s32 msgID, s32 index) |
void | set_message_int_var (s32 value, s32 index) |
void | close_message (MessagePrintState *msgPrintState) |
s32 | msg_get_print_char_width (s32 character, s32 charset, s32 variation, f32 msgScale, s32 overrideCharWidth, u8 flags) |
s32 | msg_get_draw_char_width (s32 character, s32 charset, s32 variation, f32 msgScale, s32 overrideCharWidth, u16 flags) |
void | get_msg_properties (s32 msgID, s32 *height, s32 *width, s32 *maxLineChars, s32 *numLines, s32 *maxLinesPerPage, s32 *numSpaces, u16 charset) |
s32 | get_msg_width (s32 msgID, u16 charset) |
s32 | get_msg_lines (s32 msgID) |
void | draw_msg (s32 msgID, s32 posX, s32 posY, s32 opacity, s32 palette, u8 style) |
void | draw_digit (IMG_PTR img, s32 charset, s32 posX, s32 posY) |
void | draw_number (s32 value, s32 x, s32 y, s32 charset, s32 palette, s32 opacity, u16 style) |
Variables | |
Vp | D_8014C280 |
u8 | MessagePlural [] = { MSG_CHAR_LOWER_S, MSG_CHAR_READ_END } |
u8 | MessageSingular [] = { MSG_CHAR_READ_ENDL, MSG_CHAR_READ_END } |
s16 | gNextMessageBuffer = 0 |
Vtx | gRewindArrowQuad [] |
Gfx | D_8014C2D8 [] |
s32 | gMsgBGScrollAmtX |
u16 | gMsgGlobalWaveCounter |
MessageImageDataList | gMsgVarImages |
s32 | gMsgBGScrollAmtY |
u8 * | D_8015131C |
Gfx * | D_80151338 |
IMG_BIN | D_80159B50 [0x200] |
PAL_BIN | D_8015C7E0 [0x10] |
s16 | MsgStyleVerticalLineOffsets [] |
IMG_BIN | ui_msg_rewind_arrow_png [] |
PAL_BIN | ui_msg_rewind_arrow_pal [] |
IMG_BIN | ui_msg_star_png [] |
IMG_BIN | ui_msg_star_silhouette_png [] |
IMG_BIN | MsgCharImgTitle [] |
IMG_BIN | MsgCharImgNormal [] |
MessageCharset * | MsgCharsets [5] |
IMG_BIN | MsgCharImgSubtitle [] |
PAL_BIN | D_802F4560 [80][8] |
IMG_BIN | ui_point_right_png [] |
PAL_BIN | ui_point_right_pal [] |
MessageNumber | gMsgNumbers [] |
Gfx | gMsgDlistInitDrawNumber [] |
s32 | gItemIconRasterOffsets [] |
s32 | gItemIconPaletteOffsets [] |
IMG_PTR | MsgLetterRasterOffsets [] |
PAL_PTR | MsgLetterPaletteOffsets [] |
MsgVoice | MsgVoices [] |
#define MSG_ROM_START 0x1B83000 |
Definition at line 23 of file msg.c.
Referenced by dma_load_msg().
#define CHOICE_POINTER_MOVE_RATE 6.0 |
Definition at line 29 of file msg.c.
Referenced by msg_draw_choice_pointer().
#define CHAR_SPACE_MULTIPLIER 0.6 |
Definition at line 1575 of file msg.c.
Referenced by msg_get_draw_char_width(), and msg_get_print_char_width().
typedef MessageImageData* MessageImageDataList[1] |
enum RewindArrowStates |
Enumerator | |
---|---|
REWIND_ARROW_STATE_INIT | |
REWIND_ARROW_STATE_GROW | |
REWIND_ARROW_STATE_NEUTRAL | |
REWIND_ARROW_STATE_CHANGE_COLOR | |
REWIND_ARROW_STATE_CHANGE_COLOR_BACK |
Definition at line 10 of file msg.c.
s32 draw_image_with_clipping | ( | IMG_PTR | raster, |
s32 | width, | ||
s32 | height, | ||
s32 | fmt, | ||
s32 | bitDepth, | ||
s16 | posX, | ||
s16 | posY, | ||
u16 | clipULx, | ||
u16 | clipULy, | ||
u16 | clipLRx, | ||
u16 | clipRLy ) |
Referenced by msg_draw_choice_pointer().
s32 _update_message | ( | MessagePrintState * | printer | ) |
Definition at line 271 of file msg.c.
Referenced by update_messages().
void msg_copy_to_print_buffer | ( | MessagePrintState * | printer, |
s32 | arg1, | ||
s32 | arg2 ) |
Definition at line 642 of file msg.c.
Referenced by _update_message(), and draw_msg().
void initialize_printer | ( | MessagePrintState * | printer, |
s32 | arg1, | ||
s32 | arg2 ) |
Definition at line 1303 of file msg.c.
Referenced by _msg_get_printer_for_msg(), clear_printers(), and draw_msg().
MessagePrintState * _msg_get_printer_for_msg | ( | s32 | msgID, |
s32 * | donePrintingWriteback, | ||
s32 | arg2 ) |
Definition at line 1428 of file msg.c.
Referenced by msg_get_printer_for_msg().
void msg_update_rewind_arrow | ( | s32 | printerIndex | ) |
Definition at line 2061 of file msg.c.
Referenced by render_messages().
void msg_draw_rewind_arrow | ( | s32 | printerIndex | ) |
Definition at line 2145 of file msg.c.
Referenced by render_messages().
void msg_draw_choice_pointer | ( | MessagePrintState * | printer | ) |
Definition at line 2159 of file msg.c.
Referenced by render_messages().
void draw_message_window | ( | MessagePrintState * | printer | ) |
Definition at line 137 of file msg_draw.c.
Referenced by render_messages().
void appendGfx_message | ( | MessagePrintState * | printer, |
s16 | posX, | ||
s16 | posY, | ||
u16 | additionalOffsetX, | ||
u16 | additionalOffsetY, | ||
u16 | flag, | ||
u8 | alpha ) |
Definition at line 213 of file msg_draw.c.
Referenced by draw_message_window(), draw_msg(), and drawbox_message_delegate().
void clear_character_set | ( | void | ) |
Definition at line 192 of file msg.c.
Referenced by load_engine_data().
void clear_printers | ( | void | ) |
Definition at line 196 of file msg.c.
Referenced by load_demo_battle(), load_engine_data(), load_map_by_IDs(), state_init_title_screen(), state_step_demo(), state_step_intro(), and state_step_startup().
void load_font_data | ( | Addr | offset, |
u16 | size, | ||
void * | dest ) |
Definition at line 218 of file msg.c.
Referenced by filemenu_draw_char(), load_font(), and msg_draw_char().
void load_font | ( | s32 | font | ) |
Definition at line 225 of file msg.c.
Referenced by clear_printers().
void update_messages | ( | void | ) |
Definition at line 247 of file msg.c.
Referenced by step_game_loop().
void render_messages | ( | void | ) |
Definition at line 568 of file msg.c.
Referenced by gfx_draw_frame().
void msg_play_speech_sound | ( | MessagePrintState * | printer, |
u8 | character ) |
Definition at line 609 of file msg.c.
Referenced by msg_copy_to_print_buffer().
void dma_load_msg | ( | u32 | msgID, |
void * | dest ) |
Definition at line 1396 of file msg.c.
Referenced by draw_msg(), get_msg_properties(), load_message_to_buffer(), and set_message_text_var().
s8 * load_message_to_buffer | ( | s32 | msgID | ) |
Definition at line 1410 of file msg.c.
Referenced by _msg_get_printer_for_msg(), and msg_printer_load_msg().
MessagePrintState * msg_get_printer_for_msg | ( | s32 | msgID, |
s32 * | donePrintingWriteback ) |
Definition at line 1424 of file msg.c.
Referenced by _show_message(), entity_HeartBlock_show_tutorial_message(), entity_SaveBlock_show_choice_message(), entity_SaveBlock_show_tutorial_message(), popup_menu_update(), and update_item_entity_pickup().
s32 msg_printer_load_msg | ( | s32 | msgID, |
MessagePrintState * | printer ) |
Definition at line 1474 of file msg.c.
Referenced by _show_message(), and entity_SaveBlock_show_result_message().
void msg_printer_set_origin_pos | ( | MessagePrintState * | msgPrintState, |
s32 | x, | ||
s32 | y ) |
Definition at line 1489 of file msg.c.
Referenced by _show_message(), popup_menu_update(), and update_item_entity_pickup().
s32 cancel_message | ( | MessagePrintState * | msgPrintState | ) |
Definition at line 1507 of file msg.c.
Referenced by cancel_current_message().
void set_message_images | ( | MessageImageData * | images | ) |
void set_message_text_var | ( | s32 | msgID, |
s32 | index ) |
Definition at line 1520 of file msg.c.
Referenced by btl_message_popup_draw_content(), btl_show_message_popup(), draw_content_pickup_item_header(), func_801363A0(), shop_owner_buy_dialog(), and shop_owner_continue_speech_with_quantity().
void set_message_int_var | ( | s32 | value, |
s32 | index ) |
Definition at line 1550 of file msg.c.
Referenced by btl_message_popup_draw_content(), btl_show_message_popup(), popup_menu_draw_menu_contents(), shop_owner_buy_dialog(), and shop_owner_continue_speech_with_quantity().
void close_message | ( | MessagePrintState * | msgPrintState | ) |
Definition at line 1568 of file msg.c.
Referenced by _show_message(), and entity_SaveBlock_wait_for_close_choice().
s32 msg_get_print_char_width | ( | s32 | character, |
s32 | charset, | ||
s32 | variation, | ||
f32 | msgScale, | ||
s32 | overrideCharWidth, | ||
u8 | flags ) |
Definition at line 1578 of file msg.c.
Referenced by filemenu_draw_contents_choose_name(), filemenu_draw_file_name(), and get_msg_properties().
s32 msg_get_draw_char_width | ( | s32 | character, |
s32 | charset, | ||
s32 | variation, | ||
f32 | msgScale, | ||
s32 | overrideCharWidth, | ||
u16 | flags ) |
Definition at line 1628 of file msg.c.
Referenced by appendGfx_message(), and msg_get_glyph().
void get_msg_properties | ( | s32 | msgID, |
s32 * | height, | ||
s32 * | width, | ||
s32 * | maxLineChars, | ||
s32 * | numLines, | ||
s32 * | maxLinesPerPage, | ||
s32 * | numSpaces, | ||
u16 | charset ) |
Definition at line 1671 of file msg.c.
Referenced by _msg_get_printer_for_msg(), draw_msg(), get_msg_lines(), get_msg_width(), pause_handle_input(), and pause_tutorial_draw_contents().
s32 get_msg_width | ( | s32 | msgID, |
u16 | charset ) |
Definition at line 1971 of file msg.c.
s32 get_msg_lines | ( | s32 | msgID | ) |
Definition at line 1979 of file msg.c.
Referenced by btl_menu_moves_show_error(), btl_message_popup_draw_content(), btl_show_message_popup(), btl_submenu_moves_update(), draw_content_pickup_item_header(), draw_merlee_message(), draw_merlee_message_string(), func_800F4C1C(), func_801363A0(), and popup_menu_update().
void draw_msg | ( | s32 | msgID, |
s32 | posX, | ||
s32 | posY, | ||
s32 | opacity, | ||
s32 | palette, | ||
u8 | style ) |
Definition at line 1987 of file msg.c.
void draw_digit | ( | IMG_PTR | img, |
s32 | charset, | ||
s32 | posX, | ||
s32 | posY ) |
Definition at line 2203 of file msg.c.
Referenced by draw_number().
void draw_number | ( | s32 | value, |
s32 | x, | ||
s32 | y, | ||
s32 | charset, | ||
s32 | palette, | ||
s32 | opacity, | ||
u16 | style ) |
Definition at line 2223 of file msg.c.
Referenced by btl_menu_moves_draw_content(), coin_counter_draw_content(), draw_shop_items(), filemenu_draw_contents_file_info(), filemenu_draw_contents_file_title(), filemenu_info_draw_message_contents(), filemenu_yesno_draw_prompt_contents(), func_800F4D28(), pause_badges_draw_contents(), pause_partners_draw_movelist(), pause_stats_draw_contents(), popup_menu_draw_menu_contents(), and popup_menu_draw_title_contents().
Vp D_8014C280 |
Definition at line 34 of file msg.c.
Referenced by render_messages().
u8 MessagePlural[] = { MSG_CHAR_LOWER_S, MSG_CHAR_READ_END } |
Definition at line 42 of file msg.c.
Referenced by shop_owner_buy_dialog(), and shop_owner_continue_speech_with_quantity().
u8 MessageSingular[] = { MSG_CHAR_READ_ENDL, MSG_CHAR_READ_END } |
Definition at line 48 of file msg.c.
Referenced by shop_owner_buy_dialog(), and shop_owner_continue_speech_with_quantity().
s16 gNextMessageBuffer = 0 |
Definition at line 62 of file msg.c.
Referenced by load_message_to_buffer().
Vtx gRewindArrowQuad[] |
Definition at line 64 of file msg.c.
Referenced by msg_update_rewind_arrow().
Gfx D_8014C2D8[] |
Definition at line 71 of file msg.c.
Referenced by msg_update_rewind_arrow().
s32 gMsgBGScrollAmtX |
Definition at line 88 of file msg.c.
Referenced by clear_printers(), msg_draw_frame(), and update_messages().
u16 gMsgGlobalWaveCounter |
Definition at line 89 of file msg.c.
Referenced by appendGfx_message(), clear_printers(), and update_messages().
MessageImageDataList gMsgVarImages |
Definition at line 90 of file msg.c.
Referenced by set_message_images().
s32 gMsgBGScrollAmtY |
Definition at line 91 of file msg.c.
Referenced by clear_printers(), msg_draw_frame(), and update_messages().
u8* D_8015131C |
Definition at line 92 of file msg.c.
Referenced by appendGfx_message(), and msg_copy_to_print_buffer().
Gfx* D_80151338 |
Definition at line 93 of file msg.c.
Referenced by appendGfx_message(), and clear_printers().
IMG_BIN D_80159B50[0x200] |
Definition at line 104 of file msg.c.
Referenced by appendGfx_message(), and msg_copy_to_print_buffer().
PAL_BIN D_8015C7E0[0x10] |
Definition at line 105 of file msg.c.
Referenced by appendGfx_message(), and msg_copy_to_print_buffer().
|
extern |
Definition at line 927 of file msg_data.c.
Referenced by msg_copy_to_print_buffer().
|
extern |
Referenced by msg_draw_rewind_arrow().
|
extern |
Referenced by msg_draw_rewind_arrow().
|
extern |
Referenced by msg_update_rewind_arrow().
|
extern |
Referenced by msg_update_rewind_arrow().
|
extern |
Definition at line 90 of file msg_img.c.
Referenced by load_font().
|
extern |
Definition at line 91 of file msg_img.c.
Referenced by load_font().
|
extern |
Definition at line 865 of file msg_data.c.
Referenced by get_msg_properties(), msg_copy_to_print_buffer(), msg_get_draw_char_width(), and msg_get_print_char_width().
|
extern |
Definition at line 92 of file msg_img.c.
Referenced by load_font().
|
extern |
Referenced by draw_number(), and load_font().
|
extern |
Referenced by msg_draw_choice_pointer().
|
extern |
Referenced by msg_draw_choice_pointer().
MessageNumber gMsgNumbers[] |
Definition at line 129 of file msg.c.
Referenced by draw_digit(), and draw_number().
Gfx gMsgDlistInitDrawNumber[] |
Definition at line 165 of file msg.c.
Referenced by draw_number().
|
extern |
Referenced by msg_copy_to_print_buffer().
|
extern |
Referenced by msg_copy_to_print_buffer().
|
extern |
Definition at line 878 of file msg_data.c.
Referenced by msg_copy_to_print_buffer().
|
extern |
Definition at line 893 of file msg_data.c.
Referenced by msg_copy_to_print_buffer().
Definition at line 908 of file msg_data.c.