Search in sources :

Example 16 with GuiElementInfoRegion

use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.

the class GuiElectricIngotCompressor method initGui.

@Override
public void initGui() {
    super.initGui();
    this.electricInfoRegion.tooltipStrings = new ArrayList<String>();
    this.electricInfoRegion.xPosition = (this.width - this.xSize) / 2 + 17;
    this.electricInfoRegion.yPosition = (this.height - this.ySize) / 2 + 95;
    this.electricInfoRegion.parentWidth = this.width;
    this.electricInfoRegion.parentHeight = this.height;
    this.infoRegions.add(this.electricInfoRegion);
    List<String> batterySlotDesc = new ArrayList<String>();
    batterySlotDesc.add(GCCoreUtil.translate("gui.battery_slot.desc.0"));
    batterySlotDesc.add(GCCoreUtil.translate("gui.battery_slot.desc.1"));
    this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 54, (this.height - this.ySize) / 2 + 74, 18, 18, batterySlotDesc, this.width, this.height, this));
    this.processInfoRegion.tooltipStrings = new ArrayList<String>();
    this.processInfoRegion.xPosition = (this.width - this.xSize) / 2 + 77;
    this.processInfoRegion.yPosition = (this.height - this.ySize) / 2 + 30;
    this.processInfoRegion.parentWidth = this.width;
    this.processInfoRegion.parentHeight = this.height;
    this.infoRegions.add(this.processInfoRegion);
}
Also used : GuiElementInfoRegion(micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion) ArrayList(java.util.ArrayList)

Example 17 with GuiElementInfoRegion

use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.

the class GuiFuelLoader method initGui.

@Override
public void initGui() {
    super.initGui();
    List<String> fuelTankDesc = new ArrayList<String>();
    fuelTankDesc.add(GCCoreUtil.translate("gui.fuel_tank.desc.2"));
    fuelTankDesc.add(GCCoreUtil.translate("gui.fuel_tank.desc.3"));
    this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 7, (this.height - this.ySize) / 2 + 33, 16, 38, fuelTankDesc, this.width, this.height, this));
    List<String> batterySlotDesc = new ArrayList<String>();
    batterySlotDesc.add(GCCoreUtil.translate("gui.battery_slot.desc.0"));
    batterySlotDesc.add(GCCoreUtil.translate("gui.battery_slot.desc.1"));
    this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 50, (this.height - this.ySize) / 2 + 54, 18, 18, batterySlotDesc, this.width, this.height, this));
    List<String> electricityDesc = new ArrayList<String>();
    electricityDesc.add(GCCoreUtil.translate("gui.energy_storage.desc.0"));
    electricityDesc.add(EnumColor.YELLOW + GCCoreUtil.translate("gui.energy_storage.desc.1") + ((int) Math.floor(this.fuelLoader.getEnergyStoredGC()) + " / " + (int) Math.floor(this.fuelLoader.getMaxEnergyStoredGC())));
    this.electricInfoRegion.tooltipStrings = electricityDesc;
    this.electricInfoRegion.xPosition = (this.width - this.xSize) / 2 + 112;
    this.electricInfoRegion.yPosition = (this.height - this.ySize) / 2 + 65;
    this.electricInfoRegion.parentWidth = this.width;
    this.electricInfoRegion.parentHeight = this.height;
    this.infoRegions.add(this.electricInfoRegion);
    this.buttonList.add(this.buttonLoadFuel = new GuiButton(0, this.width / 2 + 2, this.height / 2 - 49, 76, 20, GCCoreUtil.translate("gui.button.loadfuel.name")));
}
Also used : GuiElementInfoRegion(micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion) GuiButton(net.minecraft.client.gui.GuiButton) ArrayList(java.util.ArrayList)

Example 18 with GuiElementInfoRegion

use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.

the class GuiDeconstructor method initGui.

@Override
public void initGui() {
    super.initGui();
    this.electricInfoRegion.tooltipStrings = new ArrayList<String>();
    this.electricInfoRegion.xPosition = (this.width - this.xSize) / 2 + 17;
    this.electricInfoRegion.yPosition = (this.height - this.ySize) / 2 + 95;
    this.electricInfoRegion.parentWidth = this.width;
    this.electricInfoRegion.parentHeight = this.height;
    this.infoRegions.add(this.electricInfoRegion);
    List<String> batterySlotDesc = new ArrayList<String>();
    batterySlotDesc.add(GCCoreUtil.translate("gui.battery_slot.desc.0"));
    batterySlotDesc.add(GCCoreUtil.translate("gui.battery_slot.desc.1"));
    this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 54, (this.height - this.ySize) / 2 + 74, 18, 18, batterySlotDesc, this.width, this.height, this));
    this.processInfoRegion.tooltipStrings = new ArrayList<String>();
    // 77
    this.processInfoRegion.xPosition = (this.width - this.xSize) / 2 + 53;
    // 30
    this.processInfoRegion.yPosition = (this.height - this.ySize) / 2 + 28;
    this.processInfoRegion.parentWidth = this.width;
    this.processInfoRegion.parentHeight = this.height;
    this.infoRegions.add(this.processInfoRegion);
}
Also used : GuiElementInfoRegion(micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion) ArrayList(java.util.ArrayList)

Example 19 with GuiElementInfoRegion

use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.

the class GuiElectricFurnace method initGui.

@Override
public void initGui() {
    super.initGui();
    this.electricInfoRegion.tooltipStrings = new ArrayList<String>();
    this.electricInfoRegion.xPosition = (this.width - this.xSize) / 2 + 39;
    this.electricInfoRegion.yPosition = (this.height - this.ySize) / 2 + 52;
    this.electricInfoRegion.parentWidth = this.width;
    this.electricInfoRegion.parentHeight = this.height;
    this.infoRegions.add(this.electricInfoRegion);
    List<String> batterySlotDesc = new ArrayList<String>();
    batterySlotDesc.add(GCCoreUtil.translate("gui.battery_slot.desc.0"));
    batterySlotDesc.add(GCCoreUtil.translate("gui.battery_slot.desc.1"));
    this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 7, (this.height - this.ySize) / 2 + 48, 18, 18, batterySlotDesc, this.width, this.height, this));
}
Also used : GuiElementInfoRegion(micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion) ArrayList(java.util.ArrayList)

Example 20 with GuiElementInfoRegion

use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.

the class GuiCargoLoader method initGui.

@Override
public void initGui() {
    super.initGui();
    List<String> electricityDesc = new ArrayList<String>();
    electricityDesc.add(GCCoreUtil.translate("gui.energy_storage.desc.0"));
    electricityDesc.add(EnumColor.YELLOW + GCCoreUtil.translate("gui.energy_storage.desc.1") + ((int) Math.floor(this.cargoLoader.getEnergyStoredGC()) + " / " + (int) Math.floor(this.cargoLoader.getMaxEnergyStoredGC())));
    this.electricInfoRegion.tooltipStrings = electricityDesc;
    this.electricInfoRegion.xPosition = (this.width - this.xSize) / 2 + 107;
    this.electricInfoRegion.yPosition = (this.height - this.ySize) / 2 + 101;
    this.electricInfoRegion.parentWidth = this.width;
    this.electricInfoRegion.parentHeight = this.height;
    this.infoRegions.add(this.electricInfoRegion);
    List<String> batterySlotDesc = new ArrayList<String>();
    batterySlotDesc.add(GCCoreUtil.translate("gui.battery_slot.desc.0"));
    batterySlotDesc.add(GCCoreUtil.translate("gui.battery_slot.desc.1"));
    this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 9, (this.height - this.ySize) / 2 + 26, 18, 18, batterySlotDesc, this.width, this.height, this));
    this.buttonList.add(this.buttonLoadItems = new GuiButton(0, this.width / 2 - 1, this.height / 2 - 23, 76, 20, GCCoreUtil.translate("gui.button.loaditems.name")));
}
Also used : GuiElementInfoRegion(micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion) GuiButton(net.minecraft.client.gui.GuiButton) ArrayList(java.util.ArrayList)

Aggregations

GuiElementInfoRegion (micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion)30 ArrayList (java.util.ArrayList)29 GuiButton (net.minecraft.client.gui.GuiButton)18 GuiElementCheckbox (micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementCheckbox)3 GuiElementTextBox (micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementTextBox)2 Random (java.util.Random)1 GuiElementDropdown (micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementDropdown)1 GuiLabel (net.minecraft.client.gui.GuiLabel)1