use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.
the class GuiTerraformer method initGui.
@Override
public void initGui() {
super.initGui();
this.electricInfoRegion.tooltipStrings = new ArrayList<String>();
this.electricInfoRegion.xPosition = (this.width - this.xSize) / 2 + 44;
this.electricInfoRegion.yPosition = (this.height - this.ySize) / 2 + 47;
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 + 24, (this.height - this.ySize) / 2 + 38, 18, 18, batterySlotDesc, this.width, this.height, this));
batterySlotDesc = new ArrayList<String>();
batterySlotDesc.add(GCCoreUtil.translate("gui.show_bubble.desc.0"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 85, (this.height - this.ySize) / 2 + 132, 85, 13, batterySlotDesc, this.width, this.height, this));
this.waterTankInfoRegion.tooltipStrings = new ArrayList<String>();
this.waterTankInfoRegion.xPosition = (this.width - this.xSize) / 2 + 55;
this.waterTankInfoRegion.yPosition = (this.height - this.ySize) / 2 + 17;
this.waterTankInfoRegion.parentWidth = this.width;
this.waterTankInfoRegion.parentHeight = this.height;
this.infoRegions.add(this.waterTankInfoRegion);
this.buttonList.clear();
final int var5 = (this.width - this.xSize) / 2;
final int var6 = (this.height - this.ySize) / 2;
this.enableTreesButton = new GuiButton(0, var5 + 98, var6 + 85, 72, 20, GCCoreUtil.translate("gui.message.enable_trees.name"));
this.enableGrassButton = new GuiButton(1, var5 + 98, var6 + 109, 72, 20, GCCoreUtil.translate("gui.message.enable_grass.name"));
this.buttonList.add(this.enableTreesButton);
this.buttonList.add(this.enableGrassButton);
this.checkboxRenderBubble = new GuiElementCheckbox(2, this, var5 + 85, var6 + 132, GCCoreUtil.translate("gui.message.bubble_visible.name"));
this.buttonList.add(this.checkboxRenderBubble);
}
use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.
the class GuiOxygenSealer method initGui.
@Override
public void initGui() {
super.initGui();
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 + 32, (this.height - this.ySize) / 2 + 26, 18, 18, batterySlotDesc, this.width, this.height, this));
List<String> oxygenSlotDesc = new ArrayList<String>();
oxygenSlotDesc.add(GCCoreUtil.translate("gui.oxygen_slot.desc.0"));
oxygenSlotDesc.add(GCCoreUtil.translate("gui.oxygen_slot.desc.1"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 9, (this.height - this.ySize) / 2 + 26, 18, 18, oxygenSlotDesc, this.width, this.height, this));
List<String> ambientThermalDesc = new ArrayList<String>();
ambientThermalDesc.add(GCCoreUtil.translate("gui.thermal_slot.desc.0"));
ambientThermalDesc.add(GCCoreUtil.translate("gui.thermal_slot.desc.1"));
ambientThermalDesc.add(GCCoreUtil.translate("gui.thermal_slot.desc.2"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 55, (this.height - this.ySize) / 2 + 26, 18, 18, ambientThermalDesc, this.width, this.height, this));
List<String> oxygenDesc = new ArrayList<String>();
oxygenDesc.add(GCCoreUtil.translate("gui.oxygen_storage.desc.0"));
oxygenDesc.add(EnumColor.YELLOW + GCCoreUtil.translate("gui.oxygen_storage.desc.1") + ": " + ((int) Math.floor(this.sealer.getOxygenStored()) + " / " + (int) Math.floor(this.sealer.getMaxOxygenStored())));
this.oxygenInfoRegion.tooltipStrings = oxygenDesc;
this.oxygenInfoRegion.xPosition = (this.width - this.xSize) / 2 + 112;
this.oxygenInfoRegion.yPosition = (this.height - this.ySize) / 2 + 23;
this.oxygenInfoRegion.parentWidth = this.width;
this.oxygenInfoRegion.parentHeight = this.height;
this.infoRegions.add(this.oxygenInfoRegion);
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.sealer.getEnergyStoredGC()) + " / " + (int) Math.floor(this.sealer.getMaxEnergyStoredGC())));
this.electricInfoRegion.tooltipStrings = electricityDesc;
this.electricInfoRegion.xPosition = (this.width - this.xSize) / 2 + 112;
this.electricInfoRegion.yPosition = (this.height - this.ySize) / 2 + 36;
this.electricInfoRegion.parentWidth = this.width;
this.electricInfoRegion.parentHeight = this.height;
this.infoRegions.add(this.electricInfoRegion);
this.buttonList.add(this.buttonDisable = new GuiButton(0, this.width / 2 - 38, this.height / 2 - 30 + 21, 76, 20, GCCoreUtil.translate("gui.button.enableseal.name")));
}
use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.
the class GuiOxygenStorageModule method initGui.
@Override
public void initGui() {
super.initGui();
List<String> oxygenSlotDesc = new ArrayList<String>();
oxygenSlotDesc.add(GCCoreUtil.translate("gui.oxygen_slot.desc.0"));
oxygenSlotDesc.add(GCCoreUtil.translate("gui.oxygen_slot.desc.1"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 16, (this.height - this.ySize) / 2 + 21, 18, 18, oxygenSlotDesc, this.width, this.height, this));
}
use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.
the class GuiRefinery method initGui.
@Override
public void initGui() {
super.initGui();
List<String> oilTankDesc = new ArrayList<String>();
oilTankDesc.add(GCCoreUtil.translate("gui.oil_tank.desc.0"));
oilTankDesc.add(GCCoreUtil.translate("gui.oil_tank.desc.1"));
int oilLevel = this.tileEntity.oilTank != null && this.tileEntity.oilTank.getFluid() != null ? this.tileEntity.oilTank.getFluid().amount : 0;
int oilCapacity = this.tileEntity.oilTank != null ? this.tileEntity.oilTank.getCapacity() : 0;
oilTankDesc.add(EnumColor.YELLOW + GCCoreUtil.translate("gui.message.oil.name") + ": " + oilLevel + " / " + oilCapacity);
this.oilTankRegion.tooltipStrings = oilTankDesc;
this.oilTankRegion.xPosition = (this.width - this.xSize) / 2 + 7;
this.oilTankRegion.yPosition = (this.height - this.ySize) / 2 + 28;
this.oilTankRegion.parentWidth = this.width;
this.oilTankRegion.parentHeight = this.height;
this.infoRegions.add(this.oilTankRegion);
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 + 37, (this.height - this.ySize) / 2 + 50, 18, 18, batterySlotDesc, this.width, this.height, this));
List<String> fuelTankDesc = new ArrayList<String>();
fuelTankDesc.add(GCCoreUtil.translate("gui.fuel_tank.desc.4"));
int fuelLevel = this.tileEntity.fuelTank != null && this.tileEntity.fuelTank.getFluid() != null ? this.tileEntity.fuelTank.getFluid().amount : 0;
int fuelCapacity = this.tileEntity.fuelTank != null ? this.tileEntity.fuelTank.getCapacity() : 0;
fuelTankDesc.add(EnumColor.YELLOW + GCCoreUtil.translate("gui.message.fuel.name") + ": " + fuelLevel + " / " + fuelCapacity);
this.fuelTankRegion.tooltipStrings = fuelTankDesc;
this.fuelTankRegion.xPosition = (this.width - this.xSize) / 2 + 153;
this.fuelTankRegion.yPosition = (this.height - this.ySize) / 2 + 28;
this.fuelTankRegion.parentWidth = this.width;
this.fuelTankRegion.parentHeight = this.height;
this.infoRegions.add(this.fuelTankRegion);
List<String> fuelSlotDesc = new ArrayList<String>();
fuelSlotDesc.add(GCCoreUtil.translate("gui.fuel_output.desc.0"));
fuelSlotDesc.add(GCCoreUtil.translate("gui.fuel_output.desc.1"));
fuelSlotDesc.add(GCCoreUtil.translate("gui.fuel_output.desc.2"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 152, (this.height - this.ySize) / 2 + 6, 18, 18, fuelSlotDesc, 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.tileEntity.getEnergyStoredGC()) + " / " + (int) Math.floor(this.tileEntity.getMaxEnergyStoredGC())));
this.electricInfoRegion.tooltipStrings = electricityDesc;
this.electricInfoRegion.xPosition = (this.width - this.xSize) / 2 + 62;
this.electricInfoRegion.yPosition = (this.height - this.ySize) / 2 + 16;
this.electricInfoRegion.parentWidth = this.width;
this.electricInfoRegion.parentHeight = this.height;
this.infoRegions.add(this.electricInfoRegion);
this.buttonList.add(this.buttonDisable = new GuiButton(0, this.width / 2 - 39, this.height / 2 - 56, 76, 20, GCCoreUtil.translate("gui.button.refine.name")));
}
use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.
the class GuiRocketInventory method initGui.
@Override
public void initGui() {
super.initGui();
List<String> fuelTankDesc = new ArrayList<String>();
fuelTankDesc.add(GCCoreUtil.translate("gui.fuel_tank.desc.0"));
fuelTankDesc.add(GCCoreUtil.translate("gui.fuel_tank.desc.1"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + (((EntityTieredRocket) this.mc.thePlayer.ridingEntity).rocketType.getInventorySpace() == 2 ? 70 : 71), (this.height - this.ySize) / 2 + 6, 36, 40, fuelTankDesc, this.width, this.height, this));
}
Aggregations