mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-25 14:34:33 +00:00
start 1.10.2
This commit is contained in:
1 parent
f969f63b66
commit
6a7c4bf67d
826 files changed
+60550
-63758
No files matched your search
@@ -1,52 +1,46 @@
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
|
||||
package binnie.genetics.gui;
|
||||
|
||||
import forestry.api.genetics.IAlleleSpecies;
|
||||
import forestry.api.genetics.IChromosomeType;
|
||||
import forestry.api.arboriculture.EnumTreeChromosome;
|
||||
import binnie.Binnie;
|
||||
import forestry.api.arboriculture.ITree;
|
||||
import binnie.craftgui.controls.ControlTextCentered;
|
||||
import forestry.api.genetics.IIndividual;
|
||||
import binnie.craftgui.core.geometry.IArea;
|
||||
import binnie.craftgui.core.IWidget;
|
||||
import binnie.craftgui.core.geometry.IArea;
|
||||
import forestry.api.arboriculture.EnumTreeChromosome;
|
||||
import forestry.api.arboriculture.ITree;
|
||||
import forestry.api.genetics.IAlleleSpecies;
|
||||
import forestry.api.genetics.IIndividual;
|
||||
|
||||
public class AnalystPageGrowth extends ControlAnalystPage
|
||||
{
|
||||
public AnalystPageGrowth(final IWidget parent, final IArea area, final IIndividual ind) {
|
||||
super(parent, area);
|
||||
this.setColour(3355443);
|
||||
int y = 4;
|
||||
final IAlleleSpecies species = ind.getGenome().getPrimary();
|
||||
new ControlTextCentered(this, y, "§nGrowth").setColour(this.getColour());
|
||||
y += 12;
|
||||
if (ind instanceof ITree) {
|
||||
final ITree tree = (ITree) ind;
|
||||
final int mat = tree.getGenome().getMaturationTime();
|
||||
new ControlTextCentered(this, y, "Saplings mature in").setColour(this.getColour());
|
||||
y += 12;
|
||||
new ControlTextCentered(this, y, "§l" + this.getTimeString(1373.3999f * mat)).setColour(this.getColour());
|
||||
y += 22;
|
||||
new ControlTextCentered(this, y, "§oHeight: " + Binnie.Genetics.treeBreedingSystem.getAlleleName(EnumTreeChromosome.HEIGHT, ind.getGenome().getActiveAllele(EnumTreeChromosome.HEIGHT))).setColour(this.getColour());
|
||||
y += 12;
|
||||
new ControlTextCentered(this, y, "§oGirth: " + Binnie.Genetics.treeBreedingSystem.getAlleleName(EnumTreeChromosome.GIRTH, ind.getGenome().getActiveAllele(EnumTreeChromosome.GIRTH))).setColour(this.getColour());
|
||||
y += 20;
|
||||
new ControlTextCentered(this, y, "Growth Conditions").setColour(this.getColour());
|
||||
y += 12;
|
||||
new ControlTextCentered(this, y, "§o" + tree.getGenome().getGrowthProvider().getDescription()).setColour(this.getColour());
|
||||
y += 12;
|
||||
for (final String s : tree.getGenome().getGrowthProvider().getInfo()) {
|
||||
new ControlTextCentered(this, y, "§o" + s).setColour(this.getColour());
|
||||
y += 12;
|
||||
}
|
||||
}
|
||||
}
|
||||
public class AnalystPageGrowth extends ControlAnalystPage {
|
||||
public AnalystPageGrowth(final IWidget parent, final IArea area, final IIndividual ind) {
|
||||
super(parent, area);
|
||||
this.setColour(3355443);
|
||||
int y = 4;
|
||||
final IAlleleSpecies species = ind.getGenome().getPrimary();
|
||||
new ControlTextCentered(this, y, "§nGrowth").setColour(this.getColour());
|
||||
y += 12;
|
||||
if (ind instanceof ITree) {
|
||||
final ITree tree = (ITree) ind;
|
||||
final int mat = tree.getGenome().getMaturationTime();
|
||||
new ControlTextCentered(this, y, "Saplings mature in").setColour(this.getColour());
|
||||
y += 12;
|
||||
new ControlTextCentered(this, y, "§l" + this.getTimeString(1373.3999f * mat)).setColour(this.getColour());
|
||||
y += 22;
|
||||
new ControlTextCentered(this, y, "§oHeight: " + Binnie.Genetics.treeBreedingSystem.getAlleleName(EnumTreeChromosome.HEIGHT, ind.getGenome().getActiveAllele(EnumTreeChromosome.HEIGHT))).setColour(this.getColour());
|
||||
y += 12;
|
||||
new ControlTextCentered(this, y, "§oGirth: " + Binnie.Genetics.treeBreedingSystem.getAlleleName(EnumTreeChromosome.GIRTH, ind.getGenome().getActiveAllele(EnumTreeChromosome.GIRTH))).setColour(this.getColour());
|
||||
y += 20;
|
||||
new ControlTextCentered(this, y, "Growth Conditions").setColour(this.getColour());
|
||||
y += 12;
|
||||
//new ControlTextCentered(this, y, "§o" + tree.getGenome().getGrowthProvider().getDescription()).setColour(this.getColour());
|
||||
y += 12;
|
||||
// for (final String s : tree.getGenome().getGrowthProvider().getInfo()) {
|
||||
// new ControlTextCentered(this, y, "§o" + s).setColour(this.getColour());
|
||||
// y += 12;
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTitle() {
|
||||
return "Growth";
|
||||
}
|
||||
@Override
|
||||
public String getTitle() {
|
||||
return "Growth";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user