mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 22:14:42 +00:00
Merge pull request #2616 from MatthiasMann/more_format_fixes
a few more formatting fixes
This commit is contained in:
commit
ce4fc12b85
6 files changed
+8
-9
No files matched your search
@@ -63,7 +63,7 @@ public class ClearFilterRecipe implements IRecipe{
|
||||
@SubscribeEvent
|
||||
public void onTooltip(ItemTooltipEvent event) {
|
||||
if (this.output != null && ItemStack.areItemStacksEqual(output, event.itemStack)) {
|
||||
event.toolTip.add(EnumChatFormatting.RED.toString() + EnumChatFormatting.ITALIC + EnderIO.lang.localize("itemConduitFilterUpgrade.clearConfigWarning", true));
|
||||
event.toolTip.add(EnumChatFormatting.RED.toString() + EnumChatFormatting.ITALIC + EnderIO.lang.localize("itemConduitFilterUpgrade.clearConfigWarning"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import static crazypants.enderio.config.Config.config;
|
||||
public class GuiConfigFactoryEIO extends GuiConfig {
|
||||
|
||||
public GuiConfigFactoryEIO(GuiScreen parentScreen) {
|
||||
super(parentScreen, getConfigElements(parentScreen), EnderIO.MODID, false, false, EnderIO.lang.localize("config.title", true));
|
||||
super(parentScreen, getConfigElements(parentScreen), EnderIO.MODID, false, false, EnderIO.lang.localize("config.title"));
|
||||
}
|
||||
|
||||
private static List<IConfigElement> getConfigElements(GuiScreen parent) {
|
||||
|
||||
@@ -73,13 +73,13 @@ public abstract class AbstractUpgrade implements IDarkSteelUpgrade {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addBasicEntries(ItemStack itemstack, EntityPlayer entityplayer, List list, boolean flag) {
|
||||
list.add(EnumChatFormatting.DARK_AQUA + EnderIO.lang.localize(getUnlocalizedName() + ".name", false));
|
||||
list.add(EnumChatFormatting.DARK_AQUA + EnderIO.lang.localizeExact(getUnlocalizedName() + ".name"));
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addDetailedEntries(ItemStack itemstack, EntityPlayer entityplayer, List list, boolean flag) {
|
||||
list.add(EnumChatFormatting.DARK_AQUA + EnderIO.lang.localize(getUnlocalizedName() + ".name", false));
|
||||
list.add(EnumChatFormatting.DARK_AQUA + EnderIO.lang.localizeExact(getUnlocalizedName() + ".name"));
|
||||
SpecialTooltipHandler.addDetailedTooltipFromResources(list, getUnlocalizedName());
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
|
||||
import com.enderio.core.client.handlers.SpecialTooltipHandler;
|
||||
import com.enderio.core.common.Lang;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -204,7 +203,7 @@ public class EnergyUpgrade extends AbstractUpgrade {
|
||||
public void addDetailedEntries(ItemStack itemstack, EntityPlayer entityplayer, List list, boolean flag) {
|
||||
|
||||
List<String> upgradeStr = new ArrayList<String>();
|
||||
upgradeStr.add(EnumChatFormatting.DARK_AQUA + EnderIO.lang.localize(getUnlocalizedName() + ".name", false));
|
||||
upgradeStr.add(EnumChatFormatting.DARK_AQUA + EnderIO.lang.localizeExact(getUnlocalizedName() + ".name"));
|
||||
SpecialTooltipHandler.addDetailedTooltipFromResources(upgradeStr, getUnlocalizedName());
|
||||
|
||||
String percDamage = (int)Math.round(getAbsorptionRatio(itemstack) * 100) + "";
|
||||
|
||||
@@ -65,7 +65,7 @@ public class ClearConfigRecipe implements IRecipe {
|
||||
@SubscribeEvent
|
||||
public void onTooltip(ItemTooltipEvent event) {
|
||||
if (output != null && ItemStack.areItemStacksEqual(output, event.itemStack)) {
|
||||
event.toolTip.add(EnumChatFormatting.RED.toString() + EnumChatFormatting.ITALIC + EnderIO.lang.localize("machine.tooltip.clearConfig", true));
|
||||
event.toolTip.add(EnumChatFormatting.RED.toString() + EnumChatFormatting.ITALIC + EnderIO.lang.localize("machine.tooltip.clearConfig"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user