MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / PrintQLString

Function PrintQLString

Source/quests.cpp:217–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void PrintQLString(const Surface &out, int x, int y, string_view str, bool marked, bool disabled = false)
218{
219 int width = GetLineWidth(str);
220 x += std::max((257 - width) / 2, 0);
221 if (marked) {
222 ClxDraw(out, GetPanelPosition(UiPanels::Quest, { x - 20, y + 13 }), (*pSPentSpn2Cels)[PentSpn2Spin()]);
223 }
224 DrawString(out, str, { GetPanelPosition(UiPanels::Quest, { x, y }), { 257, 0 } }, { disabled ? UiFlags::ColorWhitegold : UiFlags::ColorWhite });
225 if (marked) {
226 ClxDraw(out, GetPanelPosition(UiPanels::Quest, { x + width + 7, y + 13 }), (*pSPentSpn2Cels)[PentSpn2Spin()]);
227 }
228}
229
230void StartPWaterPurify()
231{

Callers 1

DrawQuestLogFunction · 0.85

Calls 5

GetLineWidthFunction · 0.85
ClxDrawFunction · 0.85
GetPanelPositionFunction · 0.85
PentSpn2SpinFunction · 0.85
DrawStringFunction · 0.50

Tested by

no test coverage detected