Definition in file messagefield.c.
#include "crogue.h"
#include "export.h"
Go to the source code of this file.
Defines | |
| #define | MESSAGEFIELD_X 0 |
| #define | MESSAGEFIELD_Y 0 |
| #define | MESSAGEFIELD_ROWS 2 |
| #define | MESSAGEFIELD_HEIGHT 16 |
| #define | MESSAGEFIELD_WIDTH SCREEN_WIDTH |
Functions | |
| void | _UI_MF_savemsg (const char *msg) |
| Stores a string to the message history. | |
| void | message (const char *format,...) |
| Show text to the player. | |
| void | vmessage (const char *format, va_list args) |
| Show text to the player with a va_list. | |
| void | UI_MF_clear (void) |
| Clear the message line. | |
| void | UI_MF_history (void) |
| Display the message history. | |
| void | UI_MF_sendmsg (const char *msg) |
| Send a message string. | |
| void | UI_MF_wait (void) |
| Give a -More- prompt. | |
Variables | |
| draw_string_info | MF_state |
| char | message_buf [MESSAGEBUF_SIZE] |
|
|
Definition at line 29 of file messagefield.c. Referenced by UI_MF_clear(), and UI_MF_sendmsg(). |
|
|
Definition at line 28 of file messagefield.c. Referenced by UI_MF_clear(). |
|
|
Definition at line 30 of file messagefield.c. Referenced by UI_MF_clear(), and UI_MF_sendmsg(). |
|
|
Definition at line 26 of file messagefield.c. Referenced by UI_MF_clear(), and UI_MF_sendmsg(). |
|
|
Definition at line 27 of file messagefield.c. Referenced by UI_MF_clear(), and UI_MF_sendmsg(). |
|
|
Stores a string to the message history.
Definition at line 103 of file messagefield.c. References message_buf, and MESSAGEBUF_SIZE. Referenced by vmessage(). |
|
||||||||||||
|
|
Clear the message line.
Definition at line 75 of file messagefield.c. References clear_line, clear_string(), draw_string_info::curRow, draw_string_info::curX, Graph_ClearRect(), MESSAGEFIELD_HEIGHT, MESSAGEFIELD_ROWS, MESSAGEFIELD_WIDTH, MESSAGEFIELD_X, MESSAGEFIELD_Y, MF_state, OPTION_FONTSIZE, world::options, and w. Referenced by draw(), initialize(), UI_Dialog_Default(), UI_MF_wait(), and vmessage(). |
|
|
Display the message history.
Definition at line 123 of file messagefield.c. References draw_string(), full_redraw(), Graph_ClrScr(), message_buf, MESSAGEBUF_SIZE, OPTION_FONTSIZE, world::options, read_char(), SCREEN_HEIGHT, SCREEN_WIDTH, and w. Referenced by plr_move(). |
|
|
Send a message string. This function is used internally by message; it shows a string in the status line, wrapping and -More-'ing as needed. Note, however, that it does not support format specifiers or extra arguments like printf and message do. This function should not be called directly - instead, call message.
Definition at line 152 of file messagefield.c. References draw_string_info::curX, draw_string(), MESSAGEFIELD_HEIGHT, MESSAGEFIELD_WIDTH, MESSAGEFIELD_X, MESSAGEFIELD_Y, MF_state, OPTION_FONTSIZE, world::options, and w. Referenced by UI_MF_wait(), and vmessage(). |
|
|
Give a -More- prompt. Displays "-More-", then waits for the user to press a key and clears the message line. Definition at line 173 of file messagefield.c. References read_char(), UI_MF_clear(), and UI_MF_sendmsg(). |
|
||||||||||||
|
Show text to the player with a va_list. This function works like vprintf, meaning it takes its arguments in the form of a va_list and otherwise acts like printf.
Definition at line 56 of file messagefield.c. References _UI_MF_savemsg(), world::interrupt, world::messagevis, UI_MF_clear(), UI_MF_sendmsg(), and w. Referenced by message(). |
|
|
Definition at line 99 of file messagefield.c. Referenced by _UI_MF_savemsg(), and UI_MF_history(). |
|
|
Definition at line 33 of file messagefield.c. Referenced by UI_MF_clear(), and UI_MF_sendmsg(). |
1.3.6