Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
public void drawBackground(int p_146278_1_)
{
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glDisable(GL11.GL_FOG);
Tessellator tessellator = Tessellator.instance;
this.mc.getTextureManager().bindTexture(optionsBackground);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
float f = 32.0F;
tessellator.startDrawingQuads();
tessellator.setColorOpaque_I(4210752);
tessellator.addVertexWithUV(0.0D, (double)this.height, 0.0D, 0.0D, (double)((float)this.height / f + (float)p_146278_1_));
tessellator.addVertexWithUV((double)this.width, (double)this.height, 0.0D, (double)((float)this.width / f), (double)((float)this.height / f + (float)p_146278_1_));
tessellator.addVertexWithUV((double)this.width, 0.0D, 0.0D, (double)((float)this.width / f), (double)p_146278_1_);
tessellator.addVertexWithUV(0.0D, 0.0D, 0.0D, 0.0D, (double)p_146278_1_);
tessellator.draw();
}
public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
{
this.field_146638_t.drawScreen(p_73863_1_, p_73863_2_, p_73863_3_);
this.drawCenteredString(this.fontRendererObj, this.field_146628_f, this.width / 2, 20, 16777215);
super.drawScreen(p_73863_1_, p_73863_2_, p_73863_3_);
}
Потому что супер классTsyklop написал(а):В общем. копался я по коду. И нашел какая строка делает затемнение. это:tessellator.setColorOpaque_I(4210752);
Значение в скобках(4210752) поменять на любое другое и всё норм. Но теперь другая проблема. Я не могу изменить цвет в GUI выбора мира, к примеру, там такого нет....