Gui rendering cleanup

This commit is contained in:
mezz committed 2017-01-24 20:53:27 -08:00
1 parent 17f036522e
commit 31a305ffc2
173 files changed
+1317 -1349

No files matched your search

@@ -46,8 +46,8 @@ public class DistilleryRecipeCategory extends BlankRecipeCategory<DistilleryReci
@Override
public void drawExtras(Minecraft minecraft) {
CraftGUI.render.texture(DISTILLERY_BASE, new IPoint(0.0f, 0.0f));
CraftGUI.render.texturePercentage(LIQUID_FLOW, new IArea(18.0f, 0.0f, 38.0f, 60.0f), Position.Left, progress.getValue() / 100f);
CraftGUI.render.texture(DISTILLERY_BASE, IPoint.ZERO);
CraftGUI.render.texturePercentage(LIQUID_FLOW, new IArea(18, 0, 38, 60), Position.Left, progress.getValue() / 100f);
IDrawable tank = ExtraTreesJeiPlugin.drawables.getTank();
tank.draw(minecraft, 0, 0);
@@ -29,6 +29,6 @@ public class DistilleryRecipeWrapper extends BlankRecipeWrapper {
public void drawInfo(Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {
super.drawInfo(minecraft, recipeWidth, recipeHeight, mouseX, mouseY);
CraftGUI.render.texture(ControlDistilleryProgress.OUTPUT, new IPoint(47.0f, 14 + level * 15));
CraftGUI.render.texture(ControlDistilleryProgress.OUTPUT, new IPoint(47, 14 + level * 15));
}
}
@@ -30,11 +30,13 @@ public class BreweryMachine extends ExtraTreeMachine.PackageExtraTreeMachine imp
public void createMachine(final Machine machine) {
new ExtraTreeMachine.ComponentExtraTreeGUI(machine, ExtraTreesGUID.Brewery);
final ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
inventory.addSlotArray(SLOT_RECIPE_GRAINS, "grain");
for (final InventorySlot slot : inventory.getSlots(SLOT_RECIPE_GRAINS)) {
slot.setValidator(new SlotValidatorBreweryGrain());
slot.setType(InventorySlot.Type.Recipe);
}
inventory.addSlotArray(SLOTS_INVENTORY, "inventory");
for (final InventorySlot slot : inventory.getSlots(SLOTS_INVENTORY)) {
slot.forbidExtraction();
@@ -42,9 +44,11 @@ public class BreweryMachine extends ExtraTreeMachine.PackageExtraTreeMachine imp
inventory.addSlot(SLOT_YEAST, "yeast");
inventory.getSlot(SLOT_YEAST).setValidator(new SlotValidatorBreweryYeast());
inventory.getSlot(SLOT_YEAST).setType(InventorySlot.Type.Recipe);
inventory.addSlot(SLOT_RECIPE_INPUT, "ingredient");
inventory.getSlot(SLOT_RECIPE_INPUT).setValidator(new SlotValidatorBreweryIngredient());
inventory.getSlot(SLOT_RECIPE_INPUT).setType(InventorySlot.Type.Recipe);
final ComponentTankContainer tanks = new ComponentTankContainer(machine);
tanks.addTank(TANK_INPUT, "input", 5000);
tanks.getTankSlot(TANK_INPUT).setValidator(new TankValidatorFermentInput());
@@ -53,6 +57,7 @@ public class BreweryMachine extends ExtraTreeMachine.PackageExtraTreeMachine imp
tanks.getTankSlot(TANK_OUTPUT).setValidator(new TankValidatorFermentOutput());
tanks.getTankSlot(TANK_OUTPUT).forbidInsertion();
tanks.getTankSlot(TANK_OUTPUT).setOutputSides(MachineSide.Sides);
new ComponentPowerReceptor(machine);
new BreweryLogic(machine);
}