GuiWinGame.java 文件源码

java
阅读 22 收藏 0 点赞 0 评论 0

项目:BaseClient 作者:
private void drawWinGameScreen(int p_146575_1_, int p_146575_2_, float p_146575_3_)
{
    Tessellator tessellator = Tessellator.getInstance();
    WorldRenderer worldrenderer = tessellator.getWorldRenderer();
    this.mc.getTextureManager().bindTexture(Gui.optionsBackground);
    worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
    int i = this.width;
    float f = 0.0F - ((float)this.field_146581_h + p_146575_3_) * 0.5F * this.field_146578_s;
    float f1 = (float)this.height - ((float)this.field_146581_h + p_146575_3_) * 0.5F * this.field_146578_s;
    float f2 = 0.015625F;
    float f3 = ((float)this.field_146581_h + p_146575_3_ - 0.0F) * 0.02F;
    float f4 = (float)(this.field_146579_r + this.height + this.height + 24) / this.field_146578_s;
    float f5 = (f4 - 20.0F - ((float)this.field_146581_h + 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;
    worldrenderer.pos(0.0D, (double)this.height, (double)this.zLevel).tex(0.0D, (double)(f * f2)).color(f3, f3, f3, 1.0F).endVertex();
    worldrenderer.pos((double)i, (double)this.height, (double)this.zLevel).tex((double)((float)i * f2), (double)(f * f2)).color(f3, f3, f3, 1.0F).endVertex();
    worldrenderer.pos((double)i, 0.0D, (double)this.zLevel).tex((double)((float)i * f2), (double)(f1 * f2)).color(f3, f3, f3, 1.0F).endVertex();
    worldrenderer.pos(0.0D, 0.0D, (double)this.zLevel).tex(0.0D, (double)(f1 * f2)).color(f3, f3, f3, 1.0F).endVertex();
    tessellator.draw();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号