mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-28 07:56:01 +00:00
26 lines
887 B
Java
26 lines
887 B
Java
package binnie.genetics.gui;
|
|
|
|
import binnie.craftgui.controls.ControlTextCentered;
|
|
import binnie.craftgui.core.IWidget;
|
|
import binnie.craftgui.core.geometry.IArea;
|
|
import binnie.genetics.Genetics;
|
|
import forestry.api.lepidopterology.IButterfly;
|
|
import net.minecraft.util.text.TextFormatting;
|
|
|
|
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, TextFormatting.UNDERLINE + getTitle()).setColour(this.getColour());
|
|
y += 12;
|
|
final int w = Math.round((this.w() - 16) * ind.getSize());
|
|
new ControlIndividualDisplay(this, (this.w() - w) / 2, y + (this.w() - w) / 2, w, ind);
|
|
}
|
|
|
|
@Override
|
|
public String getTitle() {
|
|
return Genetics.proxy.localise("gui.analyst.specimen.title");
|
|
}
|
|
}
|