mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-21 12:42:36 +00:00
Localize GUIs
This commit is contained in:
1 parent
0e997bb295
commit
dbf38c7a47
25 files changed
+140
-81
No files matched your search
@@ -263,7 +263,7 @@ public class LiquidSettings extends BaseSettingsPanel {
|
||||
if(isEnder && isFilterVisible()) {
|
||||
|
||||
if(conduit.getConnectionMode(gui.getDir()) == ConnectionMode.IN_OUT) {
|
||||
String inOutStr = inOutShowIn ? "Extract" : "Insert";
|
||||
String inOutStr = inOutShowIn ? Lang.localize("gui.conduit.ioMode.input") : Lang.localize("gui.conduit.ioMode.output");
|
||||
int x = gui.getGuiLeft() + gui.getXSize() - 20 - 5 - gui.getFontRenderer().getStringWidth(inOutStr);
|
||||
int y = top;
|
||||
gui.getFontRenderer().drawString(inOutStr, x, y, ColorUtil.getRGB(Color.DARK_GRAY));
|
||||
|
||||
@@ -573,22 +573,22 @@ public final class Config {
|
||||
"The range of the wireless charger").getInt(wirelessChargerRange);
|
||||
|
||||
fluidConduitExtractRate = config.get(sectionEfficiency.name, "fluidConduitExtractRate", fluidConduitExtractRate,
|
||||
"Number of millibuckects per tick extracted by a fluid conduits auto extracting").getInt(fluidConduitExtractRate);
|
||||
"Number of millibuckets per tick extracted by a fluid conduits auto extracting").getInt(fluidConduitExtractRate);
|
||||
|
||||
fluidConduitMaxIoRate = config.get(sectionEfficiency.name, "fluidConduitMaxIoRate", fluidConduitMaxIoRate,
|
||||
"Number of millibuckects per tick that can pass through a single connection to a fluid conduit.").getInt(fluidConduitMaxIoRate);
|
||||
"Number of millibuckets per tick that can pass through a single connection to a fluid conduit.").getInt(fluidConduitMaxIoRate);
|
||||
|
||||
advancedFluidConduitExtractRate = config.get(sectionEfficiency.name, "advancedFluidConduitExtractRate", advancedFluidConduitExtractRate,
|
||||
"Number of millibuckects per tick extracted by pressurised fluid conduits auto extracting").getInt(advancedFluidConduitExtractRate);
|
||||
"Number of millibuckets per tick extracted by pressurised fluid conduits auto extracting").getInt(advancedFluidConduitExtractRate);
|
||||
|
||||
advancedFluidConduitMaxIoRate = config.get(sectionEfficiency.name, "advancedFluidConduitMaxIoRate", advancedFluidConduitMaxIoRate,
|
||||
"Number of millibuckects per tick that can pass through a single connection to an pressurised fluid conduit.").getInt(advancedFluidConduitMaxIoRate);
|
||||
"Number of millibuckets per tick that can pass through a single connection to an pressurised fluid conduit.").getInt(advancedFluidConduitMaxIoRate);
|
||||
|
||||
enderFluidConduitExtractRate = config.get(sectionEfficiency.name, "enderFluidConduitExtractRate", enderFluidConduitExtractRate,
|
||||
"Number of millibuckects per tick extracted by ender fluid conduits auto extracting").getInt(enderFluidConduitExtractRate);
|
||||
"Number of millibuckets per tick extracted by ender fluid conduits auto extracting").getInt(enderFluidConduitExtractRate);
|
||||
|
||||
enderFluidConduitMaxIoRate = config.get(sectionEfficiency.name, "enderFluidConduitMaxIoRate", enderFluidConduitMaxIoRate,
|
||||
"Number of millibuckects per tick that can pass through a single connection to an ender fluid conduit.").getInt(enderFluidConduitMaxIoRate);
|
||||
"Number of millibuckets per tick that can pass through a single connection to an ender fluid conduit.").getInt(enderFluidConduitMaxIoRate);
|
||||
|
||||
gasConduitExtractRate = config.get(sectionEfficiency.name, "gasConduitExtractRate", gasConduitExtractRate,
|
||||
"Amount of gas per tick extracted by gas conduits auto extracting").getInt(gasConduitExtractRate);
|
||||
@@ -604,7 +604,7 @@ public final class Config {
|
||||
transceiverUpkeepCostRF = config.get(sectionPower.name, "transceiverUpkeepCostRF", transceiverUpkeepCostRF,
|
||||
"Number of RF/t required to keep a Dimensional Transceiver connection open").getInt(transceiverUpkeepCostRF);
|
||||
transceiverMaxIoRF = config.get(sectionPower.name, "transceiverMaxIoRF", transceiverMaxIoRF,
|
||||
"Maximum RF/t sent and recieved by a Dimensional Transceiver per tick. Input and output limits are not cumulative").getInt(transceiverMaxIoRF);
|
||||
"Maximum RF/t sent and received by a Dimensional Transceiver per tick. Input and output limits are not cumulative").getInt(transceiverMaxIoRF);
|
||||
transceiverBucketTransmissionCostRF = config.get(sectionEfficiency.name, "transceiverBucketTransmissionCostRF", transceiverBucketTransmissionCostRF,
|
||||
"The cost in RF of transporting a bucket of fluid via a Dimensional Transceiver.").getInt(transceiverBucketTransmissionCostRF);
|
||||
|
||||
@@ -690,7 +690,7 @@ public final class Config {
|
||||
|
||||
|
||||
enderIoRange = config.get(sectionEfficiency.name, "enderIoRange", enderIoRange,
|
||||
"Range accessable (in blocks) when using the Ender IO.").getInt(enderIoRange);
|
||||
"Range accessible (in blocks) when using the Ender IO.").getInt(enderIoRange);
|
||||
|
||||
enderIoMeAccessEnabled = config.get(sectionPersonal.name, "enderIoMeAccessEnabled", enderIoMeAccessEnabled,
|
||||
"If false: you will not be able to access a ME access or crafting terminal using the Ender IO.").getBoolean(enderIoMeAccessEnabled);
|
||||
@@ -703,7 +703,7 @@ public final class Config {
|
||||
|
||||
darkSteelPowerDamgeAbsorptionRatios = config
|
||||
.get(sectionDarkSteel.name, "darkSteelPowerDamgeAbsorptionRatios", darkSteelPowerDamgeAbsorptionRatios,
|
||||
"A list of the amount of durabilty damage absorbed when items are powered. In order of upgrade level. 1=100% so items take no durablity damage when powered.")
|
||||
"A list of the amount of durability damage absorbed when items are powered. In order of upgrade level. 1=100% so items take no durability damage when powered.")
|
||||
.getDoubleList();
|
||||
darkSteelPowerStorageBase = config.get(sectionDarkSteel.name, "darkSteelPowerStorageBase", darkSteelPowerStorageBase,
|
||||
"Base amount of power stored by dark steel items.").getInt(darkSteelPowerStorageBase);
|
||||
@@ -761,9 +761,9 @@ public final class Config {
|
||||
darkSteelWalkPowerCost = config.get(sectionDarkSteel.name, "darkSteelWalkPowerCost", darkSteelWalkPowerCost,
|
||||
"Amount of power stored (RF) per block walked when wearing the dark steel boots.").getInt(darkSteelWalkPowerCost);
|
||||
darkSteelSprintPowerCost = config.get(sectionDarkSteel.name, "darkSteelSprintPowerCost", darkSteelWalkPowerCost,
|
||||
"Amount of power stored (RF) per block walked when wearing the dark stell boots.").getInt(darkSteelSprintPowerCost);
|
||||
"Amount of power stored (RF) per block walked when wearing the dark steel boots.").getInt(darkSteelSprintPowerCost);
|
||||
darkSteelDrainPowerFromInventory = config.get(sectionDarkSteel.name, "darkSteelDrainPowerFromInventory", darkSteelDrainPowerFromInventory,
|
||||
"If true, dark steel armor will drain power stored (RF) in power containers in the players invenotry.").getBoolean(darkSteelDrainPowerFromInventory);
|
||||
"If true, dark steel armor will drain power stored (RF) in power containers in the players inventory.").getBoolean(darkSteelDrainPowerFromInventory);
|
||||
|
||||
darkSteelBootsJumpPowerCost = config.get(sectionDarkSteel.name, "darkSteelBootsJumpPowerCost", darkSteelBootsJumpPowerCost,
|
||||
"Base amount of power used per jump (RF) dark steel boots. The second jump in a 'double jump' uses 2x this etc").getInt(darkSteelBootsJumpPowerCost);
|
||||
@@ -840,7 +840,7 @@ public final class Config {
|
||||
vanillaSwordSkullLootingModifier);
|
||||
|
||||
ticCleaverSkullDropChance = (float) config.get(sectionDarkSteel.name, "ticCleaverSkullDropChance", ticCleaverSkullDropChance,
|
||||
"The base chance that an enderman skull will be dropped when using TiC Cleaver").getDouble(
|
||||
"The base chance that an Enderman Skull will be dropped when using TiC Cleaver").getDouble(
|
||||
ticCleaverSkullDropChance);
|
||||
ticBeheadingSkullModifier = (float) config.get(sectionPersonal.name, "ticBeheadingSkullModifier", ticBeheadingSkullModifier,
|
||||
"The chance per level of Beheading that a skull will be dropped when using a TiC weapon").getDouble(
|
||||
@@ -869,7 +869,7 @@ public final class Config {
|
||||
darkSteelPickPowerUseObsidian = config.get(sectionDarkSteel.name, "darkSteelPickPowerUseObsidian", darkSteelPickPowerUseObsidian,
|
||||
"The amount of power (RF) used to break an obsidian block.").getInt(darkSteelPickPowerUseObsidian);
|
||||
darkSteelPickEffeciencyObsidian = config.get(sectionDarkSteel.name, "darkSteelPickEffeciencyObsidian", darkSteelPickEffeciencyObsidian,
|
||||
"The effeciency when breaking obsidian with a powered Dark Pickaxe.").getInt(darkSteelPickEffeciencyObsidian);
|
||||
"The efficiency when breaking obsidian with a powered Dark Pickaxe.").getInt(darkSteelPickEffeciencyObsidian);
|
||||
darkSteelPickApplyObsidianEffeciencyAtHardess = (float) config.get(sectionDarkSteel.name, "darkSteelPickApplyObsidianEffeciencyAtHardess",
|
||||
darkSteelPickApplyObsidianEffeciencyAtHardess,
|
||||
"If set to a value > 0, the obsidian speed and power use will be used for all blocks with hardness >= to this value.").getDouble(
|
||||
@@ -877,7 +877,7 @@ public final class Config {
|
||||
darkSteelPickPowerUsePerDamagePoint = config.get(sectionDarkSteel.name, "darkSteelPickPowerUsePerDamagePoint", darkSteelPickPowerUsePerDamagePoint,
|
||||
"Power use (RF) per damage/durability point avoided.").getInt(darkSteelPickPowerUsePerDamagePoint);
|
||||
darkSteelPickEffeciencyBoostWhenPowered = (float) config.get(sectionDarkSteel.name, "darkSteelPickEffeciencyBoostWhenPowered",
|
||||
darkSteelPickEffeciencyBoostWhenPowered, "The increase in effciency when powered.").getDouble(darkSteelPickEffeciencyBoostWhenPowered);
|
||||
darkSteelPickEffeciencyBoostWhenPowered, "The increase in efficiency when powered.").getDouble(darkSteelPickEffeciencyBoostWhenPowered);
|
||||
darkSteelPickMinesTiCArdite = config.getBoolean("darkSteelPickMinesTiCArdite", sectionDarkSteel.name, darkSteelPickMinesTiCArdite,
|
||||
"When true the dark steel pick will be able to mine TiC Ardite and Cobalt");
|
||||
|
||||
@@ -890,7 +890,7 @@ public final class Config {
|
||||
darkSteelAxeSpeedPenaltyMultiHarvest,
|
||||
"How much slower shift-harvesting logs is.").getDouble(darkSteelAxeSpeedPenaltyMultiHarvest);
|
||||
darkSteelAxeEffeciencyBoostWhenPowered = (float) config.get(sectionDarkSteel.name, "darkSteelAxeEffeciencyBoostWhenPowered",
|
||||
darkSteelAxeEffeciencyBoostWhenPowered, "The increase in effciency when powered.").getDouble(darkSteelAxeEffeciencyBoostWhenPowered);
|
||||
darkSteelAxeEffeciencyBoostWhenPowered, "The increase in efficiency when powered.").getDouble(darkSteelAxeEffeciencyBoostWhenPowered);
|
||||
|
||||
darkSteelAnvilDamageChance = (float) config.get(sectionDarkSteel.name, "darkSteelAnvilDamageChance", darkSteelAnvilDamageChance, "Chance that the dark steel anvil will take damage after repairing something.").getDouble();
|
||||
|
||||
@@ -1100,7 +1100,7 @@ public final class Config {
|
||||
spawnGuardPowerPerTickLevelThree = config.get(sectionAttractor.name, "spawnGuardPowerPerTickLevelThree", spawnGuardPowerPerTickLevelThree,
|
||||
"The RF/t power use of a levele 3 spawn guard").getInt(spawnGuardPowerPerTickLevelThree);
|
||||
spawnGuardStopAllSlimesDebug = config.getBoolean("spawnGuardStopAllSlimesDebug", sectionAttractor.name, spawnGuardStopAllSlimesDebug,
|
||||
"When true slimes wont be alowed to spawn at all. Only added to aid testing in super flat worlds.");
|
||||
"When true slimes wont be allowed to spawn at all. Only added to aid testing in super flat worlds.");
|
||||
spawnGuardStopAllSquidSpawning = config.getBoolean("spawnGuardStopAllSquidSpawning", sectionAttractor.name, spawnGuardStopAllSquidSpawning,
|
||||
"When true no squid will be spawned.");
|
||||
|
||||
@@ -1120,9 +1120,9 @@ public final class Config {
|
||||
|
||||
enderRailEnabled = config.getBoolean("enderRailEnabled", sectionRailConfig.name, enderRailEnabled, "Wether Ender Rails are enabled");
|
||||
enderRailPowerRequireCrossDimensions = config.get(sectionRailConfig.name, "enderRailPowerRequireCrossDimensions", enderRailPowerRequireCrossDimensions,
|
||||
"The amount of power required to transpoer a cart accross dimensions").getInt(enderRailPowerRequireCrossDimensions);
|
||||
"The amount of power required to transport a cart across dimensions").getInt(enderRailPowerRequireCrossDimensions);
|
||||
enderRailPowerRequiredPerBlock = config.get(sectionRailConfig.name, "enderRailPowerRequiredPerBlock", enderRailPowerRequiredPerBlock,
|
||||
"The amout of power required to teleport a cart per block in the same dimension").getInt(enderRailPowerRequiredPerBlock);
|
||||
"The amount of power required to teleport a cart per block in the same dimension").getInt(enderRailPowerRequiredPerBlock);
|
||||
enderRailCapSameDimensionPowerAtCrossDimensionCost = config.getBoolean("enderRailCapSameDimensionPowerAtCrossDimensionCost", sectionRailConfig.name, enderRailCapSameDimensionPowerAtCrossDimensionCost,
|
||||
"When set to true the RF cost of sending a cart within the same dimension will be capped to the cross dimension cost");
|
||||
enderRailTicksBeforeForceSpawningLinkedCarts = config.get(sectionRailConfig.name, "enderRailTicksBeforeForceSpawningLinkedCarts", enderRailTicksBeforeForceSpawningLinkedCarts,
|
||||
|
||||
@@ -16,6 +16,7 @@ import crazypants.enderio.machine.gui.GuiPoweredMachineBase;
|
||||
import crazypants.enderio.machine.power.PowerDisplayUtil;
|
||||
import crazypants.enderio.network.PacketHandler;
|
||||
import crazypants.render.RenderUtil;
|
||||
import crazypants.util.Lang;
|
||||
|
||||
public class GuiCrafter extends GuiPoweredMachineBase<TileCrafter> {
|
||||
|
||||
@@ -28,8 +29,8 @@ public class GuiCrafter extends GuiPoweredMachineBase<TileCrafter> {
|
||||
int x = getXSize() - 5 - 16;
|
||||
int y = 43;
|
||||
bufferSizeB = new ToggleButtonEIO(this, 4327, x, y, IconEIO.ITEM_SINGLE, IconEIO.ITEM_STACK);
|
||||
bufferSizeB.setSelectedToolTip("Buffering item stacks");
|
||||
bufferSizeB.setUnselectedToolTip("Buffering single items");
|
||||
bufferSizeB.setSelectedToolTip(Lang.localize("gui.machine.bufferingstacks"));
|
||||
bufferSizeB.setUnselectedToolTip(Lang.localize("gui.machine.bufferingsingle"));
|
||||
bufferSizeB.setSelected(te.isBufferStacks());
|
||||
}
|
||||
|
||||
@@ -71,7 +72,7 @@ public class GuiCrafter extends GuiPoweredMachineBase<TileCrafter> {
|
||||
@Override
|
||||
protected void updatePowerBarTooltip(List<String> text) {
|
||||
text.add(PowerDisplayUtil.formatPower(Config.crafterRfPerCraft) + " " + PowerDisplayUtil.abrevation()
|
||||
+ " Per Craft");
|
||||
+ " " + Lang.localize("gui.machine.percraft"));
|
||||
super.updatePowerBarTooltip(text);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -102,7 +102,7 @@ public class GuiCombustionGenerator extends GuiPoweredMachineBase<TileCombustion
|
||||
RenderUtil.renderGuiTank(gen.getCoolantTank().getFluid(), 4000, gen.getCoolantTank().getFluidAmount() - 1000, x, y, zLevel, 15, 47);
|
||||
|
||||
if(gen.isActive()) {
|
||||
txt = gen.getNumTicksPerMbCoolant() + " t/MB";
|
||||
txt = gen.getNumTicksPerMbCoolant() + " " + Lang.localize("power.tmb");
|
||||
sw = fr.getStringWidth(txt);
|
||||
fr.drawStringWithShadow(txt, x - sw / 2 + 7, y + fr.FONT_HEIGHT / 2 + 47, ColorUtil.getRGB(Color.WHITE));
|
||||
}
|
||||
@@ -124,7 +124,7 @@ public class GuiCombustionGenerator extends GuiPoweredMachineBase<TileCombustion
|
||||
RenderUtil.renderGuiTank(gen.getFuelTank().getFluid(), 4000, gen.getFuelTank().getFluidAmount() - 1000, x, y, zLevel, 15, 47);
|
||||
|
||||
if(gen.isActive()) {
|
||||
txt = gen.getNumTicksPerMbFuel() + " t/MB";
|
||||
txt = gen.getNumTicksPerMbFuel() + " " + Lang.localize("power.tmb");
|
||||
sw = fr.getStringWidth(txt);
|
||||
fr.drawStringWithShadow(txt, x - sw / 2 + 7, y + fr.FONT_HEIGHT / 2 + 47, ColorUtil.getRGB(Color.WHITE));
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ import crazypants.enderio.machine.AbstractMachineBlock;
|
||||
import crazypants.enderio.network.PacketHandler;
|
||||
import crazypants.util.FluidUtil;
|
||||
import crazypants.util.Util;
|
||||
import crazypants.util.Lang;
|
||||
|
||||
public class BlockZombieGenerator extends AbstractMachineBlock<TileZombieGenerator> {
|
||||
|
||||
@@ -151,7 +152,7 @@ public class BlockZombieGenerator extends AbstractMachineBlock<TileZombieGenerat
|
||||
public void getWailaInfo(List<String> tooltip, EntityPlayer player, World world, int x, int y, int z) {
|
||||
TileEntity te = world.getTileEntity(x, y, z);
|
||||
if(te != null && te instanceof TileZombieGenerator) {
|
||||
tooltip.add(((TileZombieGenerator) te).getFluidStored(ForgeDirection.UNKNOWN) + " mB");
|
||||
tooltip.add(((TileZombieGenerator) te).getFluidStored(ForgeDirection.UNKNOWN) + " " + Lang.localize("fluid.millibucket.abr"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ public class GuiZombieGenerator extends GuiPoweredMachineBase<TileZombieGenerato
|
||||
RenderUtil.renderGuiTank(gen.fuelTank.getFluid(), gen.fuelTank.getCapacity(), gen.fuelTank.getFluidAmount(), x, y, zLevel, 16, 47);
|
||||
|
||||
if(gen.isActive()) {
|
||||
txt = gen.tickPerBucketOfFuel / 1000 + " t/Mb";
|
||||
txt = gen.tickPerBucketOfFuel / 1000 + " " + Lang.localize("power.tmb");
|
||||
sw = fr.getStringWidth(txt);
|
||||
fr.drawStringWithShadow(txt, x - sw / 2 + 7, y + fr.FONT_HEIGHT / 2 + 46, ColorUtil.getRGB(Color.WHITE));
|
||||
}
|
||||
|
||||
@@ -52,7 +52,9 @@ public abstract class GuiMachineBase<T extends AbstractMachineEntity> extends Gu
|
||||
protected GuiMachineBase(T machine, Container par1Container) {
|
||||
super(par1Container);
|
||||
tileEntity = machine;
|
||||
|
||||
|
||||
xSize = getXSize();
|
||||
ySize = getYSize();
|
||||
int x = getXSize() - 5 - BUTTON_SIZE;
|
||||
int y = 5;
|
||||
redstoneButton = new RedstoneModeButton(this, -1, x, y, tileEntity, new BlockCoord(tileEntity));
|
||||
|
||||
@@ -2,6 +2,7 @@ package crazypants.enderio.machine.gui;
|
||||
|
||||
import java.awt.Rectangle;
|
||||
import java.util.List;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import net.minecraft.inventory.Container;
|
||||
|
||||
@@ -37,7 +38,7 @@ public abstract class GuiPoweredMachineBase<T extends AbstractPoweredMachineEnti
|
||||
}
|
||||
|
||||
protected String getPowerOutputLabel() {
|
||||
return "Max: ";
|
||||
return StatCollector.translateToLocal("enderio.gui.max");
|
||||
}
|
||||
|
||||
protected int getPowerOutputValue() {
|
||||
|
||||
@@ -44,8 +44,8 @@ public class TileHyperCube extends TileEntityEio implements IInternalPowerHandle
|
||||
public static enum IoMode {
|
||||
|
||||
SEND("gui.send"),
|
||||
RECIEVE("gui.recieve"),
|
||||
BOTH("gui.sendRecieve"),
|
||||
RECIEVE("gui.receive"),
|
||||
BOTH("gui.sendReceive"),
|
||||
NEITHER("gui.disabled");
|
||||
|
||||
public static IoMode next(IoMode mode) {
|
||||
|
||||
@@ -14,6 +14,7 @@ import crazypants.enderio.machine.gui.GuiPoweredMachineBase;
|
||||
import crazypants.enderio.network.PacketHandler;
|
||||
import crazypants.render.ColorUtil;
|
||||
import crazypants.render.RenderUtil;
|
||||
import crazypants.util.Lang;
|
||||
|
||||
public class GuiPoweredSpawner extends GuiPoweredMachineBase<TilePoweredSpawner> {
|
||||
|
||||
@@ -58,9 +59,9 @@ public class GuiPoweredSpawner extends GuiPoweredMachineBase<TilePoweredSpawner>
|
||||
int left = getGuiLeft();
|
||||
int top = getGuiTop();
|
||||
|
||||
String txt = "Spawn";
|
||||
String txt = Lang.localize("gui.machine.poweredspawner.spawn");
|
||||
if(!spawner.isSpawnMode()) {
|
||||
txt = "Capture";
|
||||
txt = Lang.localize("gui.machine.poweredspawner.capture");
|
||||
}
|
||||
FontRenderer fr = getFontRenderer();
|
||||
int x = left + xSize / 2 - fr.getStringWidth(txt) / 2;
|
||||
|
||||
@@ -136,7 +136,7 @@ public class BlockTransceiver extends AbstractMachineBlock<TileTransceiver> {
|
||||
tooltip.add(EnumChatFormatting.WHITE + Lang.localize("trans." + type.name().toLowerCase()));
|
||||
|
||||
if(!isEmpty(recieve)) {
|
||||
tooltip.add(String.format("%s%s " + Util.TAB + ": %s%s", Util.TAB, Lang.localize("trans.recieving"), Util.TAB + Util.ALIGNRIGHT
|
||||
tooltip.add(String.format("%s%s " + Util.TAB + ": %s%s", Util.TAB, Lang.localize("trans.receiving"), Util.TAB + Util.ALIGNRIGHT
|
||||
+ EnumChatFormatting.WHITE, recieve));
|
||||
}
|
||||
if(!isEmpty(send)) {
|
||||
|
||||
@@ -186,13 +186,13 @@ public class ChannelTab implements ITabPanel {
|
||||
int top = parent.getGuiTop();
|
||||
int x = left + 59;
|
||||
int y = top + 36;
|
||||
parent.drawCenteredString(parent.getFontRenderer(), "Available", x, y, ColorUtil.getRGB(Color.white));
|
||||
parent.drawCenteredString(parent.getFontRenderer(), Lang.localize("gui.available"), x, y, ColorUtil.getRGB(Color.white));
|
||||
|
||||
x = left + 199;
|
||||
parent.drawCenteredString(parent.getFontRenderer(), "Send", x, y, ColorUtil.getRGB(Color.white));
|
||||
parent.drawCenteredString(parent.getFontRenderer(), Lang.localize("gui.send"), x, y, ColorUtil.getRGB(Color.white));
|
||||
|
||||
y += 56;
|
||||
parent.drawCenteredString(parent.getFontRenderer(), "Recieve", x, y, ColorUtil.getRGB(Color.white));
|
||||
parent.drawCenteredString(parent.getFontRenderer(), Lang.localize("gui.receive"), x, y, ColorUtil.getRGB(Color.white));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -19,6 +19,7 @@ import crazypants.enderio.machine.transceiver.TileTransceiver;
|
||||
import crazypants.enderio.network.PacketHandler;
|
||||
import crazypants.render.ColorUtil;
|
||||
import crazypants.render.RenderUtil;
|
||||
import crazypants.util.Lang;
|
||||
|
||||
public class FilterTab implements ITabPanel {
|
||||
|
||||
@@ -98,9 +99,9 @@ public class FilterTab implements ITabPanel {
|
||||
recGui.renderCustomOptions(0, par1, par2, par3);
|
||||
}
|
||||
|
||||
String txt = "Send Filter";
|
||||
String txt = Lang.localize("gui.machine.sendfilter");
|
||||
if(!showSend) {
|
||||
txt = "Receive Filter";
|
||||
txt = Lang.localize("gui.machine.receivefilter");
|
||||
}
|
||||
FontRenderer fr = parent.getFontRenderer();
|
||||
int x = left + container.getFilterOffset().x;
|
||||
|
||||
@@ -20,6 +20,7 @@ import crazypants.enderio.network.PacketHandler;
|
||||
import crazypants.gui.GuiToolTip;
|
||||
import crazypants.render.ColorUtil;
|
||||
import crazypants.render.RenderUtil;
|
||||
import crazypants.util.Lang;
|
||||
|
||||
public class GeneralTab implements ITabPanel {
|
||||
|
||||
@@ -37,8 +38,8 @@ public class GeneralTab implements ITabPanel {
|
||||
int x = parent.getXSize() - 5 - 16;
|
||||
int y = 43;
|
||||
bufferSizeB = new ToggleButtonEIO(parent, 4327, x, y, IconEIO.ITEM_SINGLE, IconEIO.ITEM_STACK);
|
||||
bufferSizeB.setSelectedToolTip("Buffering item stacks");
|
||||
bufferSizeB.setUnselectedToolTip("Buffering single items");
|
||||
bufferSizeB.setSelectedToolTip(Lang.localize("gui.machine.bufferingstacks"));
|
||||
bufferSizeB.setUnselectedToolTip(Lang.localize("gui.machine.bufferingsingle"));
|
||||
bufferSizeB.setSelected(parent.getTransciever().isBufferStacks());
|
||||
|
||||
sendPowerBarTT = new GuiToolTip(new Rectangle(parent.getPowerX() + SEND_BAR_OFFSET, parent.getPowerY(), parent.getPowerWidth(), parent.getPowerHeight()), "") {
|
||||
@@ -89,11 +90,11 @@ public class GeneralTab implements ITabPanel {
|
||||
parent.drawTexturedModalRect(left + invRoot.x - 1 + (18 * 4) + container.getItemBufferSpacing(), top + invRoot.y - 1, 24, 180, 72, 36);
|
||||
|
||||
FontRenderer fr = parent.getFontRenderer();
|
||||
String sendTxt = "Send";
|
||||
String sendTxt = Lang.localize("gui.send");
|
||||
int x = left + invRoot.x + 36 - fr.getStringWidth(sendTxt)/2;
|
||||
int y = top + invRoot.y - fr.FONT_HEIGHT - 3;
|
||||
fr.drawStringWithShadow(sendTxt, x, y, ColorUtil.getRGB(Color.WHITE));
|
||||
String recText = "Receive";
|
||||
String recText = Lang.localize("gui.receive");
|
||||
x = left + invRoot.x + 72 + container.getItemBufferSpacing() + 36 - fr.getStringWidth(recText)/2;
|
||||
fr.drawStringWithShadow(recText, x, y, ColorUtil.getRGB(Color.WHITE));
|
||||
|
||||
@@ -125,16 +126,16 @@ public class GeneralTab implements ITabPanel {
|
||||
}
|
||||
|
||||
public void updatePowerBarTooltip(List<String> text) {
|
||||
text.add("Local Buffer");
|
||||
text.add("Upkeep: " + PowerDisplayUtil.formatPowerPerTick(parent.getPowerOutputValue()));
|
||||
text.add(Lang.localize("gui.machine.localbuffer"));
|
||||
text.add(Lang.localize("gui.machine.upkeep") + " " + PowerDisplayUtil.formatPowerPerTick(parent.getPowerOutputValue()));
|
||||
int maxEnergy = parent.getTransciever().getCapacitor().getMaxEnergyStored()/2;
|
||||
int energyStored = Math.min(parent.getTransciever().getEnergyStored(), maxEnergy);
|
||||
text.add(PowerDisplayUtil.formatStoredPower(energyStored, maxEnergy));
|
||||
}
|
||||
|
||||
private void updateSendPowerBarTooltip(List<String> text) {
|
||||
text.add("Send/Recieve Buffer");
|
||||
text.add("Max IO: " + PowerDisplayUtil.formatPowerPerTick(Config.transceiverMaxIoRF));
|
||||
text.add(Lang.localize("gui.machine.sendReceivebuffer"));
|
||||
text.add(Lang.localize("itemGasConduit.tooltip.maxIo") + " " + PowerDisplayUtil.formatPowerPerTick(Config.transceiverMaxIoRF));
|
||||
int maxEnergy = parent.getTransciever().getCapacitor().getMaxEnergyStored()/2;
|
||||
int energyStored = Math.max(0, parent.getTransciever().getEnergyStored() - maxEnergy);
|
||||
text.add(PowerDisplayUtil.formatStoredPower(energyStored, maxEnergy));
|
||||
|
||||
@@ -15,6 +15,7 @@ import crazypants.enderio.xp.ExperienceBarRenderer;
|
||||
import crazypants.enderio.xp.PacketDrainPlayerXP;
|
||||
import crazypants.enderio.xp.PacketGivePlayerXP;
|
||||
import crazypants.render.RenderUtil;
|
||||
import crazypants.util.Lang;
|
||||
|
||||
public class GuiExperianceObelisk extends GuiMachineBase<TileExperienceOblisk> {
|
||||
|
||||
@@ -42,38 +43,38 @@ public class GuiExperianceObelisk extends GuiMachineBase<TileExperienceOblisk> {
|
||||
p = new IconButtonEIO(this, 800, x, y, IconEIO.SINGLE_PLUS);
|
||||
p.setSize(bw, bw);
|
||||
p.setIconMargin(2, 2);
|
||||
p.setToolTip("Store 1", "level of player XP");
|
||||
p.setToolTip(Lang.localize("gui.machine.button.storelevel"), Lang.localize("gui.machine.tooltip.storelevel"));
|
||||
|
||||
x += spacing + bw;
|
||||
pp = new IconButtonEIO(this, 801, x, y, IconEIO.DOUBLE_PLUS);
|
||||
pp.setSize(bw, bw);
|
||||
pp.setIconMargin(2, 2);
|
||||
pp.setToolTip("Store 10", "levels of player XP");
|
||||
pp.setToolTip(Lang.localize("gui.machine.button.storelevels"), Lang.localize("gui.machine.tooltip.storelevels"));
|
||||
|
||||
x += spacing + bw;
|
||||
ppp = new IconButtonEIO(this, 802, x, y, IconEIO.TRIPLE_PLUS);
|
||||
ppp.setSize(bw, bw);
|
||||
ppp.setIconMargin(2, 2);
|
||||
ppp.setToolTip("Store all", "player XP");
|
||||
ppp.setToolTip(Lang.localize("gui.machine.button.storeall"), Lang.localize("gui.machine.tooltip.storeall"));
|
||||
|
||||
x = startX;
|
||||
y = 75;
|
||||
m = new IconButtonEIO(this, 803, x, y, IconEIO.SINGLE_MINUS);
|
||||
m.setSize(bw, bw);
|
||||
m.setIconMargin(2, 2);
|
||||
m.setToolTip("Retrieve 1", "player XP level");
|
||||
m.setToolTip(Lang.localize("gui.machine.button.retrievelevel"), Lang.localize("gui.machine.tooltip.retrievelevel"));
|
||||
|
||||
x += spacing + bw;
|
||||
mm = new IconButtonEIO(this, 804, x, y, IconEIO.DOUBLE_MINUS);
|
||||
mm.setSize(bw, bw);
|
||||
mm.setIconMargin(2, 2);
|
||||
mm.setToolTip("Retrieve 10", "player XP levels");
|
||||
mm.setToolTip(Lang.localize("gui.machine.button.retrievelevels"), Lang.localize("gui.machine.tooltip.retrievelevels"));
|
||||
|
||||
x += spacing + bw;
|
||||
mmm = new IconButtonEIO(this, 805, x, y, IconEIO.TRIPLE_MINUS);
|
||||
mmm.setSize(bw, bw);
|
||||
mmm.setIconMargin(2, 2);
|
||||
mmm.setToolTip("Retrieve all");
|
||||
mmm.setToolTip(Lang.localize("gui.machine.button.retrieveall"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user