Rename color and flower enum entities to UPPER_CASE
Refactoring FlowerSpecies
Added some localization
This commit is contained in:
kordum committed 2017-05-10 12:53:10 +03:00
1 parent 542dbb15b0
commit 263a4f3bfc
16 files changed
+3402 -3302

No files matched your search

@@ -19,6 +19,7 @@ import binnie.core.craftgui.geometry.IPoint;
import binnie.core.craftgui.geometry.TextJustification;
import binnie.core.craftgui.minecraft.control.ControlItemDisplay;
import binnie.core.util.I18N;
import forestry.api.genetics.AlleleManager;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IAlleleSpecies;
import forestry.api.genetics.IIndividual;
@@ -58,8 +59,7 @@ public class PageSpeciesFlowerGenome extends PageSpecies {
int th = 14;
int valueX = w2 + 4;
new ControlText(contents, new IArea(0.0f, y, w2, th), I18N.localise(Botany.instance, "gui.database.tab.genome.temp"), TextJustification.MiddleRight);
// TODO localized temperature
new ControlText(contents, new IArea(valueX, y, w3, th), treeSpecies.getTemperature().getName(), TextJustification.MiddleLeft);
new ControlText(contents, new IArea(valueX, y, w3, th), AlleleManager.climateHelper.toDisplay(treeSpecies.getTemperature()), TextJustification.MiddleLeft);
y += th;
new ControlText(contents, new IArea(0.0f, y, w2, th), I18N.localise(Botany.instance, "gui.database.tab.genome.moist"), TextJustification.MiddleRight);