mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 05:45:03 +00:00
Added the NPC model to the animation middleman GUI, as well as logic for playing/pausing the animation.
This commit is contained in:
1 parent
a3a5a4313f
commit
11626de55e
4 files changed
+252
-21
No files matched your search
@@ -45,10 +45,7 @@ public abstract class GuiNPCInterface2 extends GuiNPCInterface
|
||||
{
|
||||
if(drawDefaultBackground)
|
||||
drawDefaultBackground(); //drawDefaultBackground
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
mc.renderEngine.bindTexture(background);
|
||||
drawTexturedModalRect(guiLeft, guiTop, 0, 0, 200, 220);
|
||||
drawTexturedModalRect(guiLeft + xSize-230, guiTop, 26, 0, 230, 220);
|
||||
drawBackground();
|
||||
menu.drawElements(getFontRenderer(), i, j, mc, f);
|
||||
|
||||
boolean bo = drawDefaultBackground;
|
||||
@@ -56,4 +53,12 @@ public abstract class GuiNPCInterface2 extends GuiNPCInterface
|
||||
super.drawScreen(i, j, f);
|
||||
drawDefaultBackground = bo;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawBackground() {
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
mc.renderEngine.bindTexture(background);
|
||||
drawTexturedModalRect(guiLeft, guiTop, 0, 0, 200, 220);
|
||||
drawTexturedModalRect(guiLeft + xSize-230, guiTop, 26, 0, 230, 220);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user