Search in sources :

Example 1 with GuiElementCheckboxMP

use of stevekung.mods.moreplanets.util.client.gui.GuiElementCheckboxMP in project MorePlanets by SteveKunG.

the class GuiBlackHoleStorage method initGui.

@Override
public void initGui() {
    super.initGui();
    int width = (this.width - this.xSize) / 2;
    int height = (this.height - this.ySize) / 2;
    List<String> renderDesc = new ArrayList<>();
    renderDesc.add(GCCoreUtil.translate("gui.disable_black_hole.desc"));
    this.infoRegions.add(new GuiElementInfoRegionMP((this.width - this.xSize) / 2 + 178, (this.height - this.ySize) / 2 + 192, 13, 13, renderDesc, this.width, this.height, this));
    renderDesc = new ArrayList<>();
    renderDesc.add(GCCoreUtil.translate("gui.use_hopper.desc"));
    this.infoRegions.add(new GuiElementInfoRegionMP((this.width - this.xSize) / 2 + 198, (this.height - this.ySize) / 2 + 192, 13, 13, renderDesc, this.width, this.height, this));
    renderDesc = new ArrayList<>();
    renderDesc.add(GCCoreUtil.translate("gui.collect_mode.desc"));
    this.infoRegions.add(new GuiElementInfoRegionMP((this.width - this.xSize) / 2 + 218, (this.height - this.ySize) / 2 + 192, 13, 13, renderDesc, this.width, this.height, this));
    this.infoRegions.add(this.xpValueInfo = new GuiElementInfoRegionMP((this.width - this.xSize) / 2 + 238, (this.height - this.ySize) / 2 + 170, 5, 37, null, this.width, this.height, this));
    this.disableBlackHoleCheckbox = new GuiElementCheckbox(0, this, width + 178, height + 192, "");
    this.useHopperCheckbox = new GuiElementCheckbox(1, this, width + 198, height + 192, "");
    this.collectModeCheckbox = new GuiElementCheckboxMP(2, this, width + 218, height + 192, "");
    this.buttonList.add(this.disableBlackHoleCheckbox);
    this.buttonList.add(this.useHopperCheckbox);
    this.buttonList.add(this.collectModeCheckbox);
}
Also used : GuiElementCheckbox(micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementCheckbox) GuiElementCheckboxMP(stevekung.mods.moreplanets.util.client.gui.GuiElementCheckboxMP) GuiElementInfoRegionMP(stevekung.mods.moreplanets.util.client.gui.GuiElementInfoRegionMP) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 GuiElementCheckbox (micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementCheckbox)1 GuiElementCheckboxMP (stevekung.mods.moreplanets.util.client.gui.GuiElementCheckboxMP)1 GuiElementInfoRegionMP (stevekung.mods.moreplanets.util.client.gui.GuiElementInfoRegionMP)1