private void drawWinGameScreen(int p_146575_1_, int p_146575_2_, float p_146575_3_)
{
Tessellator tessellator = Tessellator.getInstance();
VertexBuffer vertexbuffer = tessellator.getBuffer();
this.mc.getTextureManager().bindTexture(Gui.OPTIONS_BACKGROUND);
vertexbuffer.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
int i = this.width;
float f = 0.0F - ((float)this.time + p_146575_3_) * 0.5F * 0.5F;
float f1 = (float)this.height - ((float)this.time + p_146575_3_) * 0.5F * 0.5F;
float f2 = 0.015625F;
float f3 = ((float)this.time + p_146575_3_ - 0.0F) * 0.02F;
float f4 = (float)(this.totalScrollLength + this.height + this.height + 24) / 0.5F;
float f5 = (f4 - 20.0F - ((float)this.time + p_146575_3_)) * 0.005F;
if (f5 < f3)
{
f3 = f5;
}
if (f3 > 1.0F)
{
f3 = 1.0F;
}
f3 = f3 * f3;
f3 = f3 * 96.0F / 255.0F;
vertexbuffer.pos(0.0D, (double)this.height, (double)this.zLevel).tex(0.0D, (double)(f * 0.015625F)).color(f3, f3, f3, 1.0F).endVertex();
vertexbuffer.pos((double)i, (double)this.height, (double)this.zLevel).tex((double)((float)i * 0.015625F), (double)(f * 0.015625F)).color(f3, f3, f3, 1.0F).endVertex();
vertexbuffer.pos((double)i, 0.0D, (double)this.zLevel).tex((double)((float)i * 0.015625F), (double)(f1 * 0.015625F)).color(f3, f3, f3, 1.0F).endVertex();
vertexbuffer.pos(0.0D, 0.0D, (double)this.zLevel).tex(0.0D, (double)(f1 * 0.015625F)).color(f3, f3, f3, 1.0F).endVertex();
tessellator.draw();
}
GuiWinGame.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:Backmemed
作者:
评论列表
文章目录