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

Function OpenGoldDrop

Source/control.cpp:1637–1652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1635}
1636
1637void 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
1654void CloseGoldDrop()
1655{

Callers 1

StartGoldDropFunction · 0.85

Calls 1

SDL_StartTextInputFunction · 0.85

Tested by

no test coverage detected