port to forestry 4.2

This commit is contained in:
marcin212 committed 2016-10-20 02:56:31 +02:00
1 parent dbc5c1a564
commit f969f63b66
3697 files changed
+78372

No files matched your search

@@ -0,0 +1,29 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.genetics.gui;
import forestry.api.genetics.IIndividual;
import binnie.craftgui.controls.ControlTextCentered;
import forestry.api.lepidopterology.IButterfly;
import binnie.craftgui.core.geometry.IArea;
import binnie.craftgui.core.IWidget;
public class AnalystPageSpecimen extends ControlAnalystPage
{
public AnalystPageSpecimen(final IWidget parent, final IArea area, final IButterfly ind) {
super(parent, area);
this.setColour(3355443);
int y = 4;
new ControlTextCentered(this, y, "§nSpecimen").setColour(this.getColour());
y += 12;
final float w = (this.w() - 16.0f) * ind.getSize();
new ControlIndividualDisplay(this, (this.w() - w) / 2.0f, y + (this.w() - w) / 2.0f, w, ind);
}
@Override
public String getTitle() {
return "Specimen";
}
}