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