mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-28 07:56:01 +00:00
Localise three analyst pages and fix analyser
This commit is contained in:
1 parent
489ce3dece
commit
d77daf41d0
8 files changed
+46
-24
No files matched your search
@@ -3,14 +3,16 @@ 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, "§nSpecimen").setColour(this.getColour());
|
||||
new ControlTextCentered(this, y, TextFormatting.UNDERLINE + getTitle()).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);
|
||||
@@ -18,6 +20,6 @@ public class AnalystPageSpecimen extends ControlAnalystPage {
|
||||
|
||||
@Override
|
||||
public String getTitle() {
|
||||
return "Specimen";
|
||||
return Genetics.proxy.localise("gui.analyst.specimen.title");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user