|
|
|
|
@ -447,6 +447,26 @@ void InitHelp()
|
|
|
|
|
displayinghelp[0] = 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void DrawHelpLine(int x, int y, char *text, char color) |
|
|
|
|
{ |
|
|
|
|
int off, width; |
|
|
|
|
BYTE c; |
|
|
|
|
|
|
|
|
|
width = 0; |
|
|
|
|
off = PitchTbl[SStringY[y] + 44 + SCREEN_Y] + x + 32 + PANEL_X; |
|
|
|
|
while (*text) { |
|
|
|
|
c = gbFontTransTbl[(BYTE)*text]; |
|
|
|
|
text++; |
|
|
|
|
c = fontframe[c]; |
|
|
|
|
width += fontkern[c] + 1; |
|
|
|
|
if (c) { |
|
|
|
|
if (width <= 577) |
|
|
|
|
PrintChar(off, c, color); |
|
|
|
|
} |
|
|
|
|
off += fontkern[c] + 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DrawHelp() |
|
|
|
|
{ |
|
|
|
|
int i, c, w; |
|
|
|
|
@ -541,26 +561,6 @@ void DrawHelp()
|
|
|
|
|
PrintSString(0, 23, TRUE, "Press ESC to end or the arrow keys to scroll.", COL_GOLD, 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DrawHelpLine(int x, int y, char *text, char color) |
|
|
|
|
{ |
|
|
|
|
int off, width; |
|
|
|
|
BYTE c; |
|
|
|
|
|
|
|
|
|
width = 0; |
|
|
|
|
off = PitchTbl[SStringY[y] + 44 + SCREEN_Y] + x + 32 + PANEL_X; |
|
|
|
|
while (*text) { |
|
|
|
|
c = gbFontTransTbl[(BYTE)*text]; |
|
|
|
|
text++; |
|
|
|
|
c = fontframe[c]; |
|
|
|
|
width += fontkern[c] + 1; |
|
|
|
|
if (c) { |
|
|
|
|
if (width <= 577) |
|
|
|
|
PrintChar(off, c, color); |
|
|
|
|
} |
|
|
|
|
off += fontkern[c] + 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DisplayHelp() |
|
|
|
|
{ |
|
|
|
|
help_select_line = 0; |
|
|
|
|
|