MCPcopy Create free account
hub / github.com/diasurgical/devilution / control_print_talk_msg

Function control_print_talk_msg

Source/control.cpp:2034–2054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2032}
2033
2034char *control_print_talk_msg(char *msg, int *x, int y, int color)
2035{
2036 BYTE c;
2037 int width;
2038
2039 *x += 264;
2040 width = *x;
2041 while (*msg) {
2042
2043 c = fontframe[gbFontTransTbl[(BYTE)*msg]];
2044 width += fontkern[c] + 1;
2045 if (width > 514 + PANEL_LEFT)
2046 return msg;
2047 msg++;
2048 if (c) {
2049 PrintChar(*x, y + 22 + PANEL_Y, c, color);
2050 }
2051 *x += fontkern[c] + 1;
2052 }
2053 return NULL;
2054}
2055
2056BOOL control_check_talk_btn()
2057{

Callers 1

DrawTalkPanFunction · 0.85

Calls 1

PrintCharFunction · 0.85

Tested by

no test coverage detected