(menuslider_s s, int dir)
| 4645 | } |
| 4646 | |
| 4647 | private static void Slider_DoSlide(menuslider_s s, int dir) { |
| 4648 | s.curvalue += dir; |
| 4649 | |
| 4650 | if (s.curvalue > s.maxvalue) |
| 4651 | s.curvalue = s.maxvalue; |
| 4652 | else if (s.curvalue < s.minvalue) |
| 4653 | s.curvalue = s.minvalue; |
| 4654 | |
| 4655 | if (s.callback != null) |
| 4656 | s.callback.execute(s); |
| 4657 | } |
| 4658 | |
| 4659 | private static final int SLIDER_RANGE = 10; |
| 4660 |