Package erogenousbeef.bigreactors.gui.controls

Examples of erogenousbeef.bigreactors.gui.controls.BeefGuiLabel


 
  @Override
  public void initGui() {
    super.initGui();

    titleString = new BeefGuiLabel(this, _entity.getInventoryName(), guiLeft + 8, guiTop + 6);

    fluidBar = new BeefGuiFluidBar(this, guiLeft + 8, guiTop + 16, _entity, 0);
    powerBar = new BeefGuiPowerBar(this, guiLeft + 148, guiTop + 16, _entity);
    progressArrow = new BeefGuiProgressArrow(this, guiLeft + 76, guiTop + 41, 0, 178, _entity);
   
View Full Code Here


    super.initGui();

    int leftX = guiLeft + 6;
    int topY = guiTop + 6;
   
    titleString = new BeefGuiLabel(this, "Reactor Redstone Port", leftX+2, topY);
    topY += titleString.getHeight() + 4;
   
    settingString = new BeefGuiLabel(this, "Pick a setting", leftX, topY);
    topY += settingString.getHeight() + 4;
   
    // Setting picker
    BlockReactorPart reactorPartBlock = (BlockReactorPart)BigReactors.blockReactorPart;
    int buttonOrdinal = MINIMUM_SETTING_SELECTOR_ID;
    leftX = guiLeft + 16;
    CircuitType currentCircuitType = port.getCircuitType();
    for(CircuitType ct : CircuitType.values()) {
      if(ct == CircuitType.DISABLED) { continue; }
      GuiSelectableButton newBtn = new GuiSelectableButton(buttonOrdinal++, leftX, topY, reactorPartBlock.getRedNetConfigIcon(ct), 0xFF00FF00, this);
      newBtn.displayString = GuiReactorRedNetPort.grabbableTooltips[ct.ordinal()-1];

      if(ct == currentCircuitType) {
        newBtn.setSelected(true);
      }

      leftX += 28;
      if(leftX > guiLeft + 130) {
        topY += 28;
        leftX = guiLeft + 16;
      }
     
      registerCircuitButton(ct, newBtn);
    }
   
    topY += 32;
    leftX = guiLeft + 6;

    // Subsetting display
    subSettingLabel = new BeefGuiLabel(this, "Settings", leftX, topY);
    topY += subSettingLabel.getHeight() + 4;

    subInputButton = new GuiButton(2, leftX, topY, 100, 20, "Activate on Pulse");
    subInputButton2 = new GuiButton(3, leftX + xSize - 46, topY, 36, 20, "Mode");
    topY += 24;
   
    subInputRodSettingLabel = new BeefGuiLabel(this, "While On", leftX, topY);
    subInputRodSettingOffLabel = new BeefGuiLabel(this, "While Off", leftX + xSize/2, topY);
   
    subOutputValue = new GuiTextField(this.fontRendererObj, leftX, topY, 60, 12);
    subOutputValue.setCanLoseFocus(true);
    subOutputValue.setMaxStringLength(7);
    subOutputValue.setText("0");
    subOutputValue.setEnabled(true);

    subOutputValueLabel = new BeefGuiLabel(this, "C", leftX + 62, topY + 2);
   
    topY += subInputRodSettingLabel.getHeight() + 2;
   
    subInputRodSetting = new GuiTextField(this.fontRendererObj, leftX, topY, 32, 12);
    subInputRodSetting.setCanLoseFocus(true);
    subInputRodSetting.setMaxStringLength(3);
    subInputRodSetting.setText("0");
    subInputRodSetting.setEnabled(true);

    subInputRodSettingPctLabel = new BeefGuiLabel(this, "%", leftX + 34, topY + 2);

    subInputRodSettingOff = new GuiTextField(this.fontRendererObj, leftX + xSize/2, topY, 32, 12);
    subInputRodSettingOff.setCanLoseFocus(true);
    subInputRodSettingOff.setMaxStringLength(3);
    subInputRodSettingOff.setText("0");
    subInputRodSettingOff.setEnabled(true);
    subInputRodSettingOffPctLabel = new BeefGuiLabel(this, "%", leftX + xSize/2 + 34, topY + 2);

    topY += 24;
   
    // Bottom buttons
    commitBtn = new GuiButton(0, guiLeft + xSize - 60, guiTop + ySize - 24, 56, 20, "Commit");
View Full Code Here

    registerControl(btnWasteEject);
   
    int leftX = guiLeft + 4;
    int topY = guiTop + 4;
   
    titleString = new BeefGuiLabel(this, "Reactor Control", leftX, topY);
    topY += titleString.getHeight() + 4;
   
    heatIcon = new BeefGuiIcon(this, leftX - 2, topY, 16, 16, ClientProxy.GuiIcons.getIcon("temperature"), new String[] { EnumChatFormatting.AQUA + "Core Temperature", "", "Temperature inside the reactor core.", "Higher temperatures increase fuel burnup." });
    heatString = new BeefGuiLabel(this, "", leftX + 22, topY + 4);
    topY += heatIcon.getHeight() + 5;
   
    outputIcon = new BeefGuiIcon(this, leftX + 1, topY);
    outputString = new BeefGuiLabel(this, "", leftX + 22, topY + 4);
    topY += outputIcon.getHeight() + 5;
   
    fuelConsumedIcon = new BeefGuiIcon(this, leftX + 1, topY, 16, 16, ClientProxy.GuiIcons.getIcon("fuelUsageRate"), new String[] { EnumChatFormatting.AQUA + "Fuel Burnup Rate", "", "The rate at which fuel is", "fissioned into waste in the core."});
    fuelConsumedString = new BeefGuiLabel(this, "", leftX + 22, topY + 4);
    topY += fuelConsumedIcon.getHeight() + 5;

    reactivityIcon = new BeefGuiIcon(this, leftX, topY, 16, 16, ClientProxy.GuiIcons.getIcon("reactivity"), new String[] { EnumChatFormatting.AQUA + "Fuel Reactivity", "", "How heavily irradiated the core is.", "Higher levels of radiation", "reduce fuel burnup."});
    reactivityString = new BeefGuiLabel(this, "", leftX + 22, topY + 4);
    topY += reactivityIcon.getHeight() + 6;

    statusString = new BeefGuiLabel(this, "", leftX+1, topY);
    topY += statusString.getHeight() + 4;
   
   
    powerBar = new BeefGuiPowerBar(this, guiLeft + 152, guiTop + 22, this.reactor);
    coreHeatBar = new BeefGuiHeatBar(this, guiLeft + 130, guiTop + 22, EnumChatFormatting.AQUA + "Core Heat", new String[] { "Heat of the reactor's fuel.", "High heat raises fuel usage.", "", "Core heat is transferred to", "the casing. Transfer rate", "is based on the design of", "the reactor's interior."});
View Full Code Here

    super.initGui();

    int leftX = guiLeft + 4;
    int topY = guiTop + 4;
   
    titleString = new BeefGuiLabel(this, "Reactor RedNet Port", leftX+2, topY+2);
    settingsString = new BeefGuiLabel(this, "Settings", leftX+154, topY+2);
    subSettingString = new BeefGuiLabel(this, "", leftX+154, topY+80);
    subSettingValueString = new BeefGuiLabel(this, "", leftX+154, topY+94);

    topY += titleString.getHeight() + 8;
   
    selectedChannel = 0;
    for(int i = 0; i < channelLabelStrings.length; i+=2) {
View Full Code Here

    ejectWaste = new GuiIconButton(3, guiLeft + xSize - 77, guiTop + 53, 18, 18, ClientProxy.GuiIcons.getIcon("wasteEject"), new String[] { EnumChatFormatting.AQUA + "Eject Waste", "", "Ejects waste contained in the", "reactor, placing ingots in the", "reactor's access ports.", "", "SHIFT: Dump excess waste."});
   
    btnInlet = new GuiIconButton(0, guiLeft + xSize - 47, guiTop + 53, 18, 18, ClientProxy.GuiIcons.getIcon("inletOn"), new String[] { EnumChatFormatting.AQUA + "Inlet Mode", "", "Sets the access port to", "inlet mode.", "", "Port WILL accept", "items from pipes/ducts.", "Port WILL NOT eject", "items to pipes/ducts."});
    btnOutlet = new GuiIconButton(1, guiLeft + xSize - 27, guiTop + 53, 18, 18, ClientProxy.GuiIcons.getIcon("outletOn"), new String[] { EnumChatFormatting.AQUA + "Outlet Mode", "", "Sets the access port to", "outlet mode.", "", "Port WILL NOT accept", "items from pipes/ducts.", "Port WILL eject", "ingots to pipes/ducts."});
   
    inventoryLabel = new BeefGuiLabel(this, "Inventory", guiLeft + 8, guiTop + 64);
   
    registerControl(ejectFuel);
    registerControl(ejectWaste);
    registerControl(btnOutlet);
    registerControl(btnInlet);
View Full Code Here

    super.initGui();
   
    int leftX = guiLeft + 4;
    int topY = guiTop + 4;
   
    titleString = new BeefGuiLabel(this, "Turbine Control", leftX, topY);
    topY += titleString.getHeight() + 4;
   
    speedIcon = new BeefGuiIcon(this, leftX + 1, topY, 16, 16, ClientProxy.GuiIcons.getIcon("rpm"), new String[] { EnumChatFormatting.AQUA + "Rotor Speed", "", "Speed of the rotor in", "revolutions per minute.", "", "Rotors perform best at 900", "or 1800 RPM.", "", "Speeds over 2000PM are overspeed", "and may cause a turbine to", "fail catastrophically." });
    speedString = new BeefGuiLabel(this, "", leftX + 22, topY + 4);
    topY += speedIcon.getHeight() + 4;

    energyGeneratedIcon = new BeefGuiIcon(this, leftX+1, topY, 16, 16, ClientProxy.GuiIcons.getIcon("energyOutput"), new String[] { EnumChatFormatting.AQUA + "Energy Output", "", "Turbines generate energy via", "metal induction coils placed", "around a spinning rotor.", "More, or higher-quality, coils", "generate energy faster."});
    energyGeneratedString = new BeefGuiLabel(this, "", leftX + 22, topY + 4);
    topY += energyGeneratedIcon.getHeight() + 4;
   
    rotorEfficiencyIcon = new BeefGuiIcon(this, leftX + 1, topY, 16, 16, ClientProxy.GuiIcons.getIcon("rotorEfficiency"), new String[] { EnumChatFormatting.AQUA + "Rotor Efficiency", "", "Rotor blades can only fully", String.format("capture energy from %d mB of", MultiblockTurbine.inputFluidPerBlade), "fluid per blade.", "", "Efficiency drops if the flow", "of input fluid rises past", "capacity."});
    rotorEfficiencyString = new BeefGuiLabel(this, "", leftX + 22, topY + 4);
    topY += rotorEfficiencyIcon.getHeight() + 4;

    statusString = new BeefGuiLabel(this, "", leftX, topY);
    topY += statusString.getHeight() + 4;
   
    powerIcon = new BeefGuiIcon(this, guiLeft + 153, guiTop + 4, 16, 16, ClientProxy.GuiIcons.getIcon("energyStored"), new String[] { EnumChatFormatting.AQUA + "Energy Storage" });
    powerBar = new BeefGuiPowerBar(this, guiLeft + 152, guiTop + 22, this.turbine);
   
    steamIcon = new BeefGuiIcon(this, guiLeft + 113, guiTop + 4, 16, 16, ClientProxy.GuiIcons.getIcon("hotFluidIn"), new String[] { EnumChatFormatting.AQUA + "Intake Fluid Tank" });
    steamBar = new BeefGuiFluidBar(this, guiLeft + 112, guiTop + 22, turbine, MultiblockTurbine.TANK_INPUT);

    waterIcon = new BeefGuiIcon(this, guiLeft + 133, guiTop + 4, 16, 16, ClientProxy.GuiIcons.getIcon("coolantOut"), new String[] { EnumChatFormatting.AQUA + "Exhaust Fluid Tank" });
    waterBar = new BeefGuiFluidBar(this, guiLeft + 132, guiTop + 22, turbine, MultiblockTurbine.TANK_OUTPUT);

    rpmIcon = new BeefGuiIcon(this, guiLeft + 93, guiTop + 4, 16, 16, ClientProxy.GuiIcons.getIcon("rpm"), new String[] { EnumChatFormatting.AQUA + "Rotor Speed" });
    rpmBar = new BeefGuiRpmBar(this, guiLeft + 92, guiTop + 22, turbine, "Rotor Speed", new String[] {"Rotors perform best at", "900 or 1800 RPM.", "", "Rotors kept overspeed for too", "long may fail.", "", "Catastrophically."});
 
    governorIcon = new BeefGuiIcon(this, guiLeft + 102, guiTop + 107, 16, 16, ClientProxy.GuiIcons.getIcon("flowRate"), new String[] { EnumChatFormatting.AQUA + "Flow Rate Governor", "", "Controls the maximum rate at", "which hot fluids are drawn", "from the turbine's intake tank", "and passed over the turbines.", "", "Effectively, the max rate at which", "the turbine will process fluids."});
    governorString = new BeefGuiLabel(this, "", guiLeft + 122, guiTop + 112);
    btnGovernorUp   = new GuiIconButton(2, guiLeft + 120, guiTop + 125, 18, 18, ClientProxy.GuiIcons.getIcon("upArrow"),   new String[] { EnumChatFormatting.AQUA + "Increase Max Flow Rate", "", "Higher flow rates will", "increase rotor speed.", "", "SHIFT: +10 mB", "CTRL: +100mB", "CTRL+SHIFT: +1000mB"});
    btnGovernorDown = new GuiIconButton(3, guiLeft + 140, guiTop + 125, 18, 18, ClientProxy.GuiIcons.getIcon("downArrow"), new String[] { EnumChatFormatting.AQUA + "Decrease Max Flow Rate", "", "Lower flow rates will", "decrease rotor speed.""", "SHIFT: -10 mB", "CTRL: -100mB", "CTRL+SHIFT: -1000mB"});

    inductorIcon = new BeefGuiIcon(this, leftX, guiTop + 105, 16, 16, ClientProxy.GuiIcons.getIcon("coil"), new String[] { EnumChatFormatting.AQUA + "Induction Coils", "", "Metal coils inside the turbine", "extract energy from the rotor", "and convert it into RF.", "", "These controls engage/disengage", "the coils."});
    btnInductorOn = new GuiIconButton(7, guiLeft + 24, guiTop + 104, 18, 18, ClientProxy.GuiIcons.getIcon("On_off"), new String[] { EnumChatFormatting.AQUA + "Engage Coils", "", "Engages the induction coils.", "Energy will be extracted from", "the rotor and converted to RF.", "", "Energy extraction exerts drag", "on the rotor, slowing it down." });
View Full Code Here

    int leftX = guiLeft + 4;
    int topY = guiTop + 4;
   
    Keyboard.enableRepeatEvents(true);
   
    titleString = new BeefGuiLabel(this, "Reactor Control Rod", leftX, topY);
    topY += titleString.getHeight() + 8;
   
    rodNameLabel = new BeefGuiLabel(this, "Name:", leftX, topY + 6);
   
    rodName = new GuiTextField(fontRendererObj, leftX + 4 + rodNameLabel.getWidth(), topY, 100, 20);
    rodName.setCanLoseFocus(true);
    rodName.setMaxStringLength(32);
    rodName.setText(entity.getName());
    rodName.setEnabled(true);
   
    setNameBtn = new GuiButton(2, guiLeft + 140, topY, 30, 20, "Set");
    setNameBtn.enabled = false;
    topY += 28;
   
    rodInsertIcon = new BeefGuiIcon(this, leftX+42, topY, 16, 16, ClientProxy.GuiIcons.getIcon("controlRod"), new String[] { EnumChatFormatting.AQUA + "Rod Insertion", "", "Change the control rod's insertion.", "Higher insertion slows reaction rate.", "", "Lower reaction rates reduce heat,", "energy, radiation output, and", "fuel consumption." });
    insertionLabel = new BeefGuiLabel(this, "", leftX+62, topY+5);
    topY += 20;
    insertionBar = new BeefGuiInsertionProgressBar(this, leftX+40, topY);

    topY += 12;
    rodRetractBtn = new GuiIconButton(0, leftX+70, topY, 20, 20, ClientProxy.GuiIcons.getIcon("upArrow"), new String[] { EnumChatFormatting.AQUA + "Insert Rod", "Increase insertion by 10.", "", "Shift: +100", "Alt: +5", "Shift+Alt: +1", "", "Ctrl: Change ALL Rods" });
View Full Code Here

TOP

Related Classes of erogenousbeef.bigreactors.gui.controls.BeefGuiLabel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.