(menufield_s f)
| 4188 | } |
| 4189 | |
| 4190 | private static void Field_Draw(menufield_s f) { |
| 4191 | int i; |
| 4192 | String tempbuffer; |
| 4193 | //[128] = ""; |
| 4194 | |
| 4195 | if (f.name != null) |
| 4196 | Menu_DrawStringR2LDark(f.x + f.parent.x + LCOLUMN_OFFSET, f.y |
| 4197 | + f.parent.y, f.name); |
| 4198 | |
| 4199 | //strncpy(tempbuffer, f.buffer + f.visible_offset, f.visible_length); |
| 4200 | String s = f.buffer.toString(); |
| 4201 | tempbuffer = s.substring(f.visible_offset, s.length()); |
| 4202 | ClientGlobals.re.DrawChar(f.x + f.parent.x + 16, f.y + f.parent.y - 4, 18); |
| 4203 | ClientGlobals.re.DrawChar(f.x + f.parent.x + 16, f.y + f.parent.y + 4, 24); |
| 4204 | |
| 4205 | ClientGlobals.re.DrawChar(f.x + f.parent.x + 24 + f.visible_length * 8, f.y |
| 4206 | + f.parent.y - 4, 20); |
| 4207 | ClientGlobals.re.DrawChar(f.x + f.parent.x + 24 + f.visible_length * 8, f.y |
| 4208 | + f.parent.y + 4, 26); |
| 4209 | |
| 4210 | for (i = 0; i < f.visible_length; i++) { |
| 4211 | ClientGlobals.re |
| 4212 | .DrawChar(f.x + f.parent.x + 24 + i * 8, f.y + f.parent.y |
| 4213 | - 4, 19); |
| 4214 | ClientGlobals.re |
| 4215 | .DrawChar(f.x + f.parent.x + 24 + i * 8, f.y + f.parent.y |
| 4216 | + 4, 25); |
| 4217 | } |
| 4218 | |
| 4219 | Menu_DrawString(f.x + f.parent.x + 24, f.y + f.parent.y, tempbuffer); |
| 4220 | |
| 4221 | if (Menu_ItemAtCursor(f.parent) == f) { |
| 4222 | int offset; |
| 4223 | |
| 4224 | if (f.visible_offset != 0) |
| 4225 | offset = f.visible_length; |
| 4226 | else |
| 4227 | offset = f.cursor; |
| 4228 | |
| 4229 | if ((((int) (Timer.Milliseconds() / 250)) & 1) != 0) { |
| 4230 | ClientGlobals.re.DrawChar(f.x + f.parent.x + (offset + 2) * 8 + 8, f.y |
| 4231 | + f.parent.y, 11); |
| 4232 | } else { |
| 4233 | ClientGlobals.re.DrawChar(f.x + f.parent.x + (offset + 2) * 8 + 8, f.y |
| 4234 | + f.parent.y, ' '); |
| 4235 | } |
| 4236 | } |
| 4237 | } |
| 4238 | |
| 4239 | private static boolean Field_Key(menufield_s f, int k) { |
| 4240 | char key = (char) k; |
no test coverage detected