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

Function GmenuLeftRight

Source/gmenu.cpp:89–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void GmenuLeftRight(bool isRight)
90{
91 if (!sgpCurrItem->isSlider())
92 return;
93
94 uint16_t step = sgpCurrItem->sliderStep();
95 if (isRight) {
96 if (step == sgpCurrItem->sliderSteps())
97 return;
98 step++;
99 } else {
100 if (step == 0)
101 return;
102 step--;
103 }
104 sgpCurrItem->setSliderStep(step);
105 sgpCurrItem->fnMenu(false);
106}
107
108int GmenuGetLineWidth(TMenuItem *pItem)
109{

Callers 2

GameMenuMoveFunction · 0.85
gmenu_presskeysFunction · 0.85

Calls 4

isSliderMethod · 0.80
sliderStepMethod · 0.80
sliderStepsMethod · 0.80
setSliderStepMethod · 0.80

Tested by

no test coverage detected