Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Oct 22, 2014
2 parents d2681d1 + 80808e6 commit f1d0481
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 18 deletions.
7 changes: 7 additions & 0 deletions resources/assets/tinker/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,13 @@ smeltery.brick.tooltip2=(Safe for decoration)
#Dear translators, only translate this line if the joke is applicable in your language.
grout.tooltip=I am Grout!

tconstruct.waila.empty=Empty
tconstruct.waila.liquidtag=Liquid:
tconstruct.waila.amounttag=Amount:
tconstruct.waila.contains=Contains:
tconstruct.waila.subtanks=Subtanks:
tconstruct.waila.invalidstructure=Invalid structure

gui.smeltery.fuel=Fuel
gui.smeltery.emerald=Emeralds:
gui.smeltery.glass.block=Blocks:
Expand Down
12 changes: 7 additions & 5 deletions resources/assets/tinker/lang/it_IT.lang
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,13 @@ smeltery.brick.tooltip2=(Usabile anche come decorazione)
#Dear translators, only translate this line if the joke is applicable in your language.
grout.tooltip=I am Grout!

tconstruct.waila.empty=Vuoto
tconstruct.waila.liquidtag=Liquido:
tconstruct.waila.amounttag=Quantità:
tconstruct.waila.contains=Contiene:
tconstruct.waila.subtanks=Sottocisterne:
tconstruct.waila.invalidstructure=Struttura invalida

gui.smeltery.fuel=Carburante
gui.smeltery.emerald=Smeraldi:
gui.smeltery.glass.block=Blocchi:
Expand Down Expand Up @@ -815,11 +822,6 @@ gui.modifier.necro=Necrotico
gui.modifier.spider=Anti ragno
gui.modifier.quartz=Quarzo

tconstruct.waila.empty=Vuoto
tconstruct.waila.liquidtag=Liquido:
tconstruct.waila.amounttag=Quantità:
tconstruct.waila.invalidstructure=Struttura invalida

modifier.armour.jump.double=Salto doppio
modifier.armour.jump.triple=Salto triplo
modifier.armour.jump.quad=Salto quadruplo
Expand Down
9 changes: 5 additions & 4 deletions src/main/java/tconstruct/plugins/waila/BasinDataProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.List;
import mcp.mobius.waila.api.*;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import net.minecraftforge.fluids.FluidStack;
import tconstruct.smeltery.logic.CastingBasinLogic;

Expand Down Expand Up @@ -34,18 +35,18 @@ public List<String> getWailaBody (ItemStack itemStack, List<String> currenttip,
if (te.getFluidAmount() != 0)
{
FluidStack fs = te.getFluid();
currenttip.add("Liquid: " + WailaRegistrar.fluidNameHelper(fs));
currenttip.add("Amount: " + fs.amount + "/" + te.getCapacity());
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.liquidtag") + WailaRegistrar.fluidNameHelper(fs));
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.amounttag") + fs.amount + "/" + te.getCapacity());
}
else
{
if (te.getStackInSlot(0) != null)
{
currenttip.add("Contains: " + te.getStackInSlot(0).getDisplayName());
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.contains") + te.getStackInSlot(0).getDisplayName());
}
else
{
currenttip.add(SpecialChars.ITALIC + "Empty");
currenttip.add(SpecialChars.ITALIC + StatCollector.translateToLocal("tconstruct.waila.empty"));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public List<String> getWailaBody (ItemStack itemStack, List<String> currenttip,

currenttip.add(StatCollector.translateToLocal("tconstruct.waila.subtanks"));
String s1, s2, s3, s4;
s1 = s2 = s3 = s4 = SpecialChars.ITALIC + StatCollector.translateToLocal("tconstruct.waila.empty");
s1 = s2 = s3 = s4 = StatCollector.translateToLocal("tconstruct.waila.empty");

if (northTank.fluid != null)
s1 = northTank.fluid.amount + " / " + northTank.capacity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.List;
import mcp.mobius.waila.api.*;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import net.minecraftforge.fluids.FluidStack;
import tconstruct.smeltery.logic.LavaTankLogic;

Expand Down Expand Up @@ -30,12 +31,12 @@ public List<String> getWailaBody (ItemStack itemStack, List<String> currenttip,
if (te.containsFluid())
{
FluidStack fs = te.tank.getFluid();
currenttip.add("Liquid: " + WailaRegistrar.fluidNameHelper(fs));
currenttip.add("Amount: " + fs.amount + "/" + te.tank.getCapacity());
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.liquidtag") + WailaRegistrar.fluidNameHelper(fs));
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.amounttag") + fs.amount + "/" + te.tank.getCapacity());
}
else
{
currenttip.add(SpecialChars.ITALIC + "Empty");
currenttip.add(SpecialChars.ITALIC + StatCollector.translateToLocal("tconstruct.waila.empty"));
}
}
return currenttip;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.List;
import mcp.mobius.waila.api.*;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import net.minecraftforge.fluids.FluidStack;
import tconstruct.smeltery.logic.SmelteryLogic;

Expand Down Expand Up @@ -32,7 +33,7 @@ public List<String> getWailaBody (ItemStack itemStack, List<String> currenttip,
List<FluidStack> fls = te.moltenMetal;
if (fls.size() <= 0)
{
currenttip.add(SpecialChars.ITALIC + "Empty");
currenttip.add(SpecialChars.ITALIC + StatCollector.translateToLocal("tconstruct.waila.empty"));
}
else
{
Expand All @@ -45,7 +46,7 @@ public List<String> getWailaBody (ItemStack itemStack, List<String> currenttip,
}
else
{
currenttip.add(SpecialChars.ITALIC + "Invalid structure");
currenttip.add(SpecialChars.ITALIC + StatCollector.translateToLocal("tconstruct.waila.invalidstructure"));
}
}

Expand Down
7 changes: 4 additions & 3 deletions src/main/java/tconstruct/plugins/waila/TableDataProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.List;
import mcp.mobius.waila.api.*;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import tconstruct.smeltery.logic.CastingTableLogic;

public class TableDataProvider implements IWailaDataProvider
Expand Down Expand Up @@ -33,12 +34,12 @@ public List<String> getWailaBody (ItemStack itemStack, List<String> currenttip,
CastingTableLogic te = (CastingTableLogic) accessor.getTileEntity();
if (te.getStackInSlot(1) != null)
{
currenttip.add("Contains: " + te.getStackInSlot(1).getDisplayName());
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.contains") + te.getStackInSlot(1).getDisplayName());
}
if (te.getFluid() != null)
{
currenttip.add("Fluid: " + WailaRegistrar.fluidNameHelper(te.getFluid()));
currenttip.add("Amount: " + te.getFluidAmount() + "/" + te.getCapacity());
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.liquidtag") + WailaRegistrar.fluidNameHelper(te.getFluid()));
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.amounttag") + te.getFluidAmount() + "/" + te.getCapacity());
}
}
return currenttip;
Expand Down

0 comments on commit f1d0481

Please sign in to comment.