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

Method DrawCrosshair

client/src/main/java/jake2/client/SCR.java:1273–1288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1271 * ================= SCR_DrawCrosshair =================
1272 */
1273 static void DrawCrosshair() {
1274 if (ClientGlobals.crosshair.value == 0.0f)
1275 return;
1276
1277 if (ClientGlobals.crosshair.modified) {
1278 ClientGlobals.crosshair.modified = false;
1279 SCR.TouchPics();
1280 }
1281
1282 if (crosshair_pic.length() == 0)
1283 return;
1284
1285 ClientGlobals.re.DrawPic(ClientGlobals.scr_vrect.x + ((ClientGlobals.scr_vrect.width - crosshair_width) >> 1),
1286 ClientGlobals.scr_vrect.y + ((ClientGlobals.scr_vrect.height - crosshair_height) >> 1),
1287 crosshair_pic);
1288 }
1289
1290 private static Command updateScreenCallback = (List<String> args) -> UpdateScreen2();
1291

Callers 1

RenderViewMethod · 0.95

Calls 2

TouchPicsMethod · 0.95
DrawPicMethod · 0.65

Tested by

no test coverage detected