30 #include "cge2/general.h" 31 #include "cge2/vga13h.h" 35 #define kTextHMargin (6&~1) // EVEN horizontal margins! 36 #define kTextVMargin 5 // vertical margins 37 #define kTextLineSpace 2 // line spacing 38 #define kTextRoundCorner 3 // rounded corners 41 #define kMapSize (256*8) 43 #define kCaptionSide 24 54 uint8 _colorSet[kColorNum][4];
57 uint16 width(
const char *text);
60 enum TextBoxStyle { kTBPure, kTBRect, kTBRound };
71 Talk(
CGE2Engine *vm,
const char *text, TextBoxStyle mode = kTBPure, ColorBank color = kCBStd,
bool wideSpace =
false);
74 void update(
const char *text);
80 const char *_oldText, *_newText;
84 void update(
const char *text);
85 void update() { update(_newText); }
86 void setText(
const char *txt) { _newText = txt; }