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

Function DrawSText

Source/stores.cpp:1507–1551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1505}
1506
1507void DrawSText()
1508{
1509 int i;
1510
1511 if (!stextsize)
1512 DrawSTextBack();
1513 else
1514 DrawQTextBack();
1515
1516 if (stextscrl) {
1517 switch (stextflag) {
1518 case STORE_SBUY:
1519 S_ScrollSBuy(stextsval);
1520 break;
1521 case STORE_SSELL:
1522 case STORE_SREPAIR:
1523 case STORE_WSELL:
1524 case STORE_WRECHARGE:
1525 case STORE_SIDENTIFY:
1526 S_ScrollSSell(stextsval);
1527 break;
1528 case STORE_WBUY:
1529 S_ScrollWBuy(stextsval);
1530 break;
1531 case STORE_HBUY:
1532 S_ScrollHBuy(stextsval);
1533 break;
1534 case STORE_SPBUY:
1535 S_ScrollSPBuy(stextsval);
1536 break;
1537 }
1538 }
1539
1540 for (i = 0; i < 24; i++) {
1541 if (stext[i]._sline)
1542 DrawSLine(i);
1543 if (stext[i]._sstr[0])
1544 PrintSString(stext[i]._sx, i, stext[i]._sjust, stext[i]._sstr, stext[i]._sclr, stext[i]._sval);
1545 }
1546
1547 if (stextscrl)
1548 DrawSArrows(4, 20);
1549
1550 PentSpn2Spin();
1551}
1552
1553void STextESC()
1554{

Callers 1

DrawViewFunction · 0.85

Calls 11

DrawSTextBackFunction · 0.85
DrawQTextBackFunction · 0.85
S_ScrollSBuyFunction · 0.85
S_ScrollSSellFunction · 0.85
S_ScrollWBuyFunction · 0.85
S_ScrollHBuyFunction · 0.85
S_ScrollSPBuyFunction · 0.85
DrawSLineFunction · 0.85
PrintSStringFunction · 0.85
DrawSArrowsFunction · 0.85
PentSpn2SpinFunction · 0.85

Tested by

no test coverage detected