mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-15 01:35:08 +00:00
25 lines
766 B
Java
25 lines
766 B
Java
package binnie.genetics.gui;
|
|
|
|
import binnie.core.craftgui.IWidget;
|
|
import binnie.core.craftgui.controls.ControlTextCentered;
|
|
import binnie.core.craftgui.geometry.IArea;
|
|
import forestry.api.lepidopterology.IButterfly;
|
|
import net.minecraft.util.EnumChatFormatting;
|
|
|
|
public class AnalystPageSpecimen extends ControlAnalystPage {
|
|
public AnalystPageSpecimen(IWidget parent, IArea area, IButterfly ind) {
|
|
super(parent, area);
|
|
setColor(3355443);
|
|
int y = 4;
|
|
new ControlTextCentered(this, y, EnumChatFormatting.UNDERLINE + "Specimen").setColor(getColor());
|
|
y += 12;
|
|
float w = (w() - 16.0f) * ind.getSize();
|
|
new ControlIndividualDisplay(this, (w() - w) / 2.0f, y + (w() - w) / 2.0f, w, ind);
|
|
}
|
|
|
|
@Override
|
|
public String getTitle() {
|
|
return "Specimen";
|
|
}
|
|
}
|