FRicsi / No-more-Mine-in-Hell

Minecraft mod
0 stars 0 forks source link

GUI problem #20

Open FRicsi opened 6 years ago

FRicsi commented 6 years ago

GUI is very dark gray

FRicsi commented 6 years ago

private static final ResourceLocation texture = new ResourceLocation("container4.png"); @Override protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) { int posX = (this.width) / 2; int posY = (this.height) / 2; GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); this.drawDefaultBackground(); this.mc.renderEngine.bindTexture(texture); int k = (this.width - this.xSize) / 2; int l = (this.height - this.ySize) / 2; this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize); zLevel = 100.0F; }

FRicsi commented 6 years ago

something wrong with this code

GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); - this is the color control of the GUI; RGBA. Somehow the lightgray gui panel become dark gray, almost black, however that sghould be intact (based on RGBA setting...)