| 1635 | } |
| 1636 | |
| 1637 | void OpenGoldDrop(int8_t invIndex, int max) |
| 1638 | { |
| 1639 | DropGoldFlag = true; |
| 1640 | GoldDropInvIndex = invIndex; |
| 1641 | GoldDropText[0] = '\0'; |
| 1642 | GoldDropInputState.emplace(NumberInputState::Options { |
| 1643 | /*textOptions*/ { |
| 1644 | /*value=*/GoldDropText, |
| 1645 | /*cursor=*/&GoldDropCursor, |
| 1646 | /*maxLength=*/sizeof(GoldDropText) - 1, |
| 1647 | }, |
| 1648 | /*min=*/0, |
| 1649 | /*max=*/max, |
| 1650 | }); |
| 1651 | SDL_StartTextInput(); |
| 1652 | } |
| 1653 | |
| 1654 | void CloseGoldDrop() |
| 1655 | { |
no test coverage detected