mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-14 06:14:52 +00:00
Dark Background behind all GUI screens with an NPC
This commit is contained in:
1 parent
5c050cbf77
commit
73da4c2964
1 file changed
+1
-1
@@ -24,6 +24,7 @@ public abstract class GuiContainerNPCInterface2 extends GuiContainerNPCInterface
|
||||
this.xSize = 420;
|
||||
this.menu = new GuiNpcMenu(this,activeMenu,npc);
|
||||
title = "";
|
||||
drawDefaultBackground = true;
|
||||
}
|
||||
public void setBackground(String texture){
|
||||
background = new ResourceLocation("customnpcs","textures/gui/" + texture);
|
||||
@@ -56,7 +57,6 @@ public abstract class GuiContainerNPCInterface2 extends GuiContainerNPCInterface
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(float f, int i, int j)
|
||||
{
|
||||
drawDefaultBackground();
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
mc.renderEngine.bindTexture(background);
|
||||
drawTexturedModalRect(guiLeft, guiTop, 0, 0, 256, 256);
|
||||
|
||||
Reference in new issue
Block a user