Added / Fixing progress bars

This commit is contained in:
oitsjustjose 2016-01-03 11:28:54 -06:00
commit 1001259be0
4 changed files with 12 additions and 4 deletions

View file

@ -65,7 +65,7 @@ public class CropomatorCategory implements IRecipeCategory
public void drawAnimations(Minecraft minecraft)
{
fuel.draw(minecraft, 1, 20);
progress.draw(minecraft, 25, 19);
progress.draw(minecraft, 24, 20);
}
@Override

View file

@ -69,7 +69,7 @@ public class ElectroextractorCategory implements IRecipeCategory
public void drawAnimations(Minecraft minecraft)
{
fuel.draw(minecraft, 1, 20);
progress.draw(minecraft, 25, 19);
progress.draw(minecraft, 24, 20);
}
@Override

View file

@ -4,10 +4,14 @@ import java.util.List;
import javax.annotation.Nonnull;
import com.oitsjustjose.criss_cross.gui.GUIElectroextractor;
import com.oitsjustjose.criss_cross.gui.GUIScribe;
import com.oitsjustjose.criss_cross.lib.Config;
import com.oitsjustjose.criss_cross.lib.Lib;
import mezz.jei.api.gui.IDrawable;
import mezz.jei.api.gui.IDrawableAnimated;
import mezz.jei.api.gui.IDrawableStatic;
import mezz.jei.api.gui.IRecipeLayout;
import mezz.jei.api.recipe.IRecipeCategory;
import mezz.jei.api.recipe.IRecipeWrapper;
@ -22,6 +26,10 @@ public class ScribeCategory implements IRecipeCategory
private static final int OUTPUT_SLOT = 1;
private static final int FUEL_SLOT = 2;
IDrawableStatic progressDrawable = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUIScribe.backgroundTexture, 176, 15, 24, 16);
@Nonnull
protected final IDrawableAnimated progress = JEIPluginManager.jeiHelper.getGuiHelper().createAnimatedDrawable(progressDrawable, 700, IDrawableAnimated.StartDirection.LEFT, false);
@Nonnull
private final IDrawable background = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUIScribe.backgroundTexture, 33, 30, 110, 34);
@Nonnull
@ -57,7 +65,7 @@ public class ScribeCategory implements IRecipeCategory
@Override
public void drawAnimations(Minecraft minecraft)
{
progress.draw(minecraft, 56, 7);
}
@Override

View file

@ -68,7 +68,7 @@ public class WoodchipperCategory implements IRecipeCategory
public void drawAnimations(Minecraft minecraft)
{
fuel.draw(minecraft, 1, 20);
progress.draw(minecraft, 25, 19);
progress.draw(minecraft, 24, 20);
}
@Override