use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.
the class GuiOxygenCollector 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 + 31, (this.height - this.ySize) / 2 + 26, 18, 18, batterySlotDesc, this.width, this.height, this));
this.oxygenInfoRegion.xPosition = (this.width - this.xSize) / 2 + 112;
this.oxygenInfoRegion.yPosition = (this.height - this.ySize) / 2 + 24;
this.oxygenInfoRegion.parentWidth = this.width;
this.oxygenInfoRegion.parentHeight = this.height;
this.infoRegions.add(this.oxygenInfoRegion);
this.electricInfoRegion.xPosition = (this.width - this.xSize) / 2 + 112;
this.electricInfoRegion.yPosition = (this.height - this.ySize) / 2 + 37;
this.electricInfoRegion.parentWidth = this.width;
this.electricInfoRegion.parentHeight = this.height;
this.infoRegions.add(this.electricInfoRegion);
}
use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.
the class GuiAstroMinerDock method initGui.
@Override
public void initGui() {
super.initGui();
int xPos = (this.width - this.xSize) / 2;
int yPos = (this.height - this.ySize) / 2;
List<String> electricityDesc = new ArrayList<>();
electricityDesc.add(GCCoreUtil.translate("gui.energy_storage.desc.0"));
electricityDesc.add(EnumColor.YELLOW + GCCoreUtil.translate("gui.energy_storage.desc.1") + ((int) Math.floor(this.tile.getEnergyStoredGC()) + " / " + (int) Math.floor(this.tile.getMaxEnergyStoredGC())));
this.electricInfoRegion.tooltipStrings = electricityDesc;
this.electricInfoRegion.xPosition = xPos + 233;
this.electricInfoRegion.yPosition = yPos + 29;
this.electricInfoRegion.parentWidth = this.width;
this.electricInfoRegion.parentHeight = this.height;
this.infoRegions.add(this.electricInfoRegion);
List<String> batterySlotDesc = new ArrayList<>();
batterySlotDesc.add(GCCoreUtil.translate("gui.battery_slot.desc.0"));
batterySlotDesc.add(GCCoreUtil.translate("gui.battery_slot.desc.1"));
this.infoRegions.add(new GuiElementInfoRegion(xPos + 230, yPos + 108, 18, 18, batterySlotDesc, this.width, this.height, this));
this.buttonList.add(this.recallButton = new GuiButton(0, xPos + 173, yPos + 195, 76, 20, GCCoreUtil.translate("gui.button.recall.name")));
}
use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.
the class GuiGasLiquefier method initGui.
@Override
public void initGui() {
super.initGui();
this.gasTankRegion.xPosition = (this.width - this.xSize) / 2 + 7;
this.gasTankRegion.yPosition = (this.height - this.ySize) / 2 + 28;
this.gasTankRegion.parentWidth = this.width;
this.gasTankRegion.parentHeight = this.height;
this.infoRegions.add(this.gasTankRegion);
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 + 33, (this.height - this.ySize) / 2 + 49, 18, 18, batterySlotDesc, this.width, this.height, this));
this.fuelTankRegion.xPosition = (this.width - this.xSize) / 2 + 132;
this.fuelTankRegion.yPosition = (this.height - this.ySize) / 2 + 28;
this.fuelTankRegion.parentWidth = this.width;
this.fuelTankRegion.parentHeight = this.height;
this.infoRegions.add(this.fuelTankRegion);
this.fuelTank2Region.xPosition = (this.width - this.xSize) / 2 + 153;
this.fuelTank2Region.yPosition = (this.height - this.ySize) / 2 + 28;
this.fuelTank2Region.parentWidth = this.width;
this.fuelTank2Region.parentHeight = this.height;
this.infoRegions.add(this.fuelTank2Region);
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.liquid_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));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 131, (this.height - this.ySize) / 2 + 6, 18, 18, fuelSlotDesc, this.width, this.height, this));
fuelSlotDesc = new ArrayList<String>();
fuelSlotDesc.addAll(GCCoreUtil.translateWithSplit("gui.gas_input.desc.0"));
fuelSlotDesc.addAll(GCCoreUtil.translateWithSplit("gui.gas_input.desc.1"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 6, (this.height - this.ySize) / 2 + 6, 18, 18, fuelSlotDesc, this.width, this.height, this));
this.electricInfoRegion.xPosition = (this.width - this.xSize) / 2 + 42;
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.addToolTips();
this.buttonList.add(this.buttonDisable = new GuiButton(0, this.width / 2 - 49, this.height / 2 - 56, 76, 20, GCCoreUtil.translate("gui.button.liquefy.name")));
}
use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.
the class GuiShortRangeTelepad method initGui.
@Override
public void initGui() {
super.initGui();
this.buttonList.clear();
final int var5 = (this.width - this.xSize) / 2;
final int var6 = (this.height - this.ySize) / 2;
this.enableControllerButton = new GuiButton(0, var5 + 70 + 124 - 72, var6 + 16, 48, 20, GCCoreUtil.translate("gui.button.enable.name"));
this.address = new GuiElementTextBox(1, this, var5 + 66, var6 + 16, 48, 20, "", true, 6, false);
this.targetAddress = new GuiElementTextBox(2, this, var5 + 122, var6 + 16 + 22, 48, 20, "", true, 6, false);
this.buttonList.add(this.enableControllerButton);
this.buttonList.add(this.address);
this.buttonList.add(this.targetAddress);
this.electricInfoRegion.tooltipStrings = new ArrayList<String>();
this.electricInfoRegion.xPosition = (this.width - this.xSize) / 2 + 98;
this.electricInfoRegion.yPosition = (this.height - this.ySize) / 2 + 113;
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 + 151, (this.height - this.ySize) / 2 + 104, 18, 18, batterySlotDesc, this.width, this.height, this));
batterySlotDesc = new ArrayList<String>();
batterySlotDesc.addAll(GCCoreUtil.translateWithSplit("gui.telepad.desc.0"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 5, (this.height - this.ySize) / 2 + 20, 59, 13, batterySlotDesc, this.width, this.height, this));
batterySlotDesc = new ArrayList<String>();
batterySlotDesc.addAll(GCCoreUtil.translateWithSplit("gui.telepad.desc.1"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 5, (this.height - this.ySize) / 2 + 42, 117, 13, batterySlotDesc, this.width, this.height, this));
}
use of micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion in project Galacticraft by micdoodle8.
the class GuiLaunchController method initGui.
@Override
public void initGui() {
super.initGui();
this.buttonList.clear();
final int xLeft = (this.width - this.xSize) / 2;
final int yTop = (this.height - this.ySize) / 2;
this.enableControllerButton = new GuiButton(0, xLeft + 70 + 124 - 72, yTop + 16, 48, 20, GCCoreUtil.translate("gui.button.enable.name"));
this.frequency = new GuiElementTextBox(4, this, xLeft + 66, yTop + 16, 48, 20, "", true, 6, false);
this.destinationFrequency = new GuiElementTextBox(5, this, xLeft + 45, yTop + 16 + 22, 48, 20, "", true, 6, false);
this.hideDestinationFrequency = new GuiButton(6, xLeft + 95, yTop + 16 + 22, 39, 20, GCCoreUtil.translate("gui.button.hide_dest.name"));
this.openAdvancedConfig = new GuiButton(7, xLeft + 48, yTop + 62, 80, 20, GCCoreUtil.translate("gui.launch_controller.advanced") + "...");
this.buttonList.add(this.enableControllerButton);
this.buttonList.add(this.frequency);
this.buttonList.add(this.destinationFrequency);
this.buttonList.add(this.hideDestinationFrequency);
this.buttonList.add(this.openAdvancedConfig);
this.electricInfoRegion.tooltipStrings = new ArrayList<String>();
this.electricInfoRegion.xPosition = xLeft + 98;
this.electricInfoRegion.yPosition = yTop + 113;
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(xLeft + 151, yTop + 104, 18, 18, batterySlotDesc, this.width, this.height, this));
batterySlotDesc = new ArrayList<String>();
batterySlotDesc.addAll(GCCoreUtil.translateWithSplit("gui.launch_controller.desc.0"));
this.infoRegions.add(new GuiElementInfoRegion(xLeft + 5, yTop + 20, 109, 13, batterySlotDesc, this.width, this.height, this));
batterySlotDesc = new ArrayList<String>();
batterySlotDesc.addAll(GCCoreUtil.translateWithSplit("gui.launch_controller.desc.1"));
this.infoRegions.add(new GuiElementInfoRegion(xLeft + 5, yTop + 42, 87, 13, batterySlotDesc, this.width, this.height, this));
batterySlotDesc = new ArrayList<String>();
batterySlotDesc.addAll(GCCoreUtil.translateWithSplit("gui.launch_controller.desc.4"));
this.infoRegions.add(new GuiElementInfoRegion(xLeft + 95, yTop + 38, 38, 20, batterySlotDesc, this.width, this.height, this));
}
Aggregations