()
| 122 | } |
| 123 | |
| 124 | private void render() { |
| 125 | if ((this.mc == null) || (this.timeStarted == 0L)) { |
| 126 | return; |
| 127 | } |
| 128 | double delta = (MinecraftFactory.getVars().getSystemTime() - this.timeStarted) / 3000.0D; |
| 129 | if (delta < 0.0D || delta > 1.0D) { |
| 130 | this.timeStarted = 0L; |
| 131 | activeOverlays[index] = null; |
| 132 | return; |
| 133 | } |
| 134 | |
| 135 | updateScale(); |
| 136 | |
| 137 | GLUtil.disableDepth(); |
| 138 | GLUtil.depthMask(false); |
| 139 | |
| 140 | delta *= 2.0D; |
| 141 | if (delta > 1.0D) { |
| 142 | delta = 2.0D - delta; |
| 143 | } |
| 144 | delta *= 4.0D; |
| 145 | delta = 1.0D - delta; |
| 146 | if (delta < 0.0D) { |
| 147 | delta = 0.0D; |
| 148 | } |
| 149 | delta = Math.pow(delta, 3); |
| 150 | |
| 151 | int x = width - 160; |
| 152 | int y = offset - (int) (delta * 32.0D); |
| 153 | GLUtil.color(1.0F, 1.0F, 1.0F, 1.0F); |
| 154 | GL11.glEnable(GL11.GL_TEXTURE_2D); |
| 155 | MinecraftFactory.getVars().bindTexture(texture); |
| 156 | GL11.glDisable(GL11.GL_LIGHTING); |
| 157 | |
| 158 | b(x, y, 96, 202, 160, 32); // drawTexturedModalRect |
| 159 | if (this.title != null) { |
| 160 | MinecraftFactory.getVars().drawString(this.title, x + 5, y + 7, -256); |
| 161 | } |
| 162 | if (this.subtitle != null) { |
| 163 | MinecraftFactory.getVars().drawString(this.subtitle, x + 5, y + 18, -1); |
| 164 | } |
| 165 | bam.c(); |
| 166 | |
| 167 | GL11.glDisable(GL11.GL_LIGHTING); |
| 168 | GL11.glEnable(32826); |
| 169 | GL11.glEnable(GL11.GL_COLOR_MATERIAL); |
| 170 | GLUtil.depthMask(true); |
| 171 | GLUtil.enableDepth(); |
| 172 | } |
| 173 | |
| 174 | public void b() { |
| 175 | this.timeStarted = 0L; |
no test coverage detected