23 #ifndef TINSEL_TEXT_H // prevent multiple includes 26 #include "common/array.h" 27 #include "common/coroutines.h" 28 #include "tinsel/object.h" 41 #define MAX_FONT_CHARS 256 43 #define C16_240 0x4000 44 #define C16_224 0x8000 45 #define C16_MAP 0xC000 46 #define C16_FLAG_MASK (C16_240 | C16_224 | C16_MAP) 96 int xPos,
int yPos,
SCNHANDLE hFont,
int mode,
int sleepTime = 0);
102 uint32 t3GetBaseColor();
106 #endif // TINSEL_TEXT_H int sleepTime
sleep time between each character (if non-zero)
Definition: text.h:74
int spaceSize
x spacing to use for a space character
Definition: text.h:58
int xPos
x position of string
Definition: text.h:70
uint32 SCNHANDLE
Definition: dw.h:31
OBJECT * pList
object list to add text to
Definition: text.h:67
int baseColor
base color which can be replaced, specific to Tinsel 3
Definition: text.h:59
position of text is absolute (only for object text)
Definition: text.h:37
Common::Array< SCNHANDLE > fontDef
image handle array for all characters in the font
Definition: text.h:61
int xSpacing
x spacing between characters
Definition: text.h:54
char * szStr
string to output
Definition: text.h:68
int color
color for monochrome text
Definition: text.h:69
shadow each character
Definition: text.h:36
right justify text
Definition: text.h:35
SCNHANDLE hFont
which font to use
Definition: text.h:72
int ySpacing
y spacing between characters
Definition: text.h:55
int yPos
y position of string
Definition: text.h:71
int yShadow
y shadow offset
Definition: text.h:57
int xShadow
x shadow offset
Definition: text.h:56
OBJECT * ObjectTextOut(OBJECT **pList, char *szStr, int color, int xPos, int yPos, SCNHANDLE hFont, int mode, int sleepTime=0)
OBJ_INIT fontInit
structure used to init text objects
Definition: text.h:60
center justify text
Definition: text.h:34
int mode
mode flags for the string
Definition: text.h:73