(menulist_s s)
| 4704 | } |
| 4705 | |
| 4706 | private static void SpinControl_Draw(menulist_s s) { |
| 4707 | |
| 4708 | if (s.name != null) { |
| 4709 | Menu_DrawStringR2LDark(s.x + s.parent.x + LCOLUMN_OFFSET, s.y |
| 4710 | + s.parent.y, s.name); |
| 4711 | } |
| 4712 | |
| 4713 | if (s.itemnames[s.curvalue].indexOf('\n') == -1) { |
| 4714 | Menu_DrawString(RCOLUMN_OFFSET + s.x + s.parent.x, |
| 4715 | s.y + s.parent.y, s.itemnames[s.curvalue]); |
| 4716 | } else { |
| 4717 | String line1, line2; |
| 4718 | line1 = Lib.leftFrom(s.itemnames[s.curvalue], '\n'); |
| 4719 | Menu_DrawString(RCOLUMN_OFFSET + s.x + s.parent.x, |
| 4720 | s.y + s.parent.y, line1); |
| 4721 | |
| 4722 | line2 = Lib.rightFrom(s.itemnames[s.curvalue], '\n'); |
| 4723 | |
| 4724 | int pos = line2.indexOf('\n'); |
| 4725 | if (pos != -1) |
| 4726 | line2 = line2.substring(0, pos); |
| 4727 | |
| 4728 | Menu_DrawString(RCOLUMN_OFFSET + s.x + s.parent.x, s.y + s.parent.y |
| 4729 | + 10, line2); |
| 4730 | } |
| 4731 | } |
| 4732 | } |
no test coverage detected