MCPcopy Create free account
hub / github.com/demoth/jake2 / DrawTextBox

Method DrawTextBox

client/src/main/java/jake2/client/Menu.java:382–423  ·  view source on GitHub ↗
(int x, int y, int width, int lines)

Source from the content-addressed store, hash-verified

380 }
381
382 private static void DrawTextBox(int x, int y, int width, int lines) {
383 int cx, cy;
384 int n;
385
386 // draw left side
387 cx = x;
388 cy = y;
389 DrawCharacter(cx, cy, 1);
390
391 for (n = 0; n < lines; n++) {
392 cy += 8;
393 DrawCharacter(cx, cy, 4);
394 }
395 DrawCharacter(cx, cy + 8, 7);
396
397 // draw middle
398 cx += 8;
399 while (width > 0) {
400 cy = y;
401 DrawCharacter(cx, cy, 2);
402
403 for (n = 0; n < lines; n++) {
404 cy += 8;
405 DrawCharacter(cx, cy, 5);
406 }
407 DrawCharacter(cx, cy + 8, 8);
408
409 width -= 1;
410 cx += 8;
411 }
412
413 // draw right side
414 cy = y;
415 DrawCharacter(cx, cy, 3);
416 for (n = 0; n < lines; n++) {
417 cy += 8;
418 DrawCharacter(cx, cy, 6);
419
420 }
421 DrawCharacter(cx, cy + 8, 9);
422
423 }
424
425 /*
426 * =======================================================================

Callers 3

SearchLocalGamesMethod · 0.95
PlayerConfig_MenuDrawMethod · 0.95

Calls 1

DrawCharacterMethod · 0.95

Tested by

no test coverage detected