MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / drawScreen

Method drawScreen

src/main/java/cc/slack/ui/menu/MainMenu.java:39–69  ·  view source on GitHub ↗
(int mouseX, int mouseY, float partialTicks)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 15

colorMethod · 0.95
enableAlphaMethod · 0.95
enableBlendMethod · 0.95
drawImageMethod · 0.95
disableAlphaMethod · 0.95
disableBlendMethod · 0.95
hasReachedMethod · 0.80
getRGBMethod · 0.80
updateMethod · 0.65
bindTextureMethod · 0.45
getTextureManagerMethod · 0.45

Tested by

no test coverage detected