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

Function DrawPlrMsg

Source/plrmsg.cpp:83–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void DrawPlrMsg()
84{
85 int i;
86 DWORD x = 74;
87 DWORD y = 230;
88 DWORD width = SCREEN_WIDTH - 20;
89 _plrmsg *pMsg;
90
91 if (chrflag || questlog) {
92 x = 394;
93 width -= 300;
94 }
95 if (invflag || sbookflag)
96 width -= 300;
97
98 if (width < 300)
99 return;
100
101 if (width > 620)
102 width = 620;
103
104 pMsg = plr_msgs;
105 for (i = 0; i < 8; i++) {
106 if (pMsg->str[0])
107 PrintPlrMsg(x, y, width, pMsg->str, text_color_from_player_num[pMsg->player]);
108 pMsg++;
109 y += 35;
110 }
111}
112
113void PrintPlrMsg(DWORD x, DWORD y, DWORD width, const char *str, BYTE col)
114{

Callers 1

DrawViewFunction · 0.85

Calls 1

PrintPlrMsgFunction · 0.85

Tested by

no test coverage detected