From 333e38d5b20a5475c37b8756cd3e4c7a23051f74 Mon Sep 17 00:00:00 2001 From: Soaryn Date: Sat, 3 Aug 2013 21:40:57 -0400 Subject: [PATCH] Adds color to Refinery Fluids Note, this needs a FluidStack to be complete. This only covers basic Fluid Colors --- common/buildcraft/core/gui/GuiAdvancedInterface.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/buildcraft/core/gui/GuiAdvancedInterface.java b/common/buildcraft/core/gui/GuiAdvancedInterface.java index b62747bd..e0a4e6ac 100644 --- a/common/buildcraft/core/gui/GuiAdvancedInterface.java +++ b/common/buildcraft/core/gui/GuiAdvancedInterface.java @@ -182,6 +182,13 @@ public abstract class GuiAdvancedInterface extends GuiBuildCraft { super(x, y); } + @Override + public void drawSprite(int cornerX, int cornerY) { + if(fluid != null) + FluidRenderer.colorFluid(new FluidStack(fluid,100)); // Lacks FluidStack to properly function Please revise. + super.drawSprite(cornerX, cornerY); + } + @Override public Icon getIcon() { return FluidRenderer.getFluidTexture(fluid, false);