MCPcopy Create free account
hub / github.com/alexdantas/nSnake / decrease

Method decrease

src/Interface/Menu/MenuItemTextlist.cpp:92–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void MenuItemTextlist::decrease()
93{
94 this->currentIndex--;
95
96 if (this->currentIndex < 0)
97 this->currentIndex = (this->options.size() - 1);
98}
99void MenuItemTextlist::reset()
100{
101 this->currentIndex = 0;

Callers 1

handleInputMethod · 0.95

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected