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

Method TouchPics

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

Source from the content-addressed store, hash-verified

839 * Allows rendering code to cache all needed sbar graphics ===============
840 */
841 static void TouchPics() {
842 int i, j;
843
844 for (i = 0; i < 2; i++)
845 for (j = 0; j < 11; j++)
846 ClientGlobals.re.RegisterPic(sb_nums[i][j]);
847
848 if (ClientGlobals.crosshair.value != 0.0f) {
849 if (ClientGlobals.crosshair.value > 3.0f || ClientGlobals.crosshair.value < 0.0f)
850 ClientGlobals.crosshair.value = 3.0f;
851
852 crosshair_pic = "ch" + (int) ClientGlobals.crosshair.value;
853 Dimension dim = new Dimension();
854 ClientGlobals.re.DrawGetPicSize(dim, crosshair_pic);
855 crosshair_width = dim.width;
856 crosshair_height = dim.height;
857 if (crosshair_width == 0)
858 crosshair_pic = "";
859 }
860 }
861
862 private static LayoutParser layoutParser = new LayoutParser();
863 /*

Callers 2

PrepRefreshMethod · 0.95
DrawCrosshairMethod · 0.95

Calls 2

RegisterPicMethod · 0.65
DrawGetPicSizeMethod · 0.65

Tested by

no test coverage detected