Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
92
void MenuItemTextlist::decrease()
93
{
94
this->currentIndex--;
95
96
if (this->currentIndex < 0)
97
this->currentIndex = (this->options.size() - 1);
98
}
99
void MenuItemTextlist::reset()
100
{
101
this->currentIndex = 0;
Callers
1
handleInput
Method · 0.95
Calls
1
size
Method · 0.80
Tested by
no test coverage detected