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