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

Function STextUp

Source/stores.cpp:1626–1661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1624}
1625
1626void STextUp()
1627{
1628 PlaySFX(IS_TITLEMOV);
1629 if (stextsel == -1) {
1630 return;
1631 }
1632
1633 if (stextscrl) {
1634 if (stextsel == stextup) {
1635 if (stextsval)
1636 stextsval--;
1637 return;
1638 }
1639
1640 stextsel--;
1641 while (!stext[stextsel]._ssel) {
1642 if (!stextsel)
1643 stextsel = 23;
1644 else
1645 stextsel--;
1646 }
1647 return;
1648 }
1649
1650 if (!stextsel)
1651 stextsel = 23;
1652 else
1653 stextsel--;
1654
1655 while (!stext[stextsel]._ssel) {
1656 if (!stextsel)
1657 stextsel = 23;
1658 else
1659 stextsel--;
1660 }
1661}
1662
1663void STextDown()
1664{

Callers 2

CheckStoreBtnFunction · 0.85
PressKeyFunction · 0.85

Calls 1

PlaySFXFunction · 0.85

Tested by

no test coverage detected