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

Function S_ScrollHBuy

Source/stores.cpp:1154–1178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1152}
1153
1154void S_ScrollHBuy(int idx)
1155{
1156 int l;
1157 char iclr;
1158
1159 ClearSText(5, 21);
1160 stextup = 5;
1161 for (l = 5; l < 20; l += 4) {
1162 if (healitem[idx]._itype != ITYPE_NONE) {
1163 iclr = COL_WHITE;
1164 if (!healitem[idx]._iStatFlag) {
1165 iclr = COL_RED;
1166 }
1167
1168 AddSText(20, l, 0, healitem[idx]._iName, iclr, 1);
1169 AddSTextVal(l, healitem[idx]._iIvalue);
1170 PrintStoreItem(&healitem[idx], l + 1, iclr);
1171 stextdown = l;
1172 idx++;
1173 }
1174 }
1175
1176 if (!stext[stextsel]._ssel && stextsel != 22)
1177 stextsel = stextdown;
1178}
1179
1180void S_StartHBuy()
1181{

Callers 2

S_StartHBuyFunction · 0.85
DrawSTextFunction · 0.85

Calls 4

ClearSTextFunction · 0.85
AddSTextFunction · 0.85
AddSTextValFunction · 0.85
PrintStoreItemFunction · 0.85

Tested by

no test coverage detected