mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-28 07:56:01 +00:00
Auto-format spaces to tabs (#2)
This commit is contained in:
1 parent
25be7fd254
commit
5bb4b5d9a5
756 files changed
+49198
-48489
No files matched your search
@@ -9,28 +9,28 @@ import binnie.craftgui.minecraft.control.ControlIconDisplay;
|
||||
import forestry.api.genetics.IAlleleSpecies;
|
||||
|
||||
public class AnalystPageAppearance extends ControlAnalystPage {
|
||||
public AnalystPageAppearance(final IWidget parent, final IArea area, final IFlower ind) {
|
||||
super(parent, area);
|
||||
this.setColour(3355443);
|
||||
int y = 4;
|
||||
final IAlleleSpecies species = ind.getGenome().getPrimary();
|
||||
new ControlTextCentered(this, y, "§nAppearance").setColour(this.getColour());
|
||||
y += 12;
|
||||
final ControlColourDisplay a = new ControlColourDisplay(this, this.w() / 2.0f - 28.0f, y);
|
||||
a.setValue(ind.getGenome().getPrimaryColor());
|
||||
a.addTooltip("Primary Petal Colour");
|
||||
final ControlColourDisplay b = new ControlColourDisplay(this, this.w() / 2.0f - 8.0f, y);
|
||||
b.setValue(ind.getGenome().getSecondaryColor());
|
||||
b.addTooltip("Secondary Petal Colour");
|
||||
final ControlColourDisplay c = new ControlColourDisplay(this, this.w() / 2.0f + 12.0f, y);
|
||||
c.setValue(ind.getGenome().getStemColor());
|
||||
c.addTooltip("Stem Colour");
|
||||
y += 26;
|
||||
final int sections = ind.getGenome().getType().getSections();
|
||||
final int w = (sections > 1) ? 50 : 100;
|
||||
new ControlIconDisplay(this, (this.w() - w) / 2.0f, y - ((sections == 1) ? 0 : 0), null) {
|
||||
@Override
|
||||
public void onRenderForeground() {
|
||||
public AnalystPageAppearance(final IWidget parent, final IArea area, final IFlower ind) {
|
||||
super(parent, area);
|
||||
this.setColour(3355443);
|
||||
int y = 4;
|
||||
final IAlleleSpecies species = ind.getGenome().getPrimary();
|
||||
new ControlTextCentered(this, y, "§nAppearance").setColour(this.getColour());
|
||||
y += 12;
|
||||
final ControlColourDisplay a = new ControlColourDisplay(this, this.w() / 2.0f - 28.0f, y);
|
||||
a.setValue(ind.getGenome().getPrimaryColor());
|
||||
a.addTooltip("Primary Petal Colour");
|
||||
final ControlColourDisplay b = new ControlColourDisplay(this, this.w() / 2.0f - 8.0f, y);
|
||||
b.setValue(ind.getGenome().getSecondaryColor());
|
||||
b.addTooltip("Secondary Petal Colour");
|
||||
final ControlColourDisplay c = new ControlColourDisplay(this, this.w() / 2.0f + 12.0f, y);
|
||||
c.setValue(ind.getGenome().getStemColor());
|
||||
c.addTooltip("Stem Colour");
|
||||
y += 26;
|
||||
final int sections = ind.getGenome().getType().getSections();
|
||||
final int w = (sections > 1) ? 50 : 100;
|
||||
new ControlIconDisplay(this, (this.w() - w) / 2.0f, y - ((sections == 1) ? 0 : 0), null) {
|
||||
@Override
|
||||
public void onRenderForeground() {
|
||||
// GL11.glPushMatrix();
|
||||
// final float scale = w / 16.0f;
|
||||
// final float dy = (sections > 1) ? 16.0f : 0.0f;
|
||||
@@ -51,12 +51,12 @@ public class AnalystPageAppearance extends ControlAnalystPage {
|
||||
// }
|
||||
// CraftGUI.Render.iconBlock(new IPoint(0.0f, dy), ind.getGenome().getType().getVariantIcon(EnumFlowerStage.FLOWER, true, 0));
|
||||
// GL11.glPopMatrix();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTitle() {
|
||||
return "Appearance";
|
||||
}
|
||||
@Override
|
||||
public String getTitle() {
|
||||
return "Appearance";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user