mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-24 22:14:44 +00:00
Added missed localization
This commit is contained in:
1 parent
73edb413f5
commit
0b9b0c0068
16 files changed
+229
-78
No files matched your search
@@ -6,6 +6,7 @@ import binnie.core.craftgui.geometry.IArea;
|
||||
import binnie.core.craftgui.geometry.IPoint;
|
||||
import binnie.core.craftgui.minecraft.control.ControlIconDisplay;
|
||||
import binnie.core.craftgui.minecraft.control.ControlItemDisplay;
|
||||
import binnie.core.util.I18N;
|
||||
import binnie.core.util.UniqueItemStackSet;
|
||||
import binnie.extratrees.FakeWorld;
|
||||
import binnie.genetics.item.ModuleItem;
|
||||
@@ -22,15 +23,19 @@ import java.util.Collection;
|
||||
public class AnalystPageWood extends AnalystPageProduce {
|
||||
public AnalystPageWood(IWidget parent, IArea area, ITree ind) {
|
||||
super(parent, area);
|
||||
setColor(6697728);
|
||||
setColor(0x663300);
|
||||
ITreeGenome genome = ind.getGenome();
|
||||
int y = 4;
|
||||
new ControlTextCentered(this, y, EnumChatFormatting.UNDERLINE + "Wood").setColor(getColor());
|
||||
new ControlTextCentered(this, y, EnumChatFormatting.UNDERLINE + getTitle())
|
||||
.setColor(getColor());
|
||||
y += 12;
|
||||
|
||||
if (((IAlleleBoolean) ind.getGenome().getActiveAllele(EnumTreeChromosome.FIREPROOF)).getValue()) {
|
||||
new ControlIconDisplay(this, (w() - 16.0f) / 2.0f, y, ModuleItem.iconNoFire.getIcon()).addTooltip("Fireproof");
|
||||
new ControlIconDisplay(this, (w() - 16.0f) / 2.0f, y, ModuleItem.iconNoFire.getIcon())
|
||||
.addTooltip(I18N.localise("genetics.gui.analyst.wood.fireproof"));
|
||||
} else {
|
||||
new ControlIconDisplay(this, (w() - 16.0f) / 2.0f, y, ModuleItem.iconFire.getIcon()).addTooltip("Flammable");
|
||||
new ControlIconDisplay(this, (w() - 16.0f) / 2.0f, y, ModuleItem.iconFire.getIcon())
|
||||
.addTooltip(I18N.localise("genetics.gui.analyst.wood.flammable"));
|
||||
}
|
||||
y += 30;
|
||||
Collection<ItemStack> products = new UniqueItemStackSet();
|
||||
@@ -40,12 +45,15 @@ public class AnalystPageWood extends AnalystPageProduce {
|
||||
if (stackWood != null) {
|
||||
products.add(stackWood);
|
||||
}
|
||||
|
||||
// for (ItemStack stack :
|
||||
// ind.getGenome().getFruitProvider().getProducts()) {
|
||||
// products.add(stack);
|
||||
// }
|
||||
|
||||
if (products.size() > 0) {
|
||||
new ControlTextCentered(this, y, "Logs").setColor(getColor());
|
||||
new ControlTextCentered(this, y, I18N.localise("genetics.gui.analyst.wood.logs"))
|
||||
.setColor(getColor());
|
||||
y += 10;
|
||||
int w = products.size() * 18 - 2;
|
||||
int i = 0;
|
||||
@@ -56,18 +64,22 @@ public class AnalystPageWood extends AnalystPageProduce {
|
||||
}
|
||||
y += 26;
|
||||
}
|
||||
|
||||
Collection<ItemStack> allProducts = new UniqueItemStackSet();
|
||||
for (ItemStack stack2 : products) {
|
||||
allProducts.add(stack2);
|
||||
}
|
||||
|
||||
Collection<ItemStack> refinedProducts = new UniqueItemStackSet();
|
||||
refinedProducts.addAll(getAllProductsAndFluids(allProducts));
|
||||
if (refinedProducts.size() > 0) {
|
||||
y = getRefined("Refined Products", y, refinedProducts);
|
||||
y = getRefined(I18N.localise("genetics.gui.analyst.wood.products"), y, refinedProducts);
|
||||
y += 8;
|
||||
}
|
||||
|
||||
if (products.size() == 0) {
|
||||
new ControlTextCentered(this, y, "This tree has no \nfruits or nuts").setColor(getColor());
|
||||
new ControlTextCentered(this, y, I18N.localise("genetics.gui.analyst.wood.noFruits"))
|
||||
.setColor(getColor());
|
||||
y += 28;
|
||||
}
|
||||
setSize(new IPoint(w(), y + 8));
|
||||
@@ -75,6 +87,6 @@ public class AnalystPageWood extends AnalystPageProduce {
|
||||
|
||||
@Override
|
||||
public String getTitle() {
|
||||
return "Wood";
|
||||
return I18N.localise("genetics.gui.analyst.wood");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user