(int mouseX, int mouseY, float partialTicks)
| 37 | private TimeUtil animTimer = new TimeUtil(); |
| 38 | |
| 39 | @Override |
| 40 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { |
| 41 | mc.getTextureManager().bindTexture(new ResourceLocation("slack/menu/mainmenu.jpg")); |
| 42 | drawModalRectWithCustomSizedTexture(0, 0,0,0, this.width, this.height, this.width, this.height); |
| 43 | |
| 44 | |
| 45 | if (!animTimer.hasReached(700)) { |
| 46 | animY = (int) (Math.pow(1 - (animTimer.elapsed() / 700.0), 4) * this.height * 0.7); |
| 47 | } else { |
| 48 | animY = 0; |
| 49 | } |
| 50 | |
| 51 | Fonts.poppins18.drawString("Made by Dg636 and others with <3", |
| 52 | width - 7 - Fonts.poppins18.getStringWidth("Made by Dg636 and others with <3"), |
| 53 | height - 13, new Color(255, 255, 255, 150).getRGB()); |
| 54 | GlStateManager.color(1, 1, 1, 1); |
| 55 | |
| 56 | GlStateManager.enableAlpha(); |
| 57 | GlStateManager.enableBlend(); |
| 58 | RenderUtil.drawImage(imageResource, width / 2 - 23, height / 2 - 95 + animY, 46, 80); |
| 59 | GlStateManager.disableAlpha(); |
| 60 | GlStateManager.disableBlend(); |
| 61 | |
| 62 | for (Particle particle : particles) { |
| 63 | particle.update(); |
| 64 | particle.render(mc); |
| 65 | } |
| 66 | |
| 67 | super.drawScreen(mouseX, mouseY, partialTicks); |
| 68 | |
| 69 | } |
| 70 | |
| 71 | |
| 72 |
nothing calls this directly
no test coverage detected