Added the NPC model to the animation middleman GUI, as well as logic for playing/pausing the animation.

This commit is contained in:
luisc committed 2023-11-08 11:58:55 -06:00
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);
}
}