touchups: requester/zone planner recipes, tooltip/GUI improvements, adding missing langnames

This commit is contained in:
asiekierka 2014-11-02 08:06:36 +01:00
parent 388871fed4
commit f17f0cc9d7
6 changed files with 50 additions and 10 deletions

View file

@ -276,6 +276,7 @@ tile.pathMarkerBlock.name=Path Mark
tile.plainPipeBlock.name=Mining Pipe
tile.pumpBlock.name=Pump
tile.refineryBlock.name=Refinery
tile.requester.name=Requester
tile.spring.oil.name=Oil Spring
tile.spring.water.name=Water Spring
tile.tankBlock.name=Tank
@ -326,6 +327,9 @@ tip.PipePowerEmerald=Power Input Pipe
tip.PipePowerIron=Selectable Limiter Pipe
tip.PipeStructureCobblestone=Support pipe
tip.tool.add=Add
til.tool.remove=Remove
achievement.woodenGearAchievement=A bit rough around the edges
achievement.woodenGearAchievement.desc=Craft a wooden gear
achievement.stoneGearAchievement=Hard as a rock

View file

@ -246,6 +246,27 @@ public class BuildCraftSilicon extends BuildCraftMod {
'C', new ItemStack(redstoneChipset, 1, 0),
'G', BuildCraftCore.diamondGearItem);
// COMMANDER BLOCKS
CoreProxy.proxy.addCraftingRecipe(new ItemStack(zonePlanBlock, 1, 0),
"IRI",
"GMG",
"IDI",
'M', Items.map,
'R', Items.redstone,
'G', BuildCraftCore.goldGearItem,
'D', BuildCraftCore.diamondGearItem,
'I', Items.iron_ingot);
CoreProxy.proxy.addCraftingRecipe(new ItemStack(requesterBlock, 1, 0),
"IPI",
"GCG",
"IRI",
'C', Blocks.chest,
'R', Items.redstone,
'P', Blocks.piston,
'G', BuildCraftCore.ironGearItem,
'I', Items.iron_ingot);
// CHIPSETS
BuildcraftRecipeRegistry.assemblyTable.addRecipe("buildcraft:redstoneChipset", 100000, Chipset.RED.getStack(),
Items.redstone);

View file

@ -65,9 +65,10 @@ public class GuiArchitect extends GuiBuildCraft {
buttonList.add(optionExcavate);
optionAllowCreative = new GuiBetterButton(2, guiLeft + 5, guiTop + 80, 79, "");
optionAllowCreative.setToolTip(new ToolTip(500));
optionAllowCreative.getToolTip().add(new ToolTipLine(StringUtils.localize("tile.architect.tooltip.allowCreative.1")));
optionAllowCreative.getToolTip().add(new ToolTipLine(StringUtils.localize("tile.architect.tooltip.allowCreative.2")));
optionAllowCreative.setToolTip(new ToolTip(500,
new ToolTipLine(StringUtils.localize("tile.architect.tooltip.allowCreative.1")),
new ToolTipLine(StringUtils.localize("tile.architect.tooltip.allowCreative.2"))
));
buttonList.add(optionAllowCreative);
textField = new GuiTextField(this.fontRendererObj, TEXT_X, TEXT_Y, TEXT_WIDTH, TEXT_HEIGHT);

View file

@ -63,8 +63,8 @@ public class GuiRequester extends GuiAdvancedInterface {
getContainer().gui = this;
getContainer().getRequestList();
xSize = 256;
ySize = 220;
xSize = 196;
ySize = 181;
requester = iRequester;
playerInventory = iPlayerInventory;

View file

@ -17,14 +17,17 @@ import net.minecraft.client.gui.GuiButton;
import net.minecraft.inventory.IInventory;
import net.minecraft.util.IIcon;
import net.minecraft.util.ResourceLocation;
import buildcraft.api.core.EnumColor;
import buildcraft.core.BCDynamicTexture;
import buildcraft.core.DefaultProps;
import buildcraft.core.ZonePlan;
import buildcraft.core.gui.AdvancedSlot;
import buildcraft.core.gui.GuiAdvancedInterface;
import buildcraft.core.gui.buttons.GuiBetterButton;
import buildcraft.core.gui.tooltips.ToolTip;
import buildcraft.core.gui.tooltips.ToolTipLine;
import buildcraft.core.network.RPCHandler;
import buildcraft.core.utils.StringUtils;
public class GuiZonePlan extends GuiAdvancedInterface {
@ -57,7 +60,7 @@ public class GuiZonePlan extends GuiAdvancedInterface {
private float alpha = 0.8F;
private GuiButton tool;
private GuiBetterButton tool;
private List inventorySlots;
private List savedButtonList;
@ -130,7 +133,8 @@ public class GuiZonePlan extends GuiAdvancedInterface {
public void initGui() {
super.initGui();
tool = new GuiButton(0, guiLeft + 5, guiTop + 20, 20, 20, "+");
tool = new GuiBetterButton(0, guiLeft + 5, guiTop + 20, 20, "+");
tool.setToolTip(new ToolTip(500, new ToolTipLine(StringUtils.localize("tip.tool.add"))));
buttonList.add(tool);
savedButtonList = buttonList;
@ -372,8 +376,12 @@ public class GuiZonePlan extends GuiAdvancedInterface {
if (button == tool) {
if (tool.displayString.equals("+")) {
tool.displayString = "-";
tool.getToolTip().remove(0);
tool.getToolTip().add(new ToolTipLine(StringUtils.localize("tip.tool.remove")));
} else {
tool.displayString = "+";
tool.getToolTip().remove(0);
tool.getToolTip().add(new ToolTipLine(StringUtils.localize("tip.tool.add")));
}
}
}

View file

@ -19,12 +19,18 @@ public class ToolTip extends ForwardingList<ToolTipLine> {
private final long delay;
private long mouseOverStart;
public ToolTip() {
public ToolTip(ToolTipLine... lines) {
this.delay = 0;
for (ToolTipLine line: lines) {
delegate.add(line);
}
}
public ToolTip(int delay) {
public ToolTip(int delay, ToolTipLine... lines) {
this.delay = delay;
for (ToolTipLine line: lines) {
delegate.add(line);
}
}
@Override