37
37
// one of these to select face
41
41
// one of these to select size
46
MODE_THREEQUARTERS = 5,
46
MODE_THREEQUARTERS = 16,
49
49
// flag to turn on horizontal scrolling
52
// text scale constants
61
* Reset internal state, for a new text display. This deactivates all
62
* messages and they will need to be enabled again with set_up_message().
67
* Activate the display of a message and specify its display parameters.
69
* @param message_num the message to reset
70
* @param mode the new mode for this message
73
void set_up_message( int message_num, char mode, char scale = SCALE_NORMAL );
76
54
* After modifying a message buffer, call this to reset the internal state
77
55
* of the text renderer with regard to this message.
79
57
* @param message_num the buffer number
80
58
* @param pstring the PString that represents this message's buffer
82
void set_message_text( int message_num, PString &pstring );
60
void set_message( int message_num, PString &pstring );
63
* Reset the display of a message and specify its display parameters.
65
* @param message_num the message to reset
66
* @param mode the new mode for this message
68
void reset_message( int message_num, char mode );
71
* Reset internal state, for a new text display.
85
76
* Call at the start of each frame.
90
* Call after drawing each frame
95
81
* Draw segment for the specified message number using whatever mode that
96
82
* message is set to.
84
* @param message_num the message buffer number
98
85
* @param segment to draw
100
void draw( int segment );
87
void draw( int message_num, int segment );
102
89
/** internal message buffers */
103
90
extern char _messages[ NUM_MESSAGE_BUFFERS ][ MESSAGE_LEN ];