From ab58f76d6b24a33e171a4978a0b0f8f2ce5447f7 Mon Sep 17 00:00:00 2001 From: "Aidan C. Brady" Date: Wed, 15 Jan 2014 07:45:55 -0500 Subject: [PATCH] Tooltips! --- common/mekanism/common/multipart/ItemPartTransmitter.java | 6 ++++++ resources/assets/mekanism/lang/en_US.lang | 2 ++ 2 files changed, 8 insertions(+) diff --git a/common/mekanism/common/multipart/ItemPartTransmitter.java b/common/mekanism/common/multipart/ItemPartTransmitter.java index 55569d9fa..85ec84607 100644 --- a/common/mekanism/common/multipart/ItemPartTransmitter.java +++ b/common/mekanism/common/multipart/ItemPartTransmitter.java @@ -9,6 +9,7 @@ import mekanism.api.transmitters.IGridTransmitter; import mekanism.api.transmitters.ITransmitterNetwork; import mekanism.api.transmitters.TransmissionType; import mekanism.common.Mekanism; +import mekanism.common.multipart.PartUniversalCable.CableTier; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; @@ -84,6 +85,11 @@ public class ItemPartTransmitter extends JItemMultiPart { if(!Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { + if(itemstack.getItemDamage() < CableTier.values().length) + { + list.add(EnumColor.INDIGO + "Capacity: " + EnumColor.GREY + CableTier.values()[itemstack.getItemDamage()].cableCapacity + "J/t"); + } + list.add("Hold " + EnumColor.AQUA + "shift" + EnumColor.GREY + " for details."); } else { diff --git a/resources/assets/mekanism/lang/en_US.lang b/resources/assets/mekanism/lang/en_US.lang index e5eecf0b3..190bf09c7 100644 --- a/resources/assets/mekanism/lang/en_US.lang +++ b/resources/assets/mekanism/lang/en_US.lang @@ -323,6 +323,8 @@ tooltip.Chargepad=A universal chargepad that can charge any energized item !nfro tooltip.LogisticalSorter=A filter-based, advanced sorting machine that !ncan auto-eject specified items out of and into !nadjacent inventories and Logistical Transporters. tooltip.RotaryCondensentrator=A machine capable of converting gasses into !ntheir fluid form and vice versa. tooltip.ChemicalInjectionChamber=An elite machine capable of processing !nores into four shards, serving as the initial !nstage of 400% ore processing. +tooltip.ElectrolyticSeparator=A machine that uses the process of electrolysis to split apart a certain gas into two different gasses. +tooltip.PrecisionSawmill=A machine used to process logs and other wood-based items more efficiently, as well as to obtain sawdust. tooltip.OsmiumOre=A strong mineral that can be found !nat nearly any height in the world. !nIt is known to have many uses in !nthe construction of machinery. tooltip.CopperOre=A common, conductive material that !ncan be used in the production of !nwires. It's ability to withstand !nhigh heats also makes it essential !nto advanced machinery.