/* word lists * HINT: Someday load this from a... * o textfile? edittable from desktop then? * o palm database? Memopad entry? DOC file? -> Palm edittable... * * FORMAT: * '$' becomes the tapped on word * '|' becomes Return character if its at the end of the line */ char *relative_word_list[] = { "$ ", "$|", "Ask $ about ", "Drop $|", "Enter $|", "Examine $|", "Get $|", "Look at $|", "Read $|", NULL }; char *standalone_word_list[] = { "Drop ", "Examine ", "Exits|", "Get ", "Go ", "Look ", "Read ", "Say ", "Search ", NULL }; char *navigation_word_list[] = { "Up|", "Down|", "NW|", "NE|", "SW|", "SE|", NULL }; void WordsDrawList ( Int16 itemNum, RectangleType *bounds, Char **itemsText ) { UInt8 newlinep = 0; char buffer [ 200 ] = ""; //WinDrawChars ( itemsText [ itemNum ], StrLen ( itemsText [ itemNum ] ), // bounds -> topLeft.x, bounds -> topLeft.y ); StrCopy ( buffer, itemsText [ itemNum ] ); if ( StrChr ( buffer, '|' ) ) { *StrChr ( buffer, '|' ) = '\0'; newlinep = 1; } WinDrawChars ( buffer, StrLen ( buffer ), bounds -> topLeft.x, bounds -> topLeft.y ); /* do we need to draw a newline image? */ if ( newlinep ) { newlinep = FntCharsWidth ( buffer, StrLen ( buffer ) ); WinDrawBitmap ( b_crlf, bounds -> topLeft.x + newlinep + 3, bounds -> topLeft.y ); } return; }