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

Method DrawCursor

client/src/main/java/jake2/client/Menu.java:368–380  ·  view source on GitHub ↗
(int x, int y, int f)

Source from the content-addressed store, hash-verified

366 private static boolean cached;
367
368 private static void DrawCursor(int x, int y, int f) {
369 assert (f >= 0) : "negative time and cursor bug";
370
371 f = Math.abs(f);
372
373 if (!cached) {
374 for (int i = 0; i < NUM_CURSOR_FRAMES; i++) {
375 ClientGlobals.re.RegisterPic("m_cursor" + i);
376 }
377 cached = true;
378 }
379 ClientGlobals.re.DrawPic(x, y, "m_cursor" + f);
380 }
381
382 private static void DrawTextBox(int x, int y, int width, int lines) {
383 int cx, cy;

Callers 1

Main_DrawMethod · 0.95

Calls 2

RegisterPicMethod · 0.65
DrawPicMethod · 0.65

Tested by

no test coverage detected